Documentation
¶
Overview ¶
Package dash0 provides a high-level client for the Dash0 API.
Package dash0 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AppBaseURL(apiURL string) string
- func Bool(v bool) *bool
- func BoolValue(p *bool) bool
- func ClearAuthTokenID(token *AuthTokenDefinition)
- func ClearCheckRuleID(rule *PrometheusAlertRule)
- func ClearCustomSkillID(skill *SkillDefinition)
- func ClearDashboardID(dashboard *DashboardDefinition)
- func ClearDatasetID(dataset *DatasetDefinition)
- func ClearNotificationChannelID(channel *NotificationChannelDefinition)
- func ClearPersesDashboardID(perses *PersesDashboard)
- func ClearPrometheusRuleID(rule *PrometheusRules)
- func ClearRecordingRuleID(rule *RecordingRule)
- func ClearSLOID(slo *SloDefinition)
- func ClearSamplingRuleID(rule *SamplingDefinition)
- func ClearSignalToMetricsID(rule *SignalToMetricsDefinition)
- func ClearSpamFilterID(filter *SpamFilter)
- func ClearSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2)
- func ClearSyntheticCheckID(check *SyntheticCheckDefinition)
- func ClearTeamID(team *TeamDefinitionV1Alpha1)
- func ClearTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition)
- func ClearViewID(view *ViewDefinition)
- func DatasetPtr(dataset string) *string
- func DeeplinkURL(apiURL string, assetType DeeplinkAssetType, assetID string, dataset *string) string
- func FailedChecksExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
- func Float64(v float64) *float64
- func Float64Value(p *float64) float64
- func FormatDuration(d time.Duration) string
- func GenerateOAuthState() (string, error)
- func GetAuthTokenID(token *AuthTokenResponseDefinition) string
- func GetAuthTokenName(token *AuthTokenResponseDefinition) string
- func GetAwsMetricScrapeConfigID(cfg *AwsMetricScrapeConfigDefinition) string
- func GetAwsMetricScrapeConfigName(cfg *AwsMetricScrapeConfigDefinition) string
- func GetAwsMetricScrapeConfigOrigin(cfg *AwsMetricScrapeConfigDefinition) string
- func GetCheckRuleDataset(rule *PrometheusAlertRule) string
- func GetCheckRuleID(rule *PrometheusAlertRule) string
- func GetCheckRuleName(rule *PrometheusAlertRule) string
- func GetCustomSkillID(skill *SkillDefinition) string
- func GetCustomSkillName(skill *SkillDefinition) string
- func GetCustomSkillOrigin(skill *SkillDefinition) string
- func GetDashboardDataset(dashboard *DashboardDefinition) string
- func GetDashboardFolderPath(dashboard *DashboardDefinition) string
- func GetDashboardID(dashboard *DashboardDefinition) string
- func GetDashboardName(dashboard *DashboardDefinition) string
- func GetDatasetID(dataset *DatasetDefinition) string
- func GetDatasetName(dataset *DatasetDefinition) string
- func GetNotificationChannelID(channel *NotificationChannelDefinition) string
- func GetNotificationChannelName(channel *NotificationChannelDefinition) string
- func GetNotificationChannelOrigin(channel *NotificationChannelDefinition) string
- func GetPersesDashboardDataset(perses *PersesDashboard) string
- func GetPersesDashboardFolderPath(perses *PersesDashboard) string
- func GetPersesDashboardID(perses *PersesDashboard) string
- func GetPersesDashboardName(perses *PersesDashboard) string
- func GetPrometheusRuleDataset(rule *PrometheusRules) string
- func GetPrometheusRuleID(rule *PrometheusRules) string
- func GetPrometheusRuleName(rule *PrometheusRules) string
- func GetRecordingRuleDataset(rule *RecordingRule) string
- func GetRecordingRuleID(rule *RecordingRule) string
- func GetRecordingRuleName(rule *RecordingRule) string
- func GetSLODataset(slo *SloDefinition) string
- func GetSLOID(slo *SloDefinition) string
- func GetSLOName(slo *SloDefinition) string
- func GetSLOOrigin(slo *SloDefinition) string
- func GetSamplingRuleDataset(rule *SamplingDefinition) string
- func GetSamplingRuleID(rule *SamplingDefinition) string
- func GetSamplingRuleName(rule *SamplingDefinition) string
- func GetSignalToMetricsDataset(rule *SignalToMetricsDefinition) string
- func GetSignalToMetricsID(rule *SignalToMetricsDefinition) string
- func GetSignalToMetricsName(rule *SignalToMetricsDefinition) string
- func GetSpamFilterDataset(filter *SpamFilter) string
- func GetSpamFilterID(filter *SpamFilter) string
- func GetSpamFilterName(filter *SpamFilter) string
- func GetSpamFilterV1Alpha2Dataset(filter *SpamFilterV1Alpha2) string
- func GetSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2) string
- func GetSpamFilterV1Alpha2Name(filter *SpamFilterV1Alpha2) string
- func GetSyntheticCheckDataset(check *SyntheticCheckDefinition) string
- func GetSyntheticCheckID(check *SyntheticCheckDefinition) string
- func GetSyntheticCheckName(check *SyntheticCheckDefinition) string
- func GetTeamDisplayName(team *TeamDefinitionV1Alpha1) string
- func GetTeamID(team *TeamDefinitionV1Alpha1) string
- func GetTeamName(team *TeamDefinitionV1Alpha1) string
- func GetTeamOrigin(team *TeamDefinitionV1Alpha1) string
- func GetTimeSeriesAggregationDataset(aggregation *TimeSeriesAggregationDefinition) string
- func GetTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition) string
- func GetTimeSeriesAggregationName(aggregation *TimeSeriesAggregationDefinition) string
- func GetViewDataset(view *ViewDefinition) string
- func GetViewID(view *ViewDefinition) string
- func GetViewName(view *ViewDefinition) string
- func Int64(v int64) *int64
- func Int64Value(p *int64) int64
- func IsBadRequest(err error) bool
- func IsConflict(err error) bool
- func IsForbidden(err error) bool
- func IsNotFound(err error) bool
- func IsOAuthInvalidGrant(err error) bool
- func IsOAuthTerminalError(err error) bool
- func IsOAuthTokenError(err error) bool
- func IsRateLimited(err error) bool
- func IsServerError(err error) bool
- func IsUnauthorized(err error) bool
- func LogsExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
- func NewDeleteApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewDeleteApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiAuthTokensOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewDeleteApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID) (*http.Request, error)
- func NewDeleteApiDashboardsOriginOrIdRequest(server string, originOrId string, params *DeleteApiDashboardsOriginOrIdParams) (*http.Request, error)
- func NewDeleteApiDatasetsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewDeleteApiMembersInvitationsInvitationIDRequest(server string, invitationID string) (*http.Request, error)
- func NewDeleteApiMembersMemberIDRequest(server string, memberID string) (*http.Request, error)
- func NewDeleteApiNotificationChannelsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewDeleteApiRecordingRulesOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiSamplingRulesOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiSlosOriginOrIdRequest(server string, originOrId string, params *DeleteApiSlosOriginOrIdParams) (*http.Request, error)
- func NewDeleteApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *DeleteApiSpamFiltersOriginOrIdParams) (*http.Request, error)
- func NewDeleteApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiTeamsOriginOrIdMembersMemberIDRequest(server string, originOrId string, memberID string) (*http.Request, error)
- func NewDeleteApiTeamsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewDeleteApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewDeleteApiViewsOriginOrIdRequest(server string, originOrId string, params *DeleteApiViewsOriginOrIdParams) (*http.Request, error)
- func NewGetApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewGetApiAgent0CustomSkillsRequest(server string, params *GetApiAgent0CustomSkillsParams) (*http.Request, error)
- func NewGetApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewGetApiAgenticWorkflowsRequest(server string, params *GetApiAgenticWorkflowsParams) (*http.Request, error)
- func NewGetApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewGetApiAlertingCheckRulesRequest(server string, params *GetApiAlertingCheckRulesParams) (*http.Request, error)
- func NewGetApiAuthTokensOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewGetApiAuthTokensRequest(server string) (*http.Request, error)
- func NewGetApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID) (*http.Request, error)
- func NewGetApiDashboardsOriginOrIdRequest(server string, originOrId string, params *GetApiDashboardsOriginOrIdParams) (*http.Request, error)
- func NewGetApiDashboardsRequest(server string, params *GetApiDashboardsParams) (*http.Request, error)
- func NewGetApiDatasetsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewGetApiDatasetsRequest(server string) (*http.Request, error)
- func NewGetApiEdgeSettingsRequest(server string, params *GetApiEdgeSettingsParams) (*http.Request, error)
- func NewGetApiMembersInvitationsRequest(server string) (*http.Request, error)
- func NewGetApiMembersRequest(server string) (*http.Request, error)
- func NewGetApiNotificationChannelsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewGetApiNotificationChannelsRequest(server string) (*http.Request, error)
- func NewGetApiPrometheusApiV1FormatQueryRequest(server string, params *GetApiPrometheusApiV1FormatQueryParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1LabelLabelNameValuesRequest(server string, labelName string, ...) (*http.Request, error)
- func NewGetApiPrometheusApiV1LabelsRequest(server string, params *GetApiPrometheusApiV1LabelsParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1MetadataRequest(server string, params *GetApiPrometheusApiV1MetadataParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1QueryRangeRequest(server string, params *GetApiPrometheusApiV1QueryRangeParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1QueryRequest(server string, params *GetApiPrometheusApiV1QueryParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1SeriesRequest(server string, params *GetApiPrometheusApiV1SeriesParams) (*http.Request, error)
- func NewGetApiPrometheusApiV1StatusBuildinfoRequest(server string) (*http.Request, error)
- func NewGetApiPrometheusApiV1StatusRuntimeinfoRequest(server string) (*http.Request, error)
- func NewGetApiRecordingRulesOriginOrIdRequest(server string, originOrId string, params *GetApiRecordingRulesOriginOrIdParams) (*http.Request, error)
- func NewGetApiRecordingRulesRequest(server string, params *GetApiRecordingRulesParams) (*http.Request, error)
- func NewGetApiSamplingRulesOriginOrIdRequest(server string, originOrId string, params *GetApiSamplingRulesOriginOrIdParams) (*http.Request, error)
- func NewGetApiSamplingRulesRequest(server string, params *GetApiSamplingRulesParams) (*http.Request, error)
- func NewGetApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewGetApiSignalToMetricsRequest(server string, params *GetApiSignalToMetricsParams) (*http.Request, error)
- func NewGetApiSlosOriginOrIdRequest(server string, originOrId string, params *GetApiSlosOriginOrIdParams) (*http.Request, error)
- func NewGetApiSlosRequest(server string, params *GetApiSlosParams) (*http.Request, error)
- func NewGetApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *GetApiSpamFiltersOriginOrIdParams) (*http.Request, error)
- func NewGetApiSpamFiltersRequest(server string, params *GetApiSpamFiltersParams) (*http.Request, error)
- func NewGetApiSyntheticChecksLocationsRequest(server string) (*http.Request, error)
- func NewGetApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewGetApiSyntheticChecksRequest(server string, params *GetApiSyntheticChecksParams) (*http.Request, error)
- func NewGetApiTeamsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
- func NewGetApiTeamsRequest(server string) (*http.Request, error)
- func NewGetApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewGetApiTimeSeriesAggregationsRequest(server string, params *GetApiTimeSeriesAggregationsParams) (*http.Request, error)
- func NewGetApiViewsOriginOrIdRequest(server string, originOrId string, params *GetApiViewsOriginOrIdParams) (*http.Request, error)
- func NewGetApiViewsRequest(server string, params *GetApiViewsParams) (*http.Request, error)
- func NewGetOauthAuthorizeRequest(server string, params *GetOauthAuthorizeParams) (*http.Request, error)
- func NewGetWellKnownOauthAuthorizationServerRequest(server string) (*http.Request, error)
- func NewGetWellKnownOauthProtectedResourceRequest(server string) (*http.Request, error)
- func NewPostApiAgent0CustomSkillsRequest(server string, body PostApiAgent0CustomSkillsJSONRequestBody) (*http.Request, error)
- func NewPostApiAgent0CustomSkillsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiAgenticWorkflowsRequest(server string, params *PostApiAgenticWorkflowsParams, ...) (*http.Request, error)
- func NewPostApiAgenticWorkflowsRequestWithBody(server string, params *PostApiAgenticWorkflowsParams, contentType string, ...) (*http.Request, error)
- func NewPostApiAlertingCheckRulesBulkRequest(server string, params *PostApiAlertingCheckRulesBulkParams, ...) (*http.Request, error)
- func NewPostApiAlertingCheckRulesBulkRequestWithBody(server string, params *PostApiAlertingCheckRulesBulkParams, contentType string, ...) (*http.Request, error)
- func NewPostApiAlertingCheckRulesRequest(server string, params *PostApiAlertingCheckRulesParams, ...) (*http.Request, error)
- func NewPostApiAlertingCheckRulesRequestWithBody(server string, params *PostApiAlertingCheckRulesParams, contentType string, ...) (*http.Request, error)
- func NewPostApiAuthTokensRequest(server string, body PostApiAuthTokensJSONRequestBody) (*http.Request, error)
- func NewPostApiAuthTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiDashboardsRequest(server string, params *PostApiDashboardsParams, ...) (*http.Request, error)
- func NewPostApiDashboardsRequestWithBody(server string, params *PostApiDashboardsParams, contentType string, ...) (*http.Request, error)
- func NewPostApiDatasetsRequest(server string, body PostApiDatasetsJSONRequestBody) (*http.Request, error)
- func NewPostApiDatasetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiImportCheckRuleRequest(server string, params *PostApiImportCheckRuleParams, ...) (*http.Request, error)
- func NewPostApiImportCheckRuleRequestWithBody(server string, params *PostApiImportCheckRuleParams, contentType string, ...) (*http.Request, error)
- func NewPostApiImportCheckRulesRequest(server string, params *PostApiImportCheckRulesParams, ...) (*http.Request, error)
- func NewPostApiImportCheckRulesRequestWithBody(server string, params *PostApiImportCheckRulesParams, contentType string, ...) (*http.Request, error)
- func NewPostApiImportDashboardRequest(server string, params *PostApiImportDashboardParams, ...) (*http.Request, error)
- func NewPostApiImportDashboardRequestWithBody(server string, params *PostApiImportDashboardParams, contentType string, ...) (*http.Request, error)
- func NewPostApiImportSyntheticCheckRequest(server string, params *PostApiImportSyntheticCheckParams, ...) (*http.Request, error)
- func NewPostApiImportSyntheticCheckRequestWithBody(server string, params *PostApiImportSyntheticCheckParams, contentType string, ...) (*http.Request, error)
- func NewPostApiImportViewRequest(server string, params *PostApiImportViewParams, ...) (*http.Request, error)
- func NewPostApiImportViewRequestWithBody(server string, params *PostApiImportViewParams, contentType string, ...) (*http.Request, error)
- func NewPostApiLogsDownloadRequest(server string, body PostApiLogsDownloadJSONRequestBody) (*http.Request, error)
- func NewPostApiLogsDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiLogsRequest(server string, body PostApiLogsJSONRequestBody) (*http.Request, error)
- func NewPostApiLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiMembersRequest(server string, body PostApiMembersJSONRequestBody) (*http.Request, error)
- func NewPostApiMembersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotificationChannelsRequest(server string, body PostApiNotificationChannelsJSONRequestBody) (*http.Request, error)
- func NewPostApiNotificationChannelsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1FormatQueryRequest(server string, body PostApiPrometheusApiV1FormatQueryJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1FormatQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1FormatQueryRequestWithFormdataBody(server string, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelLabelNameValuesRequest(server string, labelName string, ...) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithBody(server string, labelName string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithFormdataBody(server string, labelName string, ...) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelsRequest(server string, body PostApiPrometheusApiV1LabelsJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1LabelsRequestWithFormdataBody(server string, body PostApiPrometheusApiV1LabelsFormdataRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1MetadataRequest(server string, body PostApiPrometheusApiV1MetadataJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1MetadataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1MetadataRequestWithFormdataBody(server string, body PostApiPrometheusApiV1MetadataFormdataRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRangeRequest(server string, body PostApiPrometheusApiV1QueryRangeJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRangeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRangeRequestWithFormdataBody(server string, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRequest(server string, body PostApiPrometheusApiV1QueryJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1QueryRequestWithFormdataBody(server string, body PostApiPrometheusApiV1QueryFormdataRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1SeriesRequest(server string, body PostApiPrometheusApiV1SeriesJSONRequestBody) (*http.Request, error)
- func NewPostApiPrometheusApiV1SeriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPrometheusApiV1SeriesRequestWithFormdataBody(server string, body PostApiPrometheusApiV1SeriesFormdataRequestBody) (*http.Request, error)
- func NewPostApiRecordingRulesRequest(server string, params *PostApiRecordingRulesParams, ...) (*http.Request, error)
- func NewPostApiRecordingRulesRequestWithBody(server string, params *PostApiRecordingRulesParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSamplingRulesRequest(server string, params *PostApiSamplingRulesParams, ...) (*http.Request, error)
- func NewPostApiSamplingRulesRequestWithBody(server string, params *PostApiSamplingRulesParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSignalToMetricsRequest(server string, params *PostApiSignalToMetricsParams, ...) (*http.Request, error)
- func NewPostApiSignalToMetricsRequestWithBody(server string, params *PostApiSignalToMetricsParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSignalToMetricsTestRequest(server string, params *PostApiSignalToMetricsTestParams, ...) (*http.Request, error)
- func NewPostApiSignalToMetricsTestRequestWithBody(server string, params *PostApiSignalToMetricsTestParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSlosOriginOrIdResetRequest(server string, originOrId string, params *PostApiSlosOriginOrIdResetParams) (*http.Request, error)
- func NewPostApiSlosRequest(server string, params *PostApiSlosParams, body PostApiSlosJSONRequestBody) (*http.Request, error)
- func NewPostApiSlosRequestWithBody(server string, params *PostApiSlosParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSpamFiltersRequest(server string, params *PostApiSpamFiltersParams, ...) (*http.Request, error)
- func NewPostApiSpamFiltersRequestWithBody(server string, params *PostApiSpamFiltersParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSpansDownloadRequest(server string, body PostApiSpansDownloadJSONRequestBody) (*http.Request, error)
- func NewPostApiSpansDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSpansRequest(server string, body PostApiSpansJSONRequestBody) (*http.Request, error)
- func NewPostApiSpansRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSqlRequest(server string, body PostApiSqlJSONRequestBody) (*http.Request, error)
- func NewPostApiSqlRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSyntheticChecksRequest(server string, params *PostApiSyntheticChecksParams, ...) (*http.Request, error)
- func NewPostApiSyntheticChecksRequestWithBody(server string, params *PostApiSyntheticChecksParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSyntheticChecksTestRequest(server string, body PostApiSyntheticChecksTestJSONRequestBody) (*http.Request, error)
- func NewPostApiSyntheticChecksTestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTeamsOriginOrIdMembersRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPostApiTeamsOriginOrIdMembersRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTeamsRequest(server string, body PostApiTeamsJSONRequestBody) (*http.Request, error)
- func NewPostApiTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTimeSeriesAggregationsRequest(server string, params *PostApiTimeSeriesAggregationsParams, ...) (*http.Request, error)
- func NewPostApiTimeSeriesAggregationsRequestWithBody(server string, params *PostApiTimeSeriesAggregationsParams, contentType string, ...) (*http.Request, error)
- func NewPostApiTopologyRequest(server string, body PostApiTopologyJSONRequestBody) (*http.Request, error)
- func NewPostApiTopologyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTraceDetailsRequest(server string, body PostApiTraceDetailsJSONRequestBody) (*http.Request, error)
- func NewPostApiTraceDetailsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTraceIdsRequest(server string, body PostApiTraceIdsJSONRequestBody) (*http.Request, error)
- func NewPostApiTraceIdsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiViewsRequest(server string, params *PostApiViewsParams, body PostApiViewsJSONRequestBody) (*http.Request, error)
- func NewPostApiViewsRequestWithBody(server string, params *PostApiViewsParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiWebEventsDownloadRequest(server string, body PostApiWebEventsDownloadJSONRequestBody) (*http.Request, error)
- func NewPostApiWebEventsDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauthRegisterRequest(server string, body PostOauthRegisterJSONRequestBody) (*http.Request, error)
- func NewPostOauthRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauthRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauthRevokeRequestWithFormdataBody(server string, body PostOauthRevokeFormdataRequestBody) (*http.Request, error)
- func NewPostOauthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOauthTokenRequestWithFormdataBody(server string, body PostOauthTokenFormdataRequestBody) (*http.Request, error)
- func NewPutApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAgent0CustomSkillsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAgenticWorkflowsOriginOrIdRequestWithBody(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAlertingCheckRulesOriginOrIdRequestWithBody(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAuthTokensOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiAuthTokensOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID, ...) (*http.Request, error)
- func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequestWithBody(server string, integrationId openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewPutApiDashboardsOriginOrIdRequest(server string, originOrId string, params *PutApiDashboardsOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiDashboardsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiDashboardsOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiDatasetsOriginOrIdRequest(server string, originOrId string, body PutApiDatasetsOriginOrIdJSONRequestBody) (*http.Request, error)
- func NewPutApiDatasetsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiImportSignalToMetricsRequest(server string, params *PutApiImportSignalToMetricsParams, ...) (*http.Request, error)
- func NewPutApiImportSignalToMetricsRequestWithBody(server string, params *PutApiImportSignalToMetricsParams, contentType string, ...) (*http.Request, error)
- func NewPutApiMembersMemberIDRoleRequest(server string, memberID string, body PutApiMembersMemberIDRoleJSONRequestBody) (*http.Request, error)
- func NewPutApiMembersMemberIDRoleRequestWithBody(server string, memberID string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiNotificationChannelsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiNotificationChannelsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiRecordingRulesOriginOrIdRequest(server string, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiRecordingRulesOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSamplingRulesOriginOrIdRequest(server string, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSamplingRulesOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiSignalToMetricsOriginOrIdRequestWithBody(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiSlosOriginOrIdRequest(server string, originOrId string, params *PutApiSlosOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSlosOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSlosOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSpamFiltersOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiSyntheticChecksOriginOrIdRequestWithBody(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiTeamsOriginOrIdDisplayRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiTeamsOriginOrIdDisplayRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiTeamsOriginOrIdRequest(server string, originOrId string, body PutApiTeamsOriginOrIdJSONRequestBody) (*http.Request, error)
- func NewPutApiTeamsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiTimeSeriesAggregationsOriginOrIdRequestWithBody(server string, originOrId string, ...) (*http.Request, error)
- func NewPutApiViewsOriginOrIdRequest(server string, originOrId string, params *PutApiViewsOriginOrIdParams, ...) (*http.Request, error)
- func NewPutApiViewsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiViewsOriginOrIdParams, ...) (*http.Request, error)
- func NormalizeDash0ApiVersion(apiVersion string) (version string, ok bool)
- func Ptr[T any](v T) *T
- func ResolveTeamMembersToEmails(ctx context.Context, apiClient Client, team *TeamDefinitionV1Alpha1) error
- func SetAuthTokenID(token *AuthTokenDefinition, id string)
- func SetAuthTokenIDIfAbsent(token *AuthTokenDefinition, id string)
- func SetAwsMetricScrapeConfigOrigin(cfg *AwsMetricScrapeConfigDefinition, origin string)
- func SetCheckRuleDataset(rule *PrometheusAlertRule, dataset string)
- func SetCheckRuleID(rule *PrometheusAlertRule, id string)
- func SetCheckRuleIDIfAbsent(rule *PrometheusAlertRule, id string)
- func SetCustomSkillID(skill *SkillDefinition, id string)
- func SetCustomSkillIDIfAbsent(skill *SkillDefinition, id string)
- func SetCustomSkillOrigin(skill *SkillDefinition, origin string)
- func SetDashboardDataset(dashboard *DashboardDefinition, dataset string)
- func SetDashboardFolderPath(dashboard *DashboardDefinition, folderPath string)
- func SetDashboardID(dashboard *DashboardDefinition, id string)
- func SetDashboardIDIfAbsent(dashboard *DashboardDefinition, id string)
- func SetDatasetID(dataset *DatasetDefinition, id string)
- func SetDatasetIDIfAbsent(dataset *DatasetDefinition, id string)
- func SetNotificationChannelID(channel *NotificationChannelDefinition, id string)
- func SetNotificationChannelIDIfAbsent(channel *NotificationChannelDefinition, id string)
- func SetNotificationChannelOrigin(channel *NotificationChannelDefinition, origin string)
- func SetPersesDashboardDataset(perses *PersesDashboard, dataset string)
- func SetPersesDashboardFolderPath(perses *PersesDashboard, folderPath string)
- func SetPersesDashboardID(perses *PersesDashboard, id string)
- func SetPersesDashboardIDIfAbsent(perses *PersesDashboard, id string)
- func SetPrometheusRuleDataset(rule *PrometheusRules, dataset string)
- func SetPrometheusRuleID(rule *PrometheusRules, id string)
- func SetPrometheusRuleIDIfAbsent(rule *PrometheusRules, id string)
- func SetRecordingRuleDataset(rule *RecordingRule, dataset string)
- func SetRecordingRuleID(rule *RecordingRule, id string)
- func SetRecordingRuleIDIfAbsent(rule *RecordingRule, id string)
- func SetSLODataset(slo *SloDefinition, dataset string)
- func SetSLOID(slo *SloDefinition, id string)
- func SetSLOIDIfAbsent(slo *SloDefinition, id string)
- func SetSamplingRuleDataset(rule *SamplingDefinition, dataset string)
- func SetSamplingRuleID(rule *SamplingDefinition, id string)
- func SetSamplingRuleIDIfAbsent(rule *SamplingDefinition, id string)
- func SetSignalToMetricsDataset(rule *SignalToMetricsDefinition, dataset string)
- func SetSignalToMetricsID(rule *SignalToMetricsDefinition, id string)
- func SetSignalToMetricsIDIfAbsent(rule *SignalToMetricsDefinition, id string)
- func SetSpamFilterDataset(filter *SpamFilter, dataset string)
- func SetSpamFilterID(filter *SpamFilter, id string)
- func SetSpamFilterIDIfAbsent(filter *SpamFilter, id string)
- func SetSpamFilterV1Alpha2Dataset(filter *SpamFilterV1Alpha2, dataset string)
- func SetSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2, id string)
- func SetSpamFilterV1Alpha2IDIfAbsent(filter *SpamFilterV1Alpha2, id string)
- func SetSyntheticCheckDataset(check *SyntheticCheckDefinition, dataset string)
- func SetSyntheticCheckID(check *SyntheticCheckDefinition, id string)
- func SetSyntheticCheckIDIfAbsent(check *SyntheticCheckDefinition, id string)
- func SetTeamID(team *TeamDefinitionV1Alpha1, id string)
- func SetTeamIDIfAbsent(team *TeamDefinitionV1Alpha1, id string)
- func SetTimeSeriesAggregationDataset(aggregation *TimeSeriesAggregationDefinition, dataset string)
- func SetTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition, id string)
- func SetTimeSeriesAggregationIDIfAbsent(aggregation *TimeSeriesAggregationDefinition, id string)
- func SetViewDataset(view *ViewDefinition, dataset string)
- func SetViewID(view *ViewDefinition, id string)
- func SetViewIDIfAbsent(view *ViewDefinition, id string)
- func SpansExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
- func String(v string) *string
- func StringValue(p *string) string
- func StripAuthTokenServerFields(token *AuthTokenDefinition)
- func StripAwsMetricScrapeConfigServerFields(cfg *AwsMetricScrapeConfigDefinition)
- func StripCheckRuleServerFields(rule *PrometheusAlertRule)
- func StripCustomSkillServerFields(skill *SkillDefinition)
- func StripDashboardServerFields(dashboard *DashboardDefinition)
- func StripDatasetServerFields(dataset *DatasetDefinition)
- func StripNotificationChannelServerFields(channel *NotificationChannelDefinition)
- func StripRecordingRuleServerFields(rule *RecordingRule)
- func StripSLOServerFields(slo *SloDefinition)
- func StripSamplingRuleServerFields(rule *SamplingDefinition)
- func StripSignalToMetricsServerFields(rule *SignalToMetricsDefinition)
- func StripSpamFilterServerFields(filter *SpamFilter)
- func StripSpamFilterV1Alpha2ServerFields(filter *SpamFilterV1Alpha2)
- func StripSyntheticCheckServerFields(check *SyntheticCheckDefinition)
- func StripTeamServerFields(team *TeamDefinitionV1Alpha1)
- func StripTimeSeriesAggregationServerFields(aggregation *TimeSeriesAggregationDefinition)
- func StripViewServerFields(view *ViewDefinition)
- func TracesExplorerURL(apiURL, traceID string, dataset *string) string
- func ViewDeeplinkURL(apiURL string, viewType ViewType, viewID string, dataset *string) string
- func WithRequestEditorFn(fn RequestEditorFn) generatedClientOption
- type APIError
- type AccessibleAsset
- type Action
- type AddTeamMembersRequest
- type Agent0ModelClassPreference
- type Agent0ModelMaker
- type Agent0ModelSelection
- type Agent0ModelSpec
- type Agent0ModelSpecReasoningSummary
- type Agent0ModelSpeed
- type Agent0ReasoningEffort
- type Agent0SandboxProfile
- type Agent0SandboxProfileType
- type Agent0SandboxResources
- type AgenticWorkflowAction
- type AgenticWorkflowAnnotations
- type AgenticWorkflowConcurrency
- type AgenticWorkflowConcurrencyPolicy
- type AgenticWorkflowCreateRequest
- type AgenticWorkflowCreditBudget
- type AgenticWorkflowDefinition
- type AgenticWorkflowDefinitionKind
- type AgenticWorkflowDisplay
- type AgenticWorkflowGuardrails
- type AgenticWorkflowLabels
- type AgenticWorkflowMcpTool
- type AgenticWorkflowMetadata
- type AgenticWorkflowNotifications
- type AgenticWorkflowParent
- type AgenticWorkflowPermission
- type AgenticWorkflowPrompt
- type AgenticWorkflowResponse
- type AgenticWorkflowSandbox
- type AgenticWorkflowSpec
- type AgenticWorkflowToolParameterOverride
- type AgenticWorkflowTrigger
- func (t AgenticWorkflowTrigger) AsDarkplanePullRequestEvaluationAgenticWorkflowTrigger() (DarkplanePullRequestEvaluationAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsFailedCheckAgenticWorkflowTrigger() (FailedCheckAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubCheckRunAgenticWorkflowTrigger() (GitHubCheckRunAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubCheckSuiteAgenticWorkflowTrigger() (GitHubCheckSuiteAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubDeploymentAgenticWorkflowTrigger() (GitHubDeploymentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubDeploymentStatusAgenticWorkflowTrigger() (GitHubDeploymentStatusAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubIssueCommentAgenticWorkflowTrigger() (GitHubIssueCommentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubPullRequestAgenticWorkflowTrigger() (GitHubPullRequestAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubPullRequestReviewAgenticWorkflowTrigger() (GitHubPullRequestReviewAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubPullRequestReviewCommentAgenticWorkflowTrigger() (GitHubPullRequestReviewCommentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubPushAgenticWorkflowTrigger() (GitHubPushAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubReleaseAgenticWorkflowTrigger() (GitHubReleaseAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubWorkflowDispatchAgenticWorkflowTrigger() (GitHubWorkflowDispatchAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubWorkflowJobAgenticWorkflowTrigger() (GitHubWorkflowJobAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitHubWorkflowRunAgenticWorkflowTrigger() (GitHubWorkflowRunAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitLabMergeRequestAgenticWorkflowTrigger() (GitLabMergeRequestAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsGitLabNoteAgenticWorkflowTrigger() (GitLabNoteAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearCommentAgenticWorkflowTrigger() (LinearCommentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearCommentReactionAgenticWorkflowTrigger() (LinearCommentReactionAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearInitiativeAgenticWorkflowTrigger() (LinearInitiativeAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearInitiativeUpdateAgenticWorkflowTrigger() (LinearInitiativeUpdateAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearIssueAgenticWorkflowTrigger() (LinearIssueAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearIssueAttachmentAgenticWorkflowTrigger() (LinearIssueAttachmentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearIssueCommentAgenticWorkflowTrigger() (LinearIssueCommentAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearProjectAgenticWorkflowTrigger() (LinearProjectAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsLinearProjectUpdateAgenticWorkflowTrigger() (LinearProjectUpdateAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsManualAgenticWorkflowTrigger() (ManualAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsScheduledAgenticWorkflowTrigger() (ScheduledAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsSlackBotFailedCheckAgenticWorkflowTrigger() (SlackBotFailedCheckAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsSlackBotMessageAgenticWorkflowTrigger() (SlackBotMessageAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsSlackBotReactionAgenticWorkflowTrigger() (SlackBotReactionAgenticWorkflowTrigger, error)
- func (t AgenticWorkflowTrigger) AsWebhookAgenticWorkflowTrigger() (WebhookAgenticWorkflowTrigger, error)
- func (t *AgenticWorkflowTrigger) FromDarkplanePullRequestEvaluationAgenticWorkflowTrigger(v DarkplanePullRequestEvaluationAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromFailedCheckAgenticWorkflowTrigger(v FailedCheckAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubCheckRunAgenticWorkflowTrigger(v GitHubCheckRunAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubCheckSuiteAgenticWorkflowTrigger(v GitHubCheckSuiteAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubDeploymentAgenticWorkflowTrigger(v GitHubDeploymentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubDeploymentStatusAgenticWorkflowTrigger(v GitHubDeploymentStatusAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubIssueCommentAgenticWorkflowTrigger(v GitHubIssueCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubPullRequestAgenticWorkflowTrigger(v GitHubPullRequestAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubPullRequestReviewAgenticWorkflowTrigger(v GitHubPullRequestReviewAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubPullRequestReviewCommentAgenticWorkflowTrigger(v GitHubPullRequestReviewCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubPushAgenticWorkflowTrigger(v GitHubPushAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubReleaseAgenticWorkflowTrigger(v GitHubReleaseAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubWorkflowDispatchAgenticWorkflowTrigger(v GitHubWorkflowDispatchAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubWorkflowJobAgenticWorkflowTrigger(v GitHubWorkflowJobAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitHubWorkflowRunAgenticWorkflowTrigger(v GitHubWorkflowRunAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitLabMergeRequestAgenticWorkflowTrigger(v GitLabMergeRequestAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromGitLabNoteAgenticWorkflowTrigger(v GitLabNoteAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearCommentAgenticWorkflowTrigger(v LinearCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearCommentReactionAgenticWorkflowTrigger(v LinearCommentReactionAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearInitiativeAgenticWorkflowTrigger(v LinearInitiativeAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearInitiativeUpdateAgenticWorkflowTrigger(v LinearInitiativeUpdateAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearIssueAgenticWorkflowTrigger(v LinearIssueAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearIssueAttachmentAgenticWorkflowTrigger(v LinearIssueAttachmentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearIssueCommentAgenticWorkflowTrigger(v LinearIssueCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearProjectAgenticWorkflowTrigger(v LinearProjectAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromLinearProjectUpdateAgenticWorkflowTrigger(v LinearProjectUpdateAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromManualAgenticWorkflowTrigger(v ManualAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromScheduledAgenticWorkflowTrigger(v ScheduledAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromSlackBotFailedCheckAgenticWorkflowTrigger(v SlackBotFailedCheckAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromSlackBotMessageAgenticWorkflowTrigger(v SlackBotMessageAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromSlackBotReactionAgenticWorkflowTrigger(v SlackBotReactionAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) FromWebhookAgenticWorkflowTrigger(v WebhookAgenticWorkflowTrigger) error
- func (t AgenticWorkflowTrigger) MarshalJSON() ([]byte, error)
- func (t *AgenticWorkflowTrigger) MergeDarkplanePullRequestEvaluationAgenticWorkflowTrigger(v DarkplanePullRequestEvaluationAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeFailedCheckAgenticWorkflowTrigger(v FailedCheckAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubCheckRunAgenticWorkflowTrigger(v GitHubCheckRunAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubCheckSuiteAgenticWorkflowTrigger(v GitHubCheckSuiteAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubDeploymentAgenticWorkflowTrigger(v GitHubDeploymentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubDeploymentStatusAgenticWorkflowTrigger(v GitHubDeploymentStatusAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubIssueCommentAgenticWorkflowTrigger(v GitHubIssueCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestAgenticWorkflowTrigger(v GitHubPullRequestAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestReviewAgenticWorkflowTrigger(v GitHubPullRequestReviewAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestReviewCommentAgenticWorkflowTrigger(v GitHubPullRequestReviewCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubPushAgenticWorkflowTrigger(v GitHubPushAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubReleaseAgenticWorkflowTrigger(v GitHubReleaseAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowDispatchAgenticWorkflowTrigger(v GitHubWorkflowDispatchAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowJobAgenticWorkflowTrigger(v GitHubWorkflowJobAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowRunAgenticWorkflowTrigger(v GitHubWorkflowRunAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitLabMergeRequestAgenticWorkflowTrigger(v GitLabMergeRequestAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeGitLabNoteAgenticWorkflowTrigger(v GitLabNoteAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearCommentAgenticWorkflowTrigger(v LinearCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearCommentReactionAgenticWorkflowTrigger(v LinearCommentReactionAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearInitiativeAgenticWorkflowTrigger(v LinearInitiativeAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearInitiativeUpdateAgenticWorkflowTrigger(v LinearInitiativeUpdateAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearIssueAgenticWorkflowTrigger(v LinearIssueAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearIssueAttachmentAgenticWorkflowTrigger(v LinearIssueAttachmentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearIssueCommentAgenticWorkflowTrigger(v LinearIssueCommentAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearProjectAgenticWorkflowTrigger(v LinearProjectAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeLinearProjectUpdateAgenticWorkflowTrigger(v LinearProjectUpdateAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeManualAgenticWorkflowTrigger(v ManualAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeScheduledAgenticWorkflowTrigger(v ScheduledAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeSlackBotFailedCheckAgenticWorkflowTrigger(v SlackBotFailedCheckAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeSlackBotMessageAgenticWorkflowTrigger(v SlackBotMessageAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeSlackBotReactionAgenticWorkflowTrigger(v SlackBotReactionAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) MergeWebhookAgenticWorkflowTrigger(v WebhookAgenticWorkflowTrigger) error
- func (t *AgenticWorkflowTrigger) UnmarshalJSON(b []byte) error
- type AgenticWorkflowTriggerDelivery
- type AgenticWorkflowTriggerKind
- type AgenticWorkflowTriggerTask
- type AllQuietConfig
- type AnomalyDirection
- type AnyValue
- type ArrayValue
- type AttributeFilter
- type AttributeFilterAnyValue
- type AttributeFilterKey
- type AttributeFilterOperator
- type AttributeFilterStringValue
- type AttributeFilter_Value
- func (t AttributeFilter_Value) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
- func (t AttributeFilter_Value) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
- func (t *AttributeFilter_Value) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *AttributeFilter_Value) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t AttributeFilter_Value) MarshalJSON() ([]byte, error)
- func (t *AttributeFilter_Value) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *AttributeFilter_Value) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t *AttributeFilter_Value) UnmarshalJSON(b []byte) error
- type AttributeFilter_Values_Item
- func (t AttributeFilter_Values_Item) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
- func (t AttributeFilter_Values_Item) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
- func (t *AttributeFilter_Values_Item) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *AttributeFilter_Values_Item) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t AttributeFilter_Values_Item) MarshalJSON() ([]byte, error)
- func (t *AttributeFilter_Values_Item) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *AttributeFilter_Values_Item) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t *AttributeFilter_Values_Item) UnmarshalJSON(b []byte) error
- type AuthTokenAction
- type AuthTokenAnnotations
- type AuthTokenCreateRequest
- type AuthTokenDatasetScope
- type AuthTokenDefinition
- type AuthTokenDefinitionKind
- type AuthTokenIngestion
- type AuthTokenLabels
- type AuthTokenListResponse
- type AuthTokenMetadata
- type AuthTokenProvider
- type AuthTokenResponse
- type AuthTokenResponseDefinition
- type AuthTokenResponseDefinitionKind
- type AuthTokenResponseSpec
- type AuthTokenScope
- type AuthTokenSignalScope
- type AuthTokenSpec
- type AuthTokenUpdateRequest
- type AuthorizeURLParams
- type AwsMetricScrapeConfigAnnotations
- type AwsMetricScrapeConfigApiVersion
- type AwsMetricScrapeConfigDefinition
- type AwsMetricScrapeConfigKind
- type AwsMetricScrapeConfigLabels
- type AwsMetricScrapeConfigMetadata
- type AwsMetricScrapeConfigNamespace
- type AwsMetricScrapeConfigSpec
- type AxisScale
- type CardholderDataRedactionSettings
- type ChangeGateComparison
- type CheckThresholdBaseline
- type CheckThresholdChangeGate
- type CheckThresholds
- type Client
- type ClientInterface
- type ClientOption
- func WithApiUrl(url string) ClientOption
- func WithAuthToken(authToken string) ClientOption
- func WithAuthTokenProvider(provider AuthTokenProvider) ClientOption
- func WithHTTPClient(client *http.Client) ClientOption
- func WithMaxConcurrentRequests(n int64) ClientOption
- func WithMaxRetries(n int) ClientOption
- func WithOtlpEndpoint(encoding OtlpEncoding, url string) ClientOption
- func WithRetryOnConflict() ClientOption
- func WithRetryWaitMax(d time.Duration) ClientOption
- func WithRetryWaitMin(d time.Duration) ClientOption
- func WithTimeout(d time.Duration) ClientOption
- func WithTransport(t *Transport) ClientOption
- func WithUserAgent(ua string) ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAgent0CustomSkillsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiAgenticWorkflowsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiAlertingCheckRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAuthTokensOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, ...) (*DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
- func (c *ClientWithResponses) DeleteApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiDashboardsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiDatasetsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiMembersInvitationsInvitationIDWithResponse(ctx context.Context, invitationID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersInvitationsInvitationIDResponse, error)
- func (c *ClientWithResponses) DeleteApiMembersMemberIDWithResponse(ctx context.Context, memberID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersMemberIDResponse, error)
- func (c *ClientWithResponses) DeleteApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiNotificationChannelsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiRecordingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiSamplingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiSignalToMetricsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSlosOriginOrIdParams, ...) (*DeleteApiSlosOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiSpamFiltersOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiSyntheticChecksOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse(ctx context.Context, originOrId string, memberID string, ...) (*DeleteApiTeamsOriginOrIdMembersMemberIDResponse, error)
- func (c *ClientWithResponses) DeleteApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiTeamsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*DeleteApiTimeSeriesAggregationsOriginOrIdResponse, error)
- func (c *ClientWithResponses) DeleteApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiViewsOriginOrIdParams, ...) (*DeleteApiViewsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAgent0CustomSkillsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiAgent0CustomSkillsWithResponse(ctx context.Context, params *GetApiAgent0CustomSkillsParams, ...) (*GetApiAgent0CustomSkillsResponse, error)
- func (c *ClientWithResponses) GetApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiAgenticWorkflowsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiAgenticWorkflowsWithResponse(ctx context.Context, params *GetApiAgenticWorkflowsParams, ...) (*GetApiAgenticWorkflowsResponse, error)
- func (c *ClientWithResponses) GetApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiAlertingCheckRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiAlertingCheckRulesWithResponse(ctx context.Context, params *GetApiAlertingCheckRulesParams, ...) (*GetApiAlertingCheckRulesResponse, error)
- func (c *ClientWithResponses) GetApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAuthTokensOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiAuthTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiAuthTokensResponse, error)
- func (c *ClientWithResponses) GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, ...) (*GetApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
- func (c *ClientWithResponses) GetApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiDashboardsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiDashboardsWithResponse(ctx context.Context, params *GetApiDashboardsParams, ...) (*GetApiDashboardsResponse, error)
- func (c *ClientWithResponses) GetApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiDatasetsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiDatasetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDatasetsResponse, error)
- func (c *ClientWithResponses) GetApiEdgeSettingsWithResponse(ctx context.Context, params *GetApiEdgeSettingsParams, ...) (*GetApiEdgeSettingsResponse, error)
- func (c *ClientWithResponses) GetApiMembersInvitationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersInvitationsResponse, error)
- func (c *ClientWithResponses) GetApiMembersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersResponse, error)
- func (c *ClientWithResponses) GetApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiNotificationChannelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1FormatQueryParams, ...) (*GetApiPrometheusApiV1FormatQueryResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, ...) (*GetApiPrometheusApiV1LabelLabelNameValuesResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1LabelsWithResponse(ctx context.Context, params *GetApiPrometheusApiV1LabelsParams, ...) (*GetApiPrometheusApiV1LabelsResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1MetadataWithResponse(ctx context.Context, params *GetApiPrometheusApiV1MetadataParams, ...) (*GetApiPrometheusApiV1MetadataResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryRangeParams, ...) (*GetApiPrometheusApiV1QueryRangeResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1QueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryParams, ...) (*GetApiPrometheusApiV1QueryResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1SeriesWithResponse(ctx context.Context, params *GetApiPrometheusApiV1SeriesParams, ...) (*GetApiPrometheusApiV1SeriesResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1StatusBuildinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusBuildinfoResponse, error)
- func (c *ClientWithResponses) GetApiPrometheusApiV1StatusRuntimeinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusRuntimeinfoResponse, error)
- func (c *ClientWithResponses) GetApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiRecordingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiRecordingRulesWithResponse(ctx context.Context, params *GetApiRecordingRulesParams, ...) (*GetApiRecordingRulesResponse, error)
- func (c *ClientWithResponses) GetApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiSamplingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiSamplingRulesWithResponse(ctx context.Context, params *GetApiSamplingRulesParams, ...) (*GetApiSamplingRulesResponse, error)
- func (c *ClientWithResponses) GetApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiSignalToMetricsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiSignalToMetricsWithResponse(ctx context.Context, params *GetApiSignalToMetricsParams, ...) (*GetApiSignalToMetricsResponse, error)
- func (c *ClientWithResponses) GetApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSlosOriginOrIdParams, ...) (*GetApiSlosOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiSlosWithResponse(ctx context.Context, params *GetApiSlosParams, reqEditors ...RequestEditorFn) (*GetApiSlosResponse, error)
- func (c *ClientWithResponses) GetApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiSpamFiltersOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiSpamFiltersWithResponse(ctx context.Context, params *GetApiSpamFiltersParams, ...) (*GetApiSpamFiltersResponse, error)
- func (c *ClientWithResponses) GetApiSyntheticChecksLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksLocationsResponse, error)
- func (c *ClientWithResponses) GetApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiSyntheticChecksOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiSyntheticChecksWithResponse(ctx context.Context, params *GetApiSyntheticChecksParams, ...) (*GetApiSyntheticChecksResponse, error)
- func (c *ClientWithResponses) GetApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiTeamsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTeamsResponse, error)
- func (c *ClientWithResponses) GetApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*GetApiTimeSeriesAggregationsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *GetApiTimeSeriesAggregationsParams, ...) (*GetApiTimeSeriesAggregationsResponse, error)
- func (c *ClientWithResponses) GetApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiViewsOriginOrIdParams, ...) (*GetApiViewsOriginOrIdResponse, error)
- func (c *ClientWithResponses) GetApiViewsWithResponse(ctx context.Context, params *GetApiViewsParams, reqEditors ...RequestEditorFn) (*GetApiViewsResponse, error)
- func (c *ClientWithResponses) GetOauthAuthorizeWithResponse(ctx context.Context, params *GetOauthAuthorizeParams, ...) (*GetOauthAuthorizeResponse, error)
- func (c *ClientWithResponses) GetWellKnownOauthAuthorizationServerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthAuthorizationServerResponse, error)
- func (c *ClientWithResponses) GetWellKnownOauthProtectedResourceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthProtectedResourceResponse, error)
- func (c *ClientWithResponses) PostApiAgent0CustomSkillsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiAgent0CustomSkillsResponse, error)
- func (c *ClientWithResponses) PostApiAgent0CustomSkillsWithResponse(ctx context.Context, body PostApiAgent0CustomSkillsJSONRequestBody, ...) (*PostApiAgent0CustomSkillsResponse, error)
- func (c *ClientWithResponses) PostApiAgenticWorkflowsWithBodyWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, contentType string, ...) (*PostApiAgenticWorkflowsResponse, error)
- func (c *ClientWithResponses) PostApiAgenticWorkflowsWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, ...) (*PostApiAgenticWorkflowsResponse, error)
- func (c *ClientWithResponses) PostApiAlertingCheckRulesBulkWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, ...) (*PostApiAlertingCheckRulesBulkResponse, error)
- func (c *ClientWithResponses) PostApiAlertingCheckRulesBulkWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, ...) (*PostApiAlertingCheckRulesBulkResponse, error)
- func (c *ClientWithResponses) PostApiAlertingCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, ...) (*PostApiAlertingCheckRulesResponse, error)
- func (c *ClientWithResponses) PostApiAlertingCheckRulesWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, ...) (*PostApiAlertingCheckRulesResponse, error)
- func (c *ClientWithResponses) PostApiAuthTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiAuthTokensResponse, error)
- func (c *ClientWithResponses) PostApiAuthTokensWithResponse(ctx context.Context, body PostApiAuthTokensJSONRequestBody, ...) (*PostApiAuthTokensResponse, error)
- func (c *ClientWithResponses) PostApiDashboardsWithBodyWithResponse(ctx context.Context, params *PostApiDashboardsParams, contentType string, ...) (*PostApiDashboardsResponse, error)
- func (c *ClientWithResponses) PostApiDashboardsWithResponse(ctx context.Context, params *PostApiDashboardsParams, ...) (*PostApiDashboardsResponse, error)
- func (c *ClientWithResponses) PostApiDatasetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiDatasetsResponse, error)
- func (c *ClientWithResponses) PostApiDatasetsWithResponse(ctx context.Context, body PostApiDatasetsJSONRequestBody, ...) (*PostApiDatasetsResponse, error)
- func (c *ClientWithResponses) PostApiImportCheckRuleWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, contentType string, ...) (*PostApiImportCheckRuleResponse, error)
- func (c *ClientWithResponses) PostApiImportCheckRuleWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, ...) (*PostApiImportCheckRuleResponse, error)
- func (c *ClientWithResponses) PostApiImportCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, contentType string, ...) (*PostApiImportCheckRulesResponse, error)
- func (c *ClientWithResponses) PostApiImportCheckRulesWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, ...) (*PostApiImportCheckRulesResponse, error)
- func (c *ClientWithResponses) PostApiImportDashboardWithBodyWithResponse(ctx context.Context, params *PostApiImportDashboardParams, contentType string, ...) (*PostApiImportDashboardResponse, error)
- func (c *ClientWithResponses) PostApiImportDashboardWithResponse(ctx context.Context, params *PostApiImportDashboardParams, ...) (*PostApiImportDashboardResponse, error)
- func (c *ClientWithResponses) PostApiImportSyntheticCheckWithBodyWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, ...) (*PostApiImportSyntheticCheckResponse, error)
- func (c *ClientWithResponses) PostApiImportSyntheticCheckWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, ...) (*PostApiImportSyntheticCheckResponse, error)
- func (c *ClientWithResponses) PostApiImportViewWithBodyWithResponse(ctx context.Context, params *PostApiImportViewParams, contentType string, ...) (*PostApiImportViewResponse, error)
- func (c *ClientWithResponses) PostApiImportViewWithResponse(ctx context.Context, params *PostApiImportViewParams, ...) (*PostApiImportViewResponse, error)
- func (c *ClientWithResponses) PostApiLogsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiLogsDownloadResponse, error)
- func (c *ClientWithResponses) PostApiLogsDownloadWithResponse(ctx context.Context, body PostApiLogsDownloadJSONRequestBody, ...) (*PostApiLogsDownloadResponse, error)
- func (c *ClientWithResponses) PostApiLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiLogsResponse, error)
- func (c *ClientWithResponses) PostApiLogsWithResponse(ctx context.Context, body PostApiLogsJSONRequestBody, ...) (*PostApiLogsResponse, error)
- func (c *ClientWithResponses) PostApiMembersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiMembersResponse, error)
- func (c *ClientWithResponses) PostApiMembersWithResponse(ctx context.Context, body PostApiMembersJSONRequestBody, ...) (*PostApiMembersResponse, error)
- func (c *ClientWithResponses) PostApiNotificationChannelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiNotificationChannelsResponse, error)
- func (c *ClientWithResponses) PostApiNotificationChannelsWithResponse(ctx context.Context, body PostApiNotificationChannelsJSONRequestBody, ...) (*PostApiNotificationChannelsResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1FormatQueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody, ...) (*PostApiPrometheusApiV1FormatQueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryJSONRequestBody, ...) (*PostApiPrometheusApiV1FormatQueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse(ctx context.Context, labelName string, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse(ctx context.Context, labelName string, ...) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, ...) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1LabelsResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsFormdataRequestBody, ...) (*PostApiPrometheusApiV1LabelsResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsJSONRequestBody, ...) (*PostApiPrometheusApiV1LabelsResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1MetadataResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataFormdataRequestBody, ...) (*PostApiPrometheusApiV1MetadataResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataJSONRequestBody, ...) (*PostApiPrometheusApiV1MetadataResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1QueryRangeResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody, ...) (*PostApiPrometheusApiV1QueryRangeResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeJSONRequestBody, ...) (*PostApiPrometheusApiV1QueryRangeResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1QueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryFormdataRequestBody, ...) (*PostApiPrometheusApiV1QueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryJSONRequestBody, ...) (*PostApiPrometheusApiV1QueryResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPrometheusApiV1SeriesResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesFormdataRequestBody, ...) (*PostApiPrometheusApiV1SeriesResponse, error)
- func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesJSONRequestBody, ...) (*PostApiPrometheusApiV1SeriesResponse, error)
- func (c *ClientWithResponses) PostApiRecordingRulesWithBodyWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, contentType string, ...) (*PostApiRecordingRulesResponse, error)
- func (c *ClientWithResponses) PostApiRecordingRulesWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, ...) (*PostApiRecordingRulesResponse, error)
- func (c *ClientWithResponses) PostApiSamplingRulesWithBodyWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, contentType string, ...) (*PostApiSamplingRulesResponse, error)
- func (c *ClientWithResponses) PostApiSamplingRulesWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, ...) (*PostApiSamplingRulesResponse, error)
- func (c *ClientWithResponses) PostApiSignalToMetricsTestWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, ...) (*PostApiSignalToMetricsTestResponse, error)
- func (c *ClientWithResponses) PostApiSignalToMetricsTestWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, ...) (*PostApiSignalToMetricsTestResponse, error)
- func (c *ClientWithResponses) PostApiSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, contentType string, ...) (*PostApiSignalToMetricsResponse, error)
- func (c *ClientWithResponses) PostApiSignalToMetricsWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, ...) (*PostApiSignalToMetricsResponse, error)
- func (c *ClientWithResponses) PostApiSlosOriginOrIdResetWithResponse(ctx context.Context, originOrId string, ...) (*PostApiSlosOriginOrIdResetResponse, error)
- func (c *ClientWithResponses) PostApiSlosWithBodyWithResponse(ctx context.Context, params *PostApiSlosParams, contentType string, ...) (*PostApiSlosResponse, error)
- func (c *ClientWithResponses) PostApiSlosWithResponse(ctx context.Context, params *PostApiSlosParams, ...) (*PostApiSlosResponse, error)
- func (c *ClientWithResponses) PostApiSpamFiltersWithBodyWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, contentType string, ...) (*PostApiSpamFiltersResponse, error)
- func (c *ClientWithResponses) PostApiSpamFiltersWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, ...) (*PostApiSpamFiltersResponse, error)
- func (c *ClientWithResponses) PostApiSpansDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSpansDownloadResponse, error)
- func (c *ClientWithResponses) PostApiSpansDownloadWithResponse(ctx context.Context, body PostApiSpansDownloadJSONRequestBody, ...) (*PostApiSpansDownloadResponse, error)
- func (c *ClientWithResponses) PostApiSpansWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSpansResponse, error)
- func (c *ClientWithResponses) PostApiSpansWithResponse(ctx context.Context, body PostApiSpansJSONRequestBody, ...) (*PostApiSpansResponse, error)
- func (c *ClientWithResponses) PostApiSqlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSqlResponse, error)
- func (c *ClientWithResponses) PostApiSqlWithResponse(ctx context.Context, body PostApiSqlJSONRequestBody, ...) (*PostApiSqlResponse, error)
- func (c *ClientWithResponses) PostApiSyntheticChecksTestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSyntheticChecksTestResponse, error)
- func (c *ClientWithResponses) PostApiSyntheticChecksTestWithResponse(ctx context.Context, body PostApiSyntheticChecksTestJSONRequestBody, ...) (*PostApiSyntheticChecksTestResponse, error)
- func (c *ClientWithResponses) PostApiSyntheticChecksWithBodyWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, contentType string, ...) (*PostApiSyntheticChecksResponse, error)
- func (c *ClientWithResponses) PostApiSyntheticChecksWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, ...) (*PostApiSyntheticChecksResponse, error)
- func (c *ClientWithResponses) PostApiTeamsOriginOrIdMembersWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PostApiTeamsOriginOrIdMembersResponse, error)
- func (c *ClientWithResponses) PostApiTeamsOriginOrIdMembersWithResponse(ctx context.Context, originOrId string, ...) (*PostApiTeamsOriginOrIdMembersResponse, error)
- func (c *ClientWithResponses) PostApiTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiTeamsResponse, error)
- func (c *ClientWithResponses) PostApiTeamsWithResponse(ctx context.Context, body PostApiTeamsJSONRequestBody, ...) (*PostApiTeamsResponse, error)
- func (c *ClientWithResponses) PostApiTimeSeriesAggregationsWithBodyWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, ...) (*PostApiTimeSeriesAggregationsResponse, error)
- func (c *ClientWithResponses) PostApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, ...) (*PostApiTimeSeriesAggregationsResponse, error)
- func (c *ClientWithResponses) PostApiTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiTopologyResponse, error)
- func (c *ClientWithResponses) PostApiTopologyWithResponse(ctx context.Context, body PostApiTopologyJSONRequestBody, ...) (*PostApiTopologyResponse, error)
- func (c *ClientWithResponses) PostApiTraceDetailsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiTraceDetailsResponse, error)
- func (c *ClientWithResponses) PostApiTraceDetailsWithResponse(ctx context.Context, body PostApiTraceDetailsJSONRequestBody, ...) (*PostApiTraceDetailsResponse, error)
- func (c *ClientWithResponses) PostApiTraceIdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiTraceIdsResponse, error)
- func (c *ClientWithResponses) PostApiTraceIdsWithResponse(ctx context.Context, body PostApiTraceIdsJSONRequestBody, ...) (*PostApiTraceIdsResponse, error)
- func (c *ClientWithResponses) PostApiViewsWithBodyWithResponse(ctx context.Context, params *PostApiViewsParams, contentType string, ...) (*PostApiViewsResponse, error)
- func (c *ClientWithResponses) PostApiViewsWithResponse(ctx context.Context, params *PostApiViewsParams, ...) (*PostApiViewsResponse, error)
- func (c *ClientWithResponses) PostApiWebEventsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiWebEventsDownloadResponse, error)
- func (c *ClientWithResponses) PostApiWebEventsDownloadWithResponse(ctx context.Context, body PostApiWebEventsDownloadJSONRequestBody, ...) (*PostApiWebEventsDownloadResponse, error)
- func (c *ClientWithResponses) PostOauthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOauthRegisterResponse, error)
- func (c *ClientWithResponses) PostOauthRegisterWithResponse(ctx context.Context, body PostOauthRegisterJSONRequestBody, ...) (*PostOauthRegisterResponse, error)
- func (c *ClientWithResponses) PostOauthRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOauthRevokeResponse, error)
- func (c *ClientWithResponses) PostOauthRevokeWithFormdataBodyWithResponse(ctx context.Context, body PostOauthRevokeFormdataRequestBody, ...) (*PostOauthRevokeResponse, error)
- func (c *ClientWithResponses) PostOauthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOauthTokenResponse, error)
- func (c *ClientWithResponses) PostOauthTokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauthTokenFormdataRequestBody, ...) (*PostOauthTokenResponse, error)
- func (c *ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAuthTokensOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiAuthTokensOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiAuthTokensOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse(ctx context.Context, integrationId openapi_types.UUID, contentType string, ...) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
- func (c *ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, ...) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
- func (c *ClientWithResponses) PutApiDashboardsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiDashboardsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiDashboardsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiDatasetsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiDatasetsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiDatasetsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiImportSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, ...) (*PutApiImportSignalToMetricsResponse, error)
- func (c *ClientWithResponses) PutApiImportSignalToMetricsWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, ...) (*PutApiImportSignalToMetricsResponse, error)
- func (c *ClientWithResponses) PutApiMembersMemberIDRoleWithBodyWithResponse(ctx context.Context, memberID string, contentType string, body io.Reader, ...) (*PutApiMembersMemberIDRoleResponse, error)
- func (c *ClientWithResponses) PutApiMembersMemberIDRoleWithResponse(ctx context.Context, memberID string, ...) (*PutApiMembersMemberIDRoleResponse, error)
- func (c *ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiNotificationChannelsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiNotificationChannelsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiRecordingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiRecordingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiRecordingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSamplingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSamplingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSamplingRulesOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSignalToMetricsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSignalToMetricsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSlosOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, ...) (*PutApiSlosOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, ...) (*PutApiSlosOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSpamFiltersOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSpamFiltersOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSpamFiltersOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSyntheticChecksOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiSyntheticChecksOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiTeamsOriginOrIdDisplayResponse, error)
- func (c *ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithResponse(ctx context.Context, originOrId string, ...) (*PutApiTeamsOriginOrIdDisplayResponse, error)
- func (c *ClientWithResponses) PutApiTeamsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, ...) (*PutApiTeamsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiTeamsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, ...) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, ...) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiViewsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, ...) (*PutApiViewsOriginOrIdResponse, error)
- func (c *ClientWithResponses) PutApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, ...) (*PutApiViewsOriginOrIdResponse, error)
- type ClientWithResponsesInterface
- type CrdSource
- type Cursor
- type CursorPagination
- type CustomSkillAction
- type D0QLWarnings
- type DarkplaneAutoApprovalDecision
- type DarkplaneAutoApprovalMode
- type DarkplaneConfig
- type DarkplaneEvaluationTriggerDelivery
- type DarkplaneEvaluationTriggerVariableName
- type DarkplaneProvider
- type DarkplanePullRequestEvaluationAgenticWorkflowTrigger
- type DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind
- type DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec
- type DashboardAnnotations
- type DashboardApiListItem
- type DashboardDefinition
- type DashboardDefinitionKind
- type DashboardLabels
- type DashboardMetadata
- type DashboardMetadataExtensions
- type DashboardSourcedeprecated
- type Dataset
- type DatasetAction
- type DatasetAnnotations
- type DatasetCreateRequest
- type DatasetDefinition
- type DatasetDefinitionKind
- type DatasetGeoLocationPrivacy
- type DatasetGeoLocationStorage
- type DatasetIpAddressPrivacy
- type DatasetIpAddressStorage
- type DatasetLabels
- type DatasetListResponse
- type DatasetLoggingSettings
- type DatasetMetadata
- type DatasetMetricsSettings
- type DatasetPermission
- type DatasetPrivacy
- type DatasetProcessing
- type DatasetProfilingSettings
- type DatasetRedaction
- type DatasetResponse
- type DatasetRestriction
- type DatasetRetention
- type DatasetSettings
- type DatasetSpec
- type DatasetTracingSettings
- type DatasetUpdateRequest
- type DatasetWebEventsSettings
- type DeeplinkAssetType
- type DeeplinkFilter
- type DeleteApiAgent0CustomSkillsOriginOrIdResponse
- func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
- func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) Status() string
- func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
- type DeleteApiAgenticWorkflowsOriginOrIdParams
- type DeleteApiAgenticWorkflowsOriginOrIdResponse
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) Status() string
- func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
- type DeleteApiAlertingCheckRulesOriginOrIdParams
- type DeleteApiAlertingCheckRulesOriginOrIdResponse
- func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
- func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) Status() string
- func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
- type DeleteApiAuthTokensOriginOrIdResponse
- func (r DeleteApiAuthTokensOriginOrIdResponse) ContentType() string
- func (r DeleteApiAuthTokensOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiAuthTokensOriginOrIdResponse) Status() string
- func (r DeleteApiAuthTokensOriginOrIdResponse) StatusCode() int
- type DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse
- func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
- func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
- func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
- func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
- type DeleteApiDashboardsOriginOrIdParams
- type DeleteApiDashboardsOriginOrIdResponse
- func (r DeleteApiDashboardsOriginOrIdResponse) ContentType() string
- func (r DeleteApiDashboardsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiDashboardsOriginOrIdResponse) Status() string
- func (r DeleteApiDashboardsOriginOrIdResponse) StatusCode() int
- type DeleteApiDatasetsOriginOrIdResponse
- func (r DeleteApiDatasetsOriginOrIdResponse) ContentType() string
- func (r DeleteApiDatasetsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiDatasetsOriginOrIdResponse) Status() string
- func (r DeleteApiDatasetsOriginOrIdResponse) StatusCode() int
- type DeleteApiMembersInvitationsInvitationIDResponse
- func (r DeleteApiMembersInvitationsInvitationIDResponse) ContentType() string
- func (r DeleteApiMembersInvitationsInvitationIDResponse) GetBody() []byte
- func (r DeleteApiMembersInvitationsInvitationIDResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiMembersInvitationsInvitationIDResponse) Status() string
- func (r DeleteApiMembersInvitationsInvitationIDResponse) StatusCode() int
- type DeleteApiMembersMemberIDResponse
- func (r DeleteApiMembersMemberIDResponse) ContentType() string
- func (r DeleteApiMembersMemberIDResponse) GetBody() []byte
- func (r DeleteApiMembersMemberIDResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiMembersMemberIDResponse) Status() string
- func (r DeleteApiMembersMemberIDResponse) StatusCode() int
- type DeleteApiNotificationChannelsOriginOrIdResponse
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) ContentType() string
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON409() *ErrorResponse
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) Status() string
- func (r DeleteApiNotificationChannelsOriginOrIdResponse) StatusCode() int
- type DeleteApiRecordingRulesOriginOrIdParams
- type DeleteApiRecordingRulesOriginOrIdResponse
- func (r DeleteApiRecordingRulesOriginOrIdResponse) ContentType() string
- func (r DeleteApiRecordingRulesOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiRecordingRulesOriginOrIdResponse) Status() string
- func (r DeleteApiRecordingRulesOriginOrIdResponse) StatusCode() int
- type DeleteApiSamplingRulesOriginOrIdParams
- type DeleteApiSamplingRulesOriginOrIdResponse
- func (r DeleteApiSamplingRulesOriginOrIdResponse) ContentType() string
- func (r DeleteApiSamplingRulesOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiSamplingRulesOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiSamplingRulesOriginOrIdResponse) Status() string
- func (r DeleteApiSamplingRulesOriginOrIdResponse) StatusCode() int
- type DeleteApiSignalToMetricsOriginOrIdParams
- type DeleteApiSignalToMetricsOriginOrIdResponse
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) ContentType() string
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) Status() string
- func (r DeleteApiSignalToMetricsOriginOrIdResponse) StatusCode() int
- type DeleteApiSlosOriginOrIdParams
- type DeleteApiSlosOriginOrIdResponse
- func (r DeleteApiSlosOriginOrIdResponse) ContentType() string
- func (r DeleteApiSlosOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiSlosOriginOrIdResponse) Status() string
- func (r DeleteApiSlosOriginOrIdResponse) StatusCode() int
- type DeleteApiSpamFiltersOriginOrIdParams
- type DeleteApiSpamFiltersOriginOrIdResponse
- func (r DeleteApiSpamFiltersOriginOrIdResponse) ContentType() string
- func (r DeleteApiSpamFiltersOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiSpamFiltersOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiSpamFiltersOriginOrIdResponse) Status() string
- func (r DeleteApiSpamFiltersOriginOrIdResponse) StatusCode() int
- type DeleteApiSyntheticChecksOriginOrIdParams
- type DeleteApiSyntheticChecksOriginOrIdResponse
- func (r DeleteApiSyntheticChecksOriginOrIdResponse) ContentType() string
- func (r DeleteApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiSyntheticChecksOriginOrIdResponse) Status() string
- func (r DeleteApiSyntheticChecksOriginOrIdResponse) StatusCode() int
- type DeleteApiTeamsOriginOrIdMembersMemberIDResponse
- func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) ContentType() string
- func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetBody() []byte
- func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) Status() string
- func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) StatusCode() int
- type DeleteApiTeamsOriginOrIdResponse
- func (r DeleteApiTeamsOriginOrIdResponse) ContentType() string
- func (r DeleteApiTeamsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiTeamsOriginOrIdResponse) Status() string
- func (r DeleteApiTeamsOriginOrIdResponse) StatusCode() int
- type DeleteApiTimeSeriesAggregationsOriginOrIdParams
- type DeleteApiTimeSeriesAggregationsOriginOrIdResponse
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
- func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
- type DeleteApiViewsOriginOrIdParams
- type DeleteApiViewsOriginOrIdResponse
- func (r DeleteApiViewsOriginOrIdResponse) ContentType() string
- func (r DeleteApiViewsOriginOrIdResponse) GetBody() []byte
- func (r DeleteApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r DeleteApiViewsOriginOrIdResponse) Status() string
- func (r DeleteApiViewsOriginOrIdResponse) StatusCode() int
- type DiscordWebhookConfig
- type Duration
- type EmailConfigdeprecated
- type EmailV2Config
- type EmptyAgenticWorkflowTriggerSpec
- type Error
- type ErrorAssertion
- type ErrorAssertionKind
- type ErrorAssertionSpec
- type ErrorResponse
- type ExecuteSqlRequest
- type ExecuteSqlResponse
- type FailedCheckAgenticWorkflowTrigger
- type FailedCheckAgenticWorkflowTriggerKind
- type FailedCheckAgenticWorkflowTriggerSpec
- type FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item
- func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckSilencedTriggerVariableName() (FailedCheckSilencedTriggerVariableName, error)
- func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName() (FailedCheckTriggerVariableName, error)
- func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckSilencedTriggerVariableName(v FailedCheckSilencedTriggerVariableName) error
- func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
- func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
- func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckSilencedTriggerVariableName(v FailedCheckSilencedTriggerVariableName) error
- func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
- func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
- type FailedCheckSilencedTriggerVariableName
- type FailedCheckTriggerVariableName
- type FailedHttpCheckAssertion
- type FilterCriteria
- type FixedTime
- type FixedTimeUnix
- type GenAIAttributeRedaction
- type GenAIAttributeRedactionSettings
- type GenerativeAiEvaluationDefinition
- type GenerativeAiEvaluationDefinitionKind
- type GenerativeAiEvaluationDisplay
- type GenerativeAiEvaluationGroupAnnotations
- type GenerativeAiEvaluationIntent
- type GenerativeAiEvaluationJudge
- type GenerativeAiEvaluationJudgeOutput
- func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputBoolean() (GenerativeAiEvaluationJudgeOutputBoolean, error)
- func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputCategorical() (GenerativeAiEvaluationJudgeOutputCategorical, error)
- func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputNumeric() (GenerativeAiEvaluationJudgeOutputNumeric, error)
- func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputBoolean(v GenerativeAiEvaluationJudgeOutputBoolean) error
- func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputCategorical(v GenerativeAiEvaluationJudgeOutputCategorical) error
- func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputNumeric(v GenerativeAiEvaluationJudgeOutputNumeric) error
- func (t GenerativeAiEvaluationJudgeOutput) MarshalJSON() ([]byte, error)
- func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputBoolean(v GenerativeAiEvaluationJudgeOutputBoolean) error
- func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputCategorical(v GenerativeAiEvaluationJudgeOutputCategorical) error
- func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputNumeric(v GenerativeAiEvaluationJudgeOutputNumeric) error
- func (t *GenerativeAiEvaluationJudgeOutput) UnmarshalJSON(b []byte) error
- type GenerativeAiEvaluationJudgeOutputBoolean
- type GenerativeAiEvaluationJudgeOutputBooleanKind
- type GenerativeAiEvaluationJudgeOutputCategorical
- type GenerativeAiEvaluationJudgeOutputCategoricalItem
- type GenerativeAiEvaluationJudgeOutputCategoricalKind
- type GenerativeAiEvaluationJudgeOutputCategoricalSpec
- type GenerativeAiEvaluationJudgeOutputNumeric
- type GenerativeAiEvaluationJudgeOutputNumericKind
- type GenerativeAiEvaluationJudgeOutputNumericSpec
- type GenerativeAiEvaluationLabels
- type GenerativeAiEvaluationMatch
- type GenerativeAiEvaluationMetadata
- type GenerativeAiEvaluationModel
- type GenerativeAiEvaluationResponse
- type GenerativeAiEvaluationSampling
- type GenerativeAiEvaluationSpec
- type GeoLocationSettings
- type GeoLocationStorageStrategy
- type GetAgenticWorkflowsResponse
- type GetApiAgent0CustomSkillsOriginOrIdResponse
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200() *SkillResponse
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) Status() string
- func (r GetApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
- type GetApiAgent0CustomSkillsParams
- type GetApiAgent0CustomSkillsResponse
- func (r GetApiAgent0CustomSkillsResponse) ContentType() string
- func (r GetApiAgent0CustomSkillsResponse) GetBody() []byte
- func (r GetApiAgent0CustomSkillsResponse) GetJSON200() *SkillListResponse
- func (r GetApiAgent0CustomSkillsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAgent0CustomSkillsResponse) Status() string
- func (r GetApiAgent0CustomSkillsResponse) StatusCode() int
- type GetApiAgenticWorkflowsOriginOrIdParams
- type GetApiAgenticWorkflowsOriginOrIdResponse
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetJSON200() *AgenticWorkflowResponse
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) Status() string
- func (r GetApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
- type GetApiAgenticWorkflowsParams
- type GetApiAgenticWorkflowsResponse
- func (r GetApiAgenticWorkflowsResponse) ContentType() string
- func (r GetApiAgenticWorkflowsResponse) GetBody() []byte
- func (r GetApiAgenticWorkflowsResponse) GetJSON200() *GetAgenticWorkflowsResponse
- func (r GetApiAgenticWorkflowsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAgenticWorkflowsResponse) Status() string
- func (r GetApiAgenticWorkflowsResponse) StatusCode() int
- type GetApiAlertingCheckRulesOriginOrIdParams
- type GetApiAlertingCheckRulesOriginOrIdResponse
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetJSON200() *PrometheusAlertRule
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) Status() string
- func (r GetApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
- type GetApiAlertingCheckRulesParams
- type GetApiAlertingCheckRulesResponse
- func (r GetApiAlertingCheckRulesResponse) ContentType() string
- func (r GetApiAlertingCheckRulesResponse) GetBody() []byte
- func (r GetApiAlertingCheckRulesResponse) GetJSON200() *[]PrometheusAlertRuleApiListItem
- func (r GetApiAlertingCheckRulesResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAlertingCheckRulesResponse) Status() string
- func (r GetApiAlertingCheckRulesResponse) StatusCode() int
- type GetApiAuthTokensOriginOrIdResponse
- func (r GetApiAuthTokensOriginOrIdResponse) ContentType() string
- func (r GetApiAuthTokensOriginOrIdResponse) GetBody() []byte
- func (r GetApiAuthTokensOriginOrIdResponse) GetJSON200() *AuthTokenResponse
- func (r GetApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r GetApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAuthTokensOriginOrIdResponse) Status() string
- func (r GetApiAuthTokensOriginOrIdResponse) StatusCode() int
- type GetApiAuthTokensResponse
- func (r GetApiAuthTokensResponse) ContentType() string
- func (r GetApiAuthTokensResponse) GetBody() []byte
- func (r GetApiAuthTokensResponse) GetJSON200() *AuthTokenListResponse
- func (r GetApiAuthTokensResponse) GetJSON403() *ErrorResponse
- func (r GetApiAuthTokensResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAuthTokensResponse) Status() string
- func (r GetApiAuthTokensResponse) StatusCode() int
- type GetApiAwsMetricScrapeConfigsIntegrationIdResponse
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200() *AwsMetricScrapeConfigDefinition
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
- func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
- type GetApiDashboardsOriginOrIdParams
- type GetApiDashboardsOriginOrIdResponse
- func (r GetApiDashboardsOriginOrIdResponse) ContentType() string
- func (r GetApiDashboardsOriginOrIdResponse) GetBody() []byte
- func (r GetApiDashboardsOriginOrIdResponse) GetJSON200() *DashboardDefinition
- func (r GetApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiDashboardsOriginOrIdResponse) Status() string
- func (r GetApiDashboardsOriginOrIdResponse) StatusCode() int
- type GetApiDashboardsParams
- type GetApiDashboardsResponse
- func (r GetApiDashboardsResponse) ContentType() string
- func (r GetApiDashboardsResponse) GetBody() []byte
- func (r GetApiDashboardsResponse) GetJSON200() *[]DashboardApiListItem
- func (r GetApiDashboardsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiDashboardsResponse) Status() string
- func (r GetApiDashboardsResponse) StatusCode() int
- type GetApiDatasetsOriginOrIdResponse
- func (r GetApiDatasetsOriginOrIdResponse) ContentType() string
- func (r GetApiDatasetsOriginOrIdResponse) GetBody() []byte
- func (r GetApiDatasetsOriginOrIdResponse) GetJSON200() *DatasetResponse
- func (r GetApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiDatasetsOriginOrIdResponse) Status() string
- func (r GetApiDatasetsOriginOrIdResponse) StatusCode() int
- type GetApiDatasetsResponse
- func (r GetApiDatasetsResponse) ContentType() string
- func (r GetApiDatasetsResponse) GetBody() []byte
- func (r GetApiDatasetsResponse) GetJSON200() *DatasetListResponse
- func (r GetApiDatasetsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiDatasetsResponse) Status() string
- func (r GetApiDatasetsResponse) StatusCode() int
- type GetApiEdgeSettingsParams
- type GetApiEdgeSettingsResponse
- func (r GetApiEdgeSettingsResponse) ContentType() string
- func (r GetApiEdgeSettingsResponse) GetBody() []byte
- func (r GetApiEdgeSettingsResponse) GetJSON200() *SettingsPerOrganizationAndDatasetInfo
- func (r GetApiEdgeSettingsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiEdgeSettingsResponse) Status() string
- func (r GetApiEdgeSettingsResponse) StatusCode() int
- type GetApiEdgeSettingsResponse200Headers
- type GetApiEdgeSettingsResponse304Headers
- type GetApiMembersInvitationsResponse
- func (r GetApiMembersInvitationsResponse) ContentType() string
- func (r GetApiMembersInvitationsResponse) GetBody() []byte
- func (r GetApiMembersInvitationsResponse) GetJSON200() *[]MemberInvitationDefinition
- func (r GetApiMembersInvitationsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiMembersInvitationsResponse) Status() string
- func (r GetApiMembersInvitationsResponse) StatusCode() int
- type GetApiMembersResponse
- func (r GetApiMembersResponse) ContentType() string
- func (r GetApiMembersResponse) GetBody() []byte
- func (r GetApiMembersResponse) GetJSON200() *[]MemberDefinition
- func (r GetApiMembersResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiMembersResponse) Status() string
- func (r GetApiMembersResponse) StatusCode() int
- type GetApiNotificationChannelsOriginOrIdResponse
- func (r GetApiNotificationChannelsOriginOrIdResponse) ContentType() string
- func (r GetApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
- func (r GetApiNotificationChannelsOriginOrIdResponse) GetJSON200() *NotificationChannelDefinition
- func (r GetApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiNotificationChannelsOriginOrIdResponse) Status() string
- func (r GetApiNotificationChannelsOriginOrIdResponse) StatusCode() int
- type GetApiNotificationChannelsResponse
- func (r GetApiNotificationChannelsResponse) ContentType() string
- func (r GetApiNotificationChannelsResponse) GetBody() []byte
- func (r GetApiNotificationChannelsResponse) GetJSON200() *NotificationChannelDefinitions
- func (r GetApiNotificationChannelsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiNotificationChannelsResponse) Status() string
- func (r GetApiNotificationChannelsResponse) StatusCode() int
- type GetApiPrometheusApiV1FormatQueryParams
- type GetApiPrometheusApiV1FormatQueryResponse
- func (r GetApiPrometheusApiV1FormatQueryResponse) ContentType() string
- func (r GetApiPrometheusApiV1FormatQueryResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1FormatQueryResponse) GetJSON200() *PrometheusFormatQueryResponse
- func (r GetApiPrometheusApiV1FormatQueryResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1FormatQueryResponse) Status() string
- func (r GetApiPrometheusApiV1FormatQueryResponse) StatusCode() int
- type GetApiPrometheusApiV1LabelLabelNameValuesParams
- type GetApiPrometheusApiV1LabelLabelNameValuesResponse
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType() string
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) Status() string
- func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode() int
- type GetApiPrometheusApiV1LabelsParams
- type GetApiPrometheusApiV1LabelsResponse
- func (r GetApiPrometheusApiV1LabelsResponse) ContentType() string
- func (r GetApiPrometheusApiV1LabelsResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1LabelsResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
- func (r GetApiPrometheusApiV1LabelsResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1LabelsResponse) Status() string
- func (r GetApiPrometheusApiV1LabelsResponse) StatusCode() int
- type GetApiPrometheusApiV1MetadataParams
- type GetApiPrometheusApiV1MetadataResponse
- func (r GetApiPrometheusApiV1MetadataResponse) ContentType() string
- func (r GetApiPrometheusApiV1MetadataResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1MetadataResponse) GetJSON200() *PrometheusMetadataResponse
- func (r GetApiPrometheusApiV1MetadataResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1MetadataResponse) Status() string
- func (r GetApiPrometheusApiV1MetadataResponse) StatusCode() int
- type GetApiPrometheusApiV1QueryParams
- type GetApiPrometheusApiV1QueryRangeParams
- type GetApiPrometheusApiV1QueryRangeResponse
- func (r GetApiPrometheusApiV1QueryRangeResponse) ContentType() string
- func (r GetApiPrometheusApiV1QueryRangeResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1QueryRangeResponse) GetJSON200() *PrometheusQueryResponse
- func (r GetApiPrometheusApiV1QueryRangeResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1QueryRangeResponse) Status() string
- func (r GetApiPrometheusApiV1QueryRangeResponse) StatusCode() int
- type GetApiPrometheusApiV1QueryResponse
- func (r GetApiPrometheusApiV1QueryResponse) ContentType() string
- func (r GetApiPrometheusApiV1QueryResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1QueryResponse) GetJSON200() *PrometheusQueryResponse
- func (r GetApiPrometheusApiV1QueryResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1QueryResponse) Status() string
- func (r GetApiPrometheusApiV1QueryResponse) StatusCode() int
- type GetApiPrometheusApiV1SeriesParams
- type GetApiPrometheusApiV1SeriesResponse
- func (r GetApiPrometheusApiV1SeriesResponse) ContentType() string
- func (r GetApiPrometheusApiV1SeriesResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1SeriesResponse) GetJSON200() *PrometheusSeriesResponse
- func (r GetApiPrometheusApiV1SeriesResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1SeriesResponse) Status() string
- func (r GetApiPrometheusApiV1SeriesResponse) StatusCode() int
- type GetApiPrometheusApiV1StatusBuildinfoResponse
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) ContentType() string
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSON200() *PrometheusBuildInfoResponse
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) Status() string
- func (r GetApiPrometheusApiV1StatusBuildinfoResponse) StatusCode() int
- type GetApiPrometheusApiV1StatusRuntimeinfoResponse
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) ContentType() string
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetBody() []byte
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSON200() *PrometheusRuntimeInfoResponse
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) Status() string
- func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) StatusCode() int
- type GetApiRecordingRulesOriginOrIdParams
- type GetApiRecordingRulesOriginOrIdResponse
- func (r GetApiRecordingRulesOriginOrIdResponse) ContentType() string
- func (r GetApiRecordingRulesOriginOrIdResponse) GetBody() []byte
- func (r GetApiRecordingRulesOriginOrIdResponse) GetJSON200() *generatedPrometheusRule
- func (r GetApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiRecordingRulesOriginOrIdResponse) Status() string
- func (r GetApiRecordingRulesOriginOrIdResponse) StatusCode() int
- type GetApiRecordingRulesParams
- type GetApiRecordingRulesResponse
- func (r GetApiRecordingRulesResponse) ContentType() string
- func (r GetApiRecordingRulesResponse) GetBody() []byte
- func (r GetApiRecordingRulesResponse) GetJSON200() *[]generatedPrometheusRule
- func (r GetApiRecordingRulesResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiRecordingRulesResponse) Status() string
- func (r GetApiRecordingRulesResponse) StatusCode() int
- type GetApiSamplingRulesOriginOrIdParams
- type GetApiSamplingRulesOriginOrIdResponse
- func (r GetApiSamplingRulesOriginOrIdResponse) ContentType() string
- func (r GetApiSamplingRulesOriginOrIdResponse) GetBody() []byte
- func (r GetApiSamplingRulesOriginOrIdResponse) GetJSON200() *SamplingRuleResponse
- func (r GetApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSamplingRulesOriginOrIdResponse) Status() string
- func (r GetApiSamplingRulesOriginOrIdResponse) StatusCode() int
- type GetApiSamplingRulesParams
- type GetApiSamplingRulesResponse
- func (r GetApiSamplingRulesResponse) ContentType() string
- func (r GetApiSamplingRulesResponse) GetBody() []byte
- func (r GetApiSamplingRulesResponse) GetJSON200() *GetSamplingRulesResponse
- func (r GetApiSamplingRulesResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSamplingRulesResponse) Status() string
- func (r GetApiSamplingRulesResponse) StatusCode() int
- type GetApiSignalToMetricsOriginOrIdParams
- type GetApiSignalToMetricsOriginOrIdResponse
- func (r GetApiSignalToMetricsOriginOrIdResponse) ContentType() string
- func (r GetApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
- func (r GetApiSignalToMetricsOriginOrIdResponse) GetJSON200() *SignalToMetricsResponse
- func (r GetApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSignalToMetricsOriginOrIdResponse) Status() string
- func (r GetApiSignalToMetricsOriginOrIdResponse) StatusCode() int
- type GetApiSignalToMetricsParams
- type GetApiSignalToMetricsResponse
- func (r GetApiSignalToMetricsResponse) ContentType() string
- func (r GetApiSignalToMetricsResponse) GetBody() []byte
- func (r GetApiSignalToMetricsResponse) GetJSON200() *GetSignalToMetricsResponse
- func (r GetApiSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSignalToMetricsResponse) Status() string
- func (r GetApiSignalToMetricsResponse) StatusCode() int
- type GetApiSlosOriginOrIdParams
- type GetApiSlosOriginOrIdResponse
- func (r GetApiSlosOriginOrIdResponse) ContentType() string
- func (r GetApiSlosOriginOrIdResponse) GetBody() []byte
- func (r GetApiSlosOriginOrIdResponse) GetJSON200() *SloDefinition
- func (r GetApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSlosOriginOrIdResponse) Status() string
- func (r GetApiSlosOriginOrIdResponse) StatusCode() int
- type GetApiSlosParams
- type GetApiSlosResponse
- func (r GetApiSlosResponse) ContentType() string
- func (r GetApiSlosResponse) GetBody() []byte
- func (r GetApiSlosResponse) GetJSON200() *[]SloDefinition
- func (r GetApiSlosResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSlosResponse) Status() string
- func (r GetApiSlosResponse) StatusCode() int
- type GetApiSpamFiltersOriginOrIdParams
- type GetApiSpamFiltersOriginOrIdResponse
- func (r GetApiSpamFiltersOriginOrIdResponse) ContentType() string
- func (r GetApiSpamFiltersOriginOrIdResponse) GetBody() []byte
- func (r GetApiSpamFiltersOriginOrIdResponse) GetJSON200() *SpamFilterResponse
- func (r GetApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSpamFiltersOriginOrIdResponse) Status() string
- func (r GetApiSpamFiltersOriginOrIdResponse) StatusCode() int
- type GetApiSpamFiltersParams
- type GetApiSpamFiltersResponse
- func (r GetApiSpamFiltersResponse) ContentType() string
- func (r GetApiSpamFiltersResponse) GetBody() []byte
- func (r GetApiSpamFiltersResponse) GetJSON200() *GetSpamFiltersResponse
- func (r GetApiSpamFiltersResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSpamFiltersResponse) Status() string
- func (r GetApiSpamFiltersResponse) StatusCode() int
- type GetApiSyntheticChecksLocationsResponse
- func (r GetApiSyntheticChecksLocationsResponse) ContentType() string
- func (r GetApiSyntheticChecksLocationsResponse) GetBody() []byte
- func (r GetApiSyntheticChecksLocationsResponse) GetJSON200() *[]SyntheticCheckLocationEntry
- func (r GetApiSyntheticChecksLocationsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSyntheticChecksLocationsResponse) Status() string
- func (r GetApiSyntheticChecksLocationsResponse) StatusCode() int
- type GetApiSyntheticChecksOriginOrIdParams
- type GetApiSyntheticChecksOriginOrIdResponse
- func (r GetApiSyntheticChecksOriginOrIdResponse) ContentType() string
- func (r GetApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
- func (r GetApiSyntheticChecksOriginOrIdResponse) GetJSON200() *SyntheticCheckDefinition
- func (r GetApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSyntheticChecksOriginOrIdResponse) Status() string
- func (r GetApiSyntheticChecksOriginOrIdResponse) StatusCode() int
- type GetApiSyntheticChecksParams
- type GetApiSyntheticChecksResponse
- func (r GetApiSyntheticChecksResponse) ContentType() string
- func (r GetApiSyntheticChecksResponse) GetBody() []byte
- func (r GetApiSyntheticChecksResponse) GetJSON200() *[]SyntheticChecksApiListItem
- func (r GetApiSyntheticChecksResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiSyntheticChecksResponse) Status() string
- func (r GetApiSyntheticChecksResponse) StatusCode() int
- type GetApiTeamsOriginOrIdResponse
- func (r GetApiTeamsOriginOrIdResponse) ContentType() string
- func (r GetApiTeamsOriginOrIdResponse) GetBody() []byte
- func (r GetApiTeamsOriginOrIdResponse) GetJSON200() *GetTeamResponse
- func (r GetApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiTeamsOriginOrIdResponse) Status() string
- func (r GetApiTeamsOriginOrIdResponse) StatusCode() int
- type GetApiTeamsResponse
- func (r GetApiTeamsResponse) ContentType() string
- func (r GetApiTeamsResponse) GetBody() []byte
- func (r GetApiTeamsResponse) GetJSON200() *[]TeamsListItem
- func (r GetApiTeamsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiTeamsResponse) Status() string
- func (r GetApiTeamsResponse) StatusCode() int
- type GetApiTimeSeriesAggregationsOriginOrIdParams
- type GetApiTimeSeriesAggregationsOriginOrIdResponse
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200() *TimeSeriesAggregationDefinition
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
- func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
- type GetApiTimeSeriesAggregationsParams
- type GetApiTimeSeriesAggregationsResponse
- func (r GetApiTimeSeriesAggregationsResponse) ContentType() string
- func (r GetApiTimeSeriesAggregationsResponse) GetBody() []byte
- func (r GetApiTimeSeriesAggregationsResponse) GetJSON200() *TimeSeriesAggregationListResponse
- func (r GetApiTimeSeriesAggregationsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiTimeSeriesAggregationsResponse) Status() string
- func (r GetApiTimeSeriesAggregationsResponse) StatusCode() int
- type GetApiViewsOriginOrIdParams
- type GetApiViewsOriginOrIdResponse
- func (r GetApiViewsOriginOrIdResponse) ContentType() string
- func (r GetApiViewsOriginOrIdResponse) GetBody() []byte
- func (r GetApiViewsOriginOrIdResponse) GetJSON200() *ViewDefinition
- func (r GetApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiViewsOriginOrIdResponse) Status() string
- func (r GetApiViewsOriginOrIdResponse) StatusCode() int
- type GetApiViewsParams
- type GetApiViewsResponse
- func (r GetApiViewsResponse) ContentType() string
- func (r GetApiViewsResponse) GetBody() []byte
- func (r GetApiViewsResponse) GetJSON200() *[]ViewApiListItem
- func (r GetApiViewsResponse) GetJSONDefault() *ErrorResponse
- func (r GetApiViewsResponse) Status() string
- func (r GetApiViewsResponse) StatusCode() int
- type GetFailedChecksRequest
- type GetFailedChecksResponse
- type GetLogRecordsRequest
- type GetLogRecordsResponse
- type GetOauthAuthorizeParams
- type GetOauthAuthorizeResponse
- type GetSamplingRulesResponse
- type GetSignalToMetricsResponse
- type GetSpamFiltersResponse
- type GetSpansRequest
- type GetSpansResponse
- type GetTeamResponse
- type GetTopologyRequest
- type GetTraceIdsRequest
- type GetTraceIdsResponse
- type GetTraceRequest
- type GetTraceResponse
- type GetWellKnownOauthAuthorizationServerResponse
- func (r GetWellKnownOauthAuthorizationServerResponse) ContentType() string
- func (r GetWellKnownOauthAuthorizationServerResponse) GetBody() []byte
- func (r GetWellKnownOauthAuthorizationServerResponse) GetJSON200() *OAuthAuthorizationServerMetadata
- func (r GetWellKnownOauthAuthorizationServerResponse) GetJSONDefault() *ErrorResponse
- func (r GetWellKnownOauthAuthorizationServerResponse) Status() string
- func (r GetWellKnownOauthAuthorizationServerResponse) StatusCode() int
- type GetWellKnownOauthProtectedResourceResponse
- func (r GetWellKnownOauthProtectedResourceResponse) ContentType() string
- func (r GetWellKnownOauthProtectedResourceResponse) GetBody() []byte
- func (r GetWellKnownOauthProtectedResourceResponse) GetJSON200() *OAuthProtectedResourceMetadata
- func (r GetWellKnownOauthProtectedResourceResponse) GetJSONDefault() *ErrorResponse
- func (r GetWellKnownOauthProtectedResourceResponse) Status() string
- func (r GetWellKnownOauthProtectedResourceResponse) StatusCode() int
- type GitHubAgenticWorkflowTriggerSpec
- type GitHubCheckActivityAgenticWorkflowTriggerSpec
- type GitHubCheckRunAgenticWorkflowTrigger
- type GitHubCheckRunAgenticWorkflowTriggerKind
- type GitHubCheckRunAgenticWorkflowTriggerSpec
- type GitHubCheckRunConclusion
- type GitHubCheckRunStatus
- type GitHubCheckSuiteAgenticWorkflowTrigger
- type GitHubCheckSuiteAgenticWorkflowTriggerKind
- type GitHubCheckSuiteAgenticWorkflowTriggerSpec
- type GitHubCheckSuiteConclusion
- type GitHubCheckSuiteStatus
- type GitHubCommentAgenticWorkflowTriggerSpec
- type GitHubDeploymentAgenticWorkflowTrigger
- type GitHubDeploymentAgenticWorkflowTriggerKind
- type GitHubDeploymentStatusAgenticWorkflowTrigger
- type GitHubDeploymentStatusAgenticWorkflowTriggerKind
- type GitHubIssueCommentAgenticWorkflowTrigger
- type GitHubIssueCommentAgenticWorkflowTriggerKind
- type GitHubPullRequestAgenticWorkflowTrigger
- type GitHubPullRequestAgenticWorkflowTriggerKind
- type GitHubPullRequestAgenticWorkflowTriggerSpec
- type GitHubPullRequestReviewAgenticWorkflowTrigger
- type GitHubPullRequestReviewAgenticWorkflowTriggerKind
- type GitHubPullRequestReviewCommentAgenticWorkflowTrigger
- type GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind
- type GitHubPushAgenticWorkflowTrigger
- type GitHubPushAgenticWorkflowTriggerKind
- type GitHubPushAgenticWorkflowTriggerSpec
- type GitHubReleaseAgenticWorkflowTrigger
- type GitHubReleaseAgenticWorkflowTriggerKind
- type GitHubTriggerVariableName
- type GitHubWorkflowActivityAgenticWorkflowTriggerSpec
- type GitHubWorkflowDispatchAgenticWorkflowTrigger
- type GitHubWorkflowDispatchAgenticWorkflowTriggerKind
- type GitHubWorkflowDispatchAgenticWorkflowTriggerSpec
- type GitHubWorkflowJobAgenticWorkflowTrigger
- type GitHubWorkflowJobAgenticWorkflowTriggerKind
- type GitHubWorkflowJobAgenticWorkflowTriggerSpec
- type GitHubWorkflowJobConclusion
- type GitHubWorkflowRunAgenticWorkflowTrigger
- type GitHubWorkflowRunAgenticWorkflowTriggerKind
- type GitHubWorkflowRunAgenticWorkflowTriggerSpec
- type GitHubWorkflowRunConclusion
- type GitLabAgenticWorkflowTriggerSpec
- type GitLabMergeRequestAgenticWorkflowTrigger
- type GitLabMergeRequestAgenticWorkflowTriggerKind
- type GitLabNoteAgenticWorkflowTrigger
- type GitLabNoteAgenticWorkflowTriggerKind
- type GitLabNoteAgenticWorkflowTriggerSpec
- type GitLabTriggerVariableName
- type GoogleChatWebhookConfig
- type Gradient
- type HttpBasicAuthentication
- type HttpCheckAssertion
- func (t HttpCheckAssertion) AsErrorAssertion() (ErrorAssertion, error)
- func (t HttpCheckAssertion) AsHttpResponseHeaderAssertion() (HttpResponseHeaderAssertion, error)
- func (t HttpCheckAssertion) AsHttpResponseJsonBodyAssertion() (HttpResponseJsonBodyAssertion, error)
- func (t HttpCheckAssertion) AsHttpResponseStatusCodeAssertion() (HttpResponseStatusCodeAssertion, error)
- func (t HttpCheckAssertion) AsHttpResponseTextBodyAssertion() (HttpResponseTextBodyAssertion, error)
- func (t HttpCheckAssertion) AsSslCertificateAssertion() (SslCertificateAssertion, error)
- func (t HttpCheckAssertion) AsTimingAssertion() (TimingAssertion, error)
- func (t *HttpCheckAssertion) FromErrorAssertion(v ErrorAssertion) error
- func (t *HttpCheckAssertion) FromHttpResponseHeaderAssertion(v HttpResponseHeaderAssertion) error
- func (t *HttpCheckAssertion) FromHttpResponseJsonBodyAssertion(v HttpResponseJsonBodyAssertion) error
- func (t *HttpCheckAssertion) FromHttpResponseStatusCodeAssertion(v HttpResponseStatusCodeAssertion) error
- func (t *HttpCheckAssertion) FromHttpResponseTextBodyAssertion(v HttpResponseTextBodyAssertion) error
- func (t *HttpCheckAssertion) FromSslCertificateAssertion(v SslCertificateAssertion) error
- func (t *HttpCheckAssertion) FromTimingAssertion(v TimingAssertion) error
- func (t HttpCheckAssertion) MarshalJSON() ([]byte, error)
- func (t *HttpCheckAssertion) MergeErrorAssertion(v ErrorAssertion) error
- func (t *HttpCheckAssertion) MergeHttpResponseHeaderAssertion(v HttpResponseHeaderAssertion) error
- func (t *HttpCheckAssertion) MergeHttpResponseJsonBodyAssertion(v HttpResponseJsonBodyAssertion) error
- func (t *HttpCheckAssertion) MergeHttpResponseStatusCodeAssertion(v HttpResponseStatusCodeAssertion) error
- func (t *HttpCheckAssertion) MergeHttpResponseTextBodyAssertion(v HttpResponseTextBodyAssertion) error
- func (t *HttpCheckAssertion) MergeSslCertificateAssertion(v SslCertificateAssertion) error
- func (t *HttpCheckAssertion) MergeTimingAssertion(v TimingAssertion) error
- func (t *HttpCheckAssertion) UnmarshalJSON(b []byte) error
- type HttpCheckAssertions
- type HttpHeaders
- type HttpQueryParameters
- type HttpRedirects
- type HttpRequestBody
- type HttpRequestBodyKind
- type HttpRequestDoer
- type HttpRequestMethod
- type HttpRequestSpec
- type HttpResponseHeaderAssertion
- type HttpResponseHeaderAssertionKind
- type HttpResponseHeaderAssertionSpec
- type HttpResponseJsonBodyAssertion
- type HttpResponseJsonBodyAssertionKind
- type HttpResponseJsonBodyAssertionSpec
- type HttpResponseStatusCodeAssertion
- type HttpResponseStatusCodeAssertionKind
- type HttpResponseStatusCodeAssertionSpec
- type HttpResponseTextBodyAssertion
- type HttpResponseTextBodyAssertionKind
- type HttpResponseTextBodyAssertionSpec
- type IlertConfig
- type IncidentIOConfig
- type InstrumentationScope
- type InviteMemberRequest
- type IpAddressStorageStrategy
- type IpAddressesSettings
- type Issue
- type IssueCheckRule
- type IssueInstanceStatus
- type Iter
- type KeyValue
- type KeyValueList
- type LinearAuthorFilters
- type LinearCommentAgenticWorkflowTrigger
- type LinearCommentAgenticWorkflowTriggerKind
- type LinearCommentAgenticWorkflowTriggerSpec
- type LinearCommentReactionAgenticWorkflowTrigger
- type LinearCommentReactionAgenticWorkflowTriggerKind
- type LinearCommentReactionAgenticWorkflowTriggerSpec
- type LinearCommentReactionTriggerVariableName
- type LinearCommentTriggerVariableName
- type LinearDataEventAgenticWorkflowTriggerSpec
- type LinearEntityAgenticWorkflowTriggerSpec
- type LinearInitiativeAgenticWorkflowTrigger
- type LinearInitiativeAgenticWorkflowTriggerKind
- type LinearInitiativeAgenticWorkflowTriggerSpec
- type LinearInitiativeTriggerVariableName
- type LinearInitiativeUpdateAgenticWorkflowTrigger
- type LinearInitiativeUpdateAgenticWorkflowTriggerKind
- type LinearInitiativeUpdateAgenticWorkflowTriggerSpec
- type LinearInitiativeUpdateTriggerVariableName
- type LinearIssueAgenticWorkflowTrigger
- type LinearIssueAgenticWorkflowTriggerKind
- type LinearIssueAgenticWorkflowTriggerSpec
- type LinearIssueAttachmentAgenticWorkflowTrigger
- type LinearIssueAttachmentAgenticWorkflowTriggerKind
- type LinearIssueAttachmentAgenticWorkflowTriggerSpec
- type LinearIssueAttachmentTriggerVariableName
- type LinearIssueCommentAgenticWorkflowTrigger
- type LinearIssueCommentAgenticWorkflowTriggerKind
- type LinearIssueCommentAgenticWorkflowTriggerSpec
- type LinearIssueCommentTriggerVariableName
- type LinearIssueTriggerVariableName
- type LinearProjectAgenticWorkflowTrigger
- type LinearProjectAgenticWorkflowTriggerKind
- type LinearProjectAgenticWorkflowTriggerSpec
- type LinearProjectTriggerVariableName
- type LinearProjectUpdateAgenticWorkflowTrigger
- type LinearProjectUpdateAgenticWorkflowTriggerKind
- type LinearProjectUpdateAgenticWorkflowTriggerSpec
- type LinearProjectUpdateTriggerVariableName
- type LinearSenderFilters
- type LinearTeamScope
- type LinearWebhookAction
- type ListOption
- type ListOptions
- type LogRecord
- type LogRecordExportFormat
- type LogRecordsDownloadRequest
- type ManualAgenticWorkflowTrigger
- type ManualAgenticWorkflowTriggerKind
- type Matcher
- type Matcher_Value
- func (t Matcher_Value) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
- func (t Matcher_Value) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
- func (t *Matcher_Value) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *Matcher_Value) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t Matcher_Value) MarshalJSON() ([]byte, error)
- func (t *Matcher_Value) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *Matcher_Value) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t *Matcher_Value) UnmarshalJSON(b []byte) error
- type Matcher_Values_Item
- func (t Matcher_Values_Item) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
- func (t Matcher_Values_Item) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
- func (t *Matcher_Values_Item) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *Matcher_Values_Item) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t Matcher_Values_Item) MarshalJSON() ([]byte, error)
- func (t *Matcher_Values_Item) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
- func (t *Matcher_Values_Item) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
- func (t *Matcher_Values_Item) UnmarshalJSON(b []byte) error
- type MattermostWebhookConfig
- type MemberDefinition
- type MemberDefinitionKind
- type MemberDisplay
- type MemberInvitationDefinition
- type MemberInvitationDefinitionKind
- type MemberInvitationLabels
- type MemberInvitationMetadata
- type MemberInvitationSpec
- type MemberLabels
- type MemberMetadata
- type MemberSpec
- type MetricSample
- type MetricSamples
- type NameValuePair
- type NetworkLevel
- type NextCursors
- type NotificationChannelAnnotations
- type NotificationChannelDefinition
- type NotificationChannelDefinitionKind
- type NotificationChannelDefinitions
- type NotificationChannelLabels
- type NotificationChannelMetadata
- type NotificationChannelRouting
- type NotificationChannelRoutingAsset
- type NotificationChannelRoutingAssetKind
- type NotificationChannelSpec
- type NotificationChannelSpec_Config
- func (t NotificationChannelSpec_Config) AsAllQuietConfig() (AllQuietConfig, error)
- func (t NotificationChannelSpec_Config) AsDiscordWebhookConfig() (DiscordWebhookConfig, error)
- func (t NotificationChannelSpec_Config) AsEmailConfig() (EmailConfig, error)
- func (t NotificationChannelSpec_Config) AsEmailV2Config() (EmailV2Config, error)
- func (t NotificationChannelSpec_Config) AsGoogleChatWebhookConfig() (GoogleChatWebhookConfig, error)
- func (t NotificationChannelSpec_Config) AsIlertConfig() (IlertConfig, error)
- func (t NotificationChannelSpec_Config) AsIncidentIOConfig() (IncidentIOConfig, error)
- func (t NotificationChannelSpec_Config) AsMattermostWebhookConfig() (MattermostWebhookConfig, error)
- func (t NotificationChannelSpec_Config) AsOpsgenieConfig() (OpsgenieConfig, error)
- func (t NotificationChannelSpec_Config) AsPagerDutyConfig() (PagerDutyConfig, error)
- func (t NotificationChannelSpec_Config) AsSlackBotConfig() (SlackBotConfig, error)
- func (t NotificationChannelSpec_Config) AsSlackConfig() (SlackConfig, error)
- func (t NotificationChannelSpec_Config) AsTeamsWebhookConfig() (TeamsWebhookConfig, error)
- func (t NotificationChannelSpec_Config) AsWebhookConfig() (WebhookConfig, error)
- func (t *NotificationChannelSpec_Config) FromAllQuietConfig(v AllQuietConfig) error
- func (t *NotificationChannelSpec_Config) FromDiscordWebhookConfig(v DiscordWebhookConfig) error
- func (t *NotificationChannelSpec_Config) FromEmailConfig(v EmailConfig) error
- func (t *NotificationChannelSpec_Config) FromEmailV2Config(v EmailV2Config) error
- func (t *NotificationChannelSpec_Config) FromGoogleChatWebhookConfig(v GoogleChatWebhookConfig) error
- func (t *NotificationChannelSpec_Config) FromIlertConfig(v IlertConfig) error
- func (t *NotificationChannelSpec_Config) FromIncidentIOConfig(v IncidentIOConfig) error
- func (t *NotificationChannelSpec_Config) FromMattermostWebhookConfig(v MattermostWebhookConfig) error
- func (t *NotificationChannelSpec_Config) FromOpsgenieConfig(v OpsgenieConfig) error
- func (t *NotificationChannelSpec_Config) FromPagerDutyConfig(v PagerDutyConfig) error
- func (t *NotificationChannelSpec_Config) FromSlackBotConfig(v SlackBotConfig) error
- func (t *NotificationChannelSpec_Config) FromSlackConfig(v SlackConfig) error
- func (t *NotificationChannelSpec_Config) FromTeamsWebhookConfig(v TeamsWebhookConfig) error
- func (t *NotificationChannelSpec_Config) FromWebhookConfig(v WebhookConfig) error
- func (t NotificationChannelSpec_Config) MarshalJSON() ([]byte, error)
- func (t *NotificationChannelSpec_Config) MergeAllQuietConfig(v AllQuietConfig) error
- func (t *NotificationChannelSpec_Config) MergeDiscordWebhookConfig(v DiscordWebhookConfig) error
- func (t *NotificationChannelSpec_Config) MergeEmailConfig(v EmailConfig) error
- func (t *NotificationChannelSpec_Config) MergeEmailV2Config(v EmailV2Config) error
- func (t *NotificationChannelSpec_Config) MergeGoogleChatWebhookConfig(v GoogleChatWebhookConfig) error
- func (t *NotificationChannelSpec_Config) MergeIlertConfig(v IlertConfig) error
- func (t *NotificationChannelSpec_Config) MergeIncidentIOConfig(v IncidentIOConfig) error
- func (t *NotificationChannelSpec_Config) MergeMattermostWebhookConfig(v MattermostWebhookConfig) error
- func (t *NotificationChannelSpec_Config) MergeOpsgenieConfig(v OpsgenieConfig) error
- func (t *NotificationChannelSpec_Config) MergePagerDutyConfig(v PagerDutyConfig) error
- func (t *NotificationChannelSpec_Config) MergeSlackBotConfig(v SlackBotConfig) error
- func (t *NotificationChannelSpec_Config) MergeSlackConfig(v SlackConfig) error
- func (t *NotificationChannelSpec_Config) MergeTeamsWebhookConfig(v TeamsWebhookConfig) error
- func (t *NotificationChannelSpec_Config) MergeWebhookConfig(v WebhookConfig) error
- func (t *NotificationChannelSpec_Config) UnmarshalJSON(b []byte) error
- type NotificationChannelType
- type NumericAssertionOperator
- type OAuthAuthorizationServerMetadata
- type OAuthClient
- type OAuthClientRegistrationRequest
- type OAuthClientRegistrationResponse
- type OAuthCodeChallengeMethod
- type OAuthGrantType
- type OAuthProtectedResourceMetadata
- type OAuthResponseType
- type OAuthRevocationRequest
- type OAuthTokenEndpointAuthMethod
- type OAuthTokenError
- type OAuthTokenErrorResponse
- type OAuthTokenRequest
- type OAuthTokenResponse
- type OAuthTokenType
- type OTTLCondition
- type OpsgenieConfig
- type OpsgenieConfigInstance
- type OrderingCriteria
- type OrderingCriterion
- type OrderingDirection
- type OrderingKey
- type OtlpEncoding
- type PKCEPair
- type PagerDutyConfig
- type PersesDashboard
- type PersesDashboardMetadata
- type PinnedRetentionClass
- type PostApiAgent0CustomSkillsJSONRequestBody
- type PostApiAgent0CustomSkillsResponse
- func (r PostApiAgent0CustomSkillsResponse) ContentType() string
- func (r PostApiAgent0CustomSkillsResponse) GetBody() []byte
- func (r PostApiAgent0CustomSkillsResponse) GetJSON200() *SkillResponse
- func (r PostApiAgent0CustomSkillsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiAgent0CustomSkillsResponse) Status() string
- func (r PostApiAgent0CustomSkillsResponse) StatusCode() int
- type PostApiAgenticWorkflowsJSONRequestBody
- type PostApiAgenticWorkflowsParams
- type PostApiAgenticWorkflowsResponse
- func (r PostApiAgenticWorkflowsResponse) ContentType() string
- func (r PostApiAgenticWorkflowsResponse) GetBody() []byte
- func (r PostApiAgenticWorkflowsResponse) GetJSON200() *AgenticWorkflowResponse
- func (r PostApiAgenticWorkflowsResponse) GetJSON403() *ErrorResponse
- func (r PostApiAgenticWorkflowsResponse) GetJSON503() *ErrorResponse
- func (r PostApiAgenticWorkflowsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiAgenticWorkflowsResponse) Status() string
- func (r PostApiAgenticWorkflowsResponse) StatusCode() int
- type PostApiAlertingCheckRulesBulkJSONRequestBody
- type PostApiAlertingCheckRulesBulkParams
- type PostApiAlertingCheckRulesBulkResponse
- func (r PostApiAlertingCheckRulesBulkResponse) ContentType() string
- func (r PostApiAlertingCheckRulesBulkResponse) GetBody() []byte
- func (r PostApiAlertingCheckRulesBulkResponse) GetJSON200() *PrometheusAlertRuleBulkCreateResponse
- func (r PostApiAlertingCheckRulesBulkResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiAlertingCheckRulesBulkResponse) Status() string
- func (r PostApiAlertingCheckRulesBulkResponse) StatusCode() int
- type PostApiAlertingCheckRulesJSONRequestBody
- type PostApiAlertingCheckRulesParams
- type PostApiAlertingCheckRulesResponse
- func (r PostApiAlertingCheckRulesResponse) ContentType() string
- func (r PostApiAlertingCheckRulesResponse) GetBody() []byte
- func (r PostApiAlertingCheckRulesResponse) GetJSON200() *PrometheusAlertRule
- func (r PostApiAlertingCheckRulesResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiAlertingCheckRulesResponse) Status() string
- func (r PostApiAlertingCheckRulesResponse) StatusCode() int
- type PostApiAuthTokensJSONRequestBody
- type PostApiAuthTokensResponse
- func (r PostApiAuthTokensResponse) ContentType() string
- func (r PostApiAuthTokensResponse) GetBody() []byte
- func (r PostApiAuthTokensResponse) GetJSON200() *AuthTokenResponse
- func (r PostApiAuthTokensResponse) GetJSON403() *ErrorResponse
- func (r PostApiAuthTokensResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiAuthTokensResponse) Status() string
- func (r PostApiAuthTokensResponse) StatusCode() int
- type PostApiDashboardsJSONRequestBody
- type PostApiDashboardsParams
- type PostApiDashboardsResponse
- func (r PostApiDashboardsResponse) ContentType() string
- func (r PostApiDashboardsResponse) GetBody() []byte
- func (r PostApiDashboardsResponse) GetJSON200() *DashboardDefinition
- func (r PostApiDashboardsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiDashboardsResponse) Status() string
- func (r PostApiDashboardsResponse) StatusCode() int
- type PostApiDatasetsJSONRequestBody
- type PostApiDatasetsResponse
- func (r PostApiDatasetsResponse) ContentType() string
- func (r PostApiDatasetsResponse) GetBody() []byte
- func (r PostApiDatasetsResponse) GetJSON200() *DatasetResponse
- func (r PostApiDatasetsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiDatasetsResponse) Status() string
- func (r PostApiDatasetsResponse) StatusCode() int
- type PostApiImportCheckRuleJSONRequestBody
- type PostApiImportCheckRuleParams
- type PostApiImportCheckRuleResponse
- func (r PostApiImportCheckRuleResponse) ContentType() string
- func (r PostApiImportCheckRuleResponse) GetBody() []byte
- func (r PostApiImportCheckRuleResponse) GetJSON200() *PrometheusAlertRule
- func (r PostApiImportCheckRuleResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiImportCheckRuleResponse) Status() string
- func (r PostApiImportCheckRuleResponse) StatusCode() int
- type PostApiImportCheckRulesJSONRequestBody
- type PostApiImportCheckRulesParams
- type PostApiImportCheckRulesResponse
- func (r PostApiImportCheckRulesResponse) ContentType() string
- func (r PostApiImportCheckRulesResponse) GetBody() []byte
- func (r PostApiImportCheckRulesResponse) GetJSON200() *PrometheusAlertRuleBulkCreateResponse
- func (r PostApiImportCheckRulesResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiImportCheckRulesResponse) Status() string
- func (r PostApiImportCheckRulesResponse) StatusCode() int
- type PostApiImportDashboardJSONRequestBody
- type PostApiImportDashboardParams
- type PostApiImportDashboardResponse
- func (r PostApiImportDashboardResponse) ContentType() string
- func (r PostApiImportDashboardResponse) GetBody() []byte
- func (r PostApiImportDashboardResponse) GetJSON200() *DashboardDefinition
- func (r PostApiImportDashboardResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiImportDashboardResponse) Status() string
- func (r PostApiImportDashboardResponse) StatusCode() int
- type PostApiImportSyntheticCheckJSONRequestBody
- type PostApiImportSyntheticCheckParams
- type PostApiImportSyntheticCheckResponse
- func (r PostApiImportSyntheticCheckResponse) ContentType() string
- func (r PostApiImportSyntheticCheckResponse) GetBody() []byte
- func (r PostApiImportSyntheticCheckResponse) GetJSON200() *SyntheticCheckDefinition
- func (r PostApiImportSyntheticCheckResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiImportSyntheticCheckResponse) Status() string
- func (r PostApiImportSyntheticCheckResponse) StatusCode() int
- type PostApiImportViewJSONRequestBody
- type PostApiImportViewParams
- type PostApiImportViewResponse
- func (r PostApiImportViewResponse) ContentType() string
- func (r PostApiImportViewResponse) GetBody() []byte
- func (r PostApiImportViewResponse) GetJSON200() *ViewDefinition
- func (r PostApiImportViewResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiImportViewResponse) Status() string
- func (r PostApiImportViewResponse) StatusCode() int
- type PostApiLogsDownloadJSONRequestBody
- type PostApiLogsDownloadResponse
- func (r PostApiLogsDownloadResponse) ContentType() string
- func (r PostApiLogsDownloadResponse) GetBody() []byte
- func (r PostApiLogsDownloadResponse) GetJSON400() *ErrorResponse
- func (r PostApiLogsDownloadResponse) GetJSON403() *ErrorResponse
- func (r PostApiLogsDownloadResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiLogsDownloadResponse) Status() string
- func (r PostApiLogsDownloadResponse) StatusCode() int
- type PostApiLogsDownloadResponse200Headers
- type PostApiLogsJSONRequestBody
- type PostApiLogsResponse
- func (r PostApiLogsResponse) ContentType() string
- func (r PostApiLogsResponse) GetBody() []byte
- func (r PostApiLogsResponse) GetJSON200() *GetLogRecordsResponse
- func (r PostApiLogsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiLogsResponse) Status() string
- func (r PostApiLogsResponse) StatusCode() int
- type PostApiMembersJSONRequestBody
- type PostApiMembersResponse
- type PostApiNotificationChannelsJSONRequestBody
- type PostApiNotificationChannelsResponse
- func (r PostApiNotificationChannelsResponse) ContentType() string
- func (r PostApiNotificationChannelsResponse) GetBody() []byte
- func (r PostApiNotificationChannelsResponse) GetJSON200() *NotificationChannelDefinition
- func (r PostApiNotificationChannelsResponse) GetJSON403() *ErrorResponse
- func (r PostApiNotificationChannelsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiNotificationChannelsResponse) Status() string
- func (r PostApiNotificationChannelsResponse) StatusCode() int
- type PostApiPrometheusApiV1FormatQueryFormdataRequestBody
- type PostApiPrometheusApiV1FormatQueryJSONRequestBody
- type PostApiPrometheusApiV1FormatQueryResponse
- func (r PostApiPrometheusApiV1FormatQueryResponse) ContentType() string
- func (r PostApiPrometheusApiV1FormatQueryResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1FormatQueryResponse) GetJSON200() *PrometheusFormatQueryResponse
- func (r PostApiPrometheusApiV1FormatQueryResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1FormatQueryResponse) Status() string
- func (r PostApiPrometheusApiV1FormatQueryResponse) StatusCode() int
- type PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody
- type PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody
- type PostApiPrometheusApiV1LabelLabelNameValuesResponse
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType() string
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) Status() string
- func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode() int
- type PostApiPrometheusApiV1LabelsFormdataRequestBody
- type PostApiPrometheusApiV1LabelsJSONRequestBody
- type PostApiPrometheusApiV1LabelsResponse
- func (r PostApiPrometheusApiV1LabelsResponse) ContentType() string
- func (r PostApiPrometheusApiV1LabelsResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1LabelsResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
- func (r PostApiPrometheusApiV1LabelsResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1LabelsResponse) Status() string
- func (r PostApiPrometheusApiV1LabelsResponse) StatusCode() int
- type PostApiPrometheusApiV1MetadataFormdataRequestBody
- type PostApiPrometheusApiV1MetadataJSONRequestBody
- type PostApiPrometheusApiV1MetadataResponse
- func (r PostApiPrometheusApiV1MetadataResponse) ContentType() string
- func (r PostApiPrometheusApiV1MetadataResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1MetadataResponse) GetJSON200() *PrometheusMetadataResponse
- func (r PostApiPrometheusApiV1MetadataResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1MetadataResponse) Status() string
- func (r PostApiPrometheusApiV1MetadataResponse) StatusCode() int
- type PostApiPrometheusApiV1QueryFormdataRequestBody
- type PostApiPrometheusApiV1QueryJSONRequestBody
- type PostApiPrometheusApiV1QueryRangeFormdataRequestBody
- type PostApiPrometheusApiV1QueryRangeJSONRequestBody
- type PostApiPrometheusApiV1QueryRangeResponse
- func (r PostApiPrometheusApiV1QueryRangeResponse) ContentType() string
- func (r PostApiPrometheusApiV1QueryRangeResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1QueryRangeResponse) GetJSON200() *PrometheusQueryResponse
- func (r PostApiPrometheusApiV1QueryRangeResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1QueryRangeResponse) Status() string
- func (r PostApiPrometheusApiV1QueryRangeResponse) StatusCode() int
- type PostApiPrometheusApiV1QueryResponse
- func (r PostApiPrometheusApiV1QueryResponse) ContentType() string
- func (r PostApiPrometheusApiV1QueryResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1QueryResponse) GetJSON200() *PrometheusQueryResponse
- func (r PostApiPrometheusApiV1QueryResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1QueryResponse) Status() string
- func (r PostApiPrometheusApiV1QueryResponse) StatusCode() int
- type PostApiPrometheusApiV1SeriesFormdataRequestBody
- type PostApiPrometheusApiV1SeriesJSONRequestBody
- type PostApiPrometheusApiV1SeriesResponse
- func (r PostApiPrometheusApiV1SeriesResponse) ContentType() string
- func (r PostApiPrometheusApiV1SeriesResponse) GetBody() []byte
- func (r PostApiPrometheusApiV1SeriesResponse) GetJSON200() *PrometheusSeriesResponse
- func (r PostApiPrometheusApiV1SeriesResponse) GetJSONDefault() *PrometheusErrorResponse
- func (r PostApiPrometheusApiV1SeriesResponse) Status() string
- func (r PostApiPrometheusApiV1SeriesResponse) StatusCode() int
- type PostApiRecordingRulesJSONRequestBody
- type PostApiRecordingRulesParams
- type PostApiRecordingRulesResponse
- func (r PostApiRecordingRulesResponse) ContentType() string
- func (r PostApiRecordingRulesResponse) GetBody() []byte
- func (r PostApiRecordingRulesResponse) GetJSON200() *generatedPrometheusRule
- func (r PostApiRecordingRulesResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiRecordingRulesResponse) Status() string
- func (r PostApiRecordingRulesResponse) StatusCode() int
- type PostApiSamplingRulesJSONRequestBody
- type PostApiSamplingRulesParams
- type PostApiSamplingRulesResponse
- func (r PostApiSamplingRulesResponse) ContentType() string
- func (r PostApiSamplingRulesResponse) GetBody() []byte
- func (r PostApiSamplingRulesResponse) GetJSON200() *SamplingRuleResponse
- func (r PostApiSamplingRulesResponse) GetJSON403() *ErrorResponse
- func (r PostApiSamplingRulesResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSamplingRulesResponse) Status() string
- func (r PostApiSamplingRulesResponse) StatusCode() int
- type PostApiSignalToMetricsJSONRequestBody
- type PostApiSignalToMetricsParams
- type PostApiSignalToMetricsResponse
- func (r PostApiSignalToMetricsResponse) ContentType() string
- func (r PostApiSignalToMetricsResponse) GetBody() []byte
- func (r PostApiSignalToMetricsResponse) GetJSON200() *SignalToMetricsResponse
- func (r PostApiSignalToMetricsResponse) GetJSON403() *ErrorResponse
- func (r PostApiSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSignalToMetricsResponse) Status() string
- func (r PostApiSignalToMetricsResponse) StatusCode() int
- type PostApiSignalToMetricsTestJSONRequestBody
- type PostApiSignalToMetricsTestParams
- type PostApiSignalToMetricsTestResponse
- func (r PostApiSignalToMetricsTestResponse) ContentType() string
- func (r PostApiSignalToMetricsTestResponse) GetBody() []byte
- func (r PostApiSignalToMetricsTestResponse) GetJSON200() *SignalToMetricsTestResponse
- func (r PostApiSignalToMetricsTestResponse) GetJSON400() *ErrorResponse
- func (r PostApiSignalToMetricsTestResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSignalToMetricsTestResponse) Status() string
- func (r PostApiSignalToMetricsTestResponse) StatusCode() int
- type PostApiSlosJSONRequestBody
- type PostApiSlosOriginOrIdResetParams
- type PostApiSlosOriginOrIdResetResponse
- func (r PostApiSlosOriginOrIdResetResponse) ContentType() string
- func (r PostApiSlosOriginOrIdResetResponse) GetBody() []byte
- func (r PostApiSlosOriginOrIdResetResponse) GetJSON200() *SloDefinition
- func (r PostApiSlosOriginOrIdResetResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSlosOriginOrIdResetResponse) Status() string
- func (r PostApiSlosOriginOrIdResetResponse) StatusCode() int
- type PostApiSlosParams
- type PostApiSlosResponse
- func (r PostApiSlosResponse) ContentType() string
- func (r PostApiSlosResponse) GetBody() []byte
- func (r PostApiSlosResponse) GetJSON200() *SloDefinition
- func (r PostApiSlosResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSlosResponse) Status() string
- func (r PostApiSlosResponse) StatusCode() int
- type PostApiSpamFiltersJSONRequestBody
- type PostApiSpamFiltersParams
- type PostApiSpamFiltersResponse
- func (r PostApiSpamFiltersResponse) ContentType() string
- func (r PostApiSpamFiltersResponse) GetBody() []byte
- func (r PostApiSpamFiltersResponse) GetJSON200() *SpamFilterResponse
- func (r PostApiSpamFiltersResponse) GetJSON400() *ErrorResponse
- func (r PostApiSpamFiltersResponse) GetJSON403() *ErrorResponse
- func (r PostApiSpamFiltersResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSpamFiltersResponse) Status() string
- func (r PostApiSpamFiltersResponse) StatusCode() int
- type PostApiSpansDownloadJSONRequestBody
- type PostApiSpansDownloadResponse
- func (r PostApiSpansDownloadResponse) ContentType() string
- func (r PostApiSpansDownloadResponse) GetBody() []byte
- func (r PostApiSpansDownloadResponse) GetJSON400() *ErrorResponse
- func (r PostApiSpansDownloadResponse) GetJSON403() *ErrorResponse
- func (r PostApiSpansDownloadResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSpansDownloadResponse) Status() string
- func (r PostApiSpansDownloadResponse) StatusCode() int
- type PostApiSpansDownloadResponse200Headers
- type PostApiSpansJSONRequestBody
- type PostApiSpansResponse
- func (r PostApiSpansResponse) ContentType() string
- func (r PostApiSpansResponse) GetBody() []byte
- func (r PostApiSpansResponse) GetJSON200() *GetSpansResponse
- func (r PostApiSpansResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSpansResponse) Status() string
- func (r PostApiSpansResponse) StatusCode() int
- type PostApiSqlJSONRequestBody
- type PostApiSqlResponse
- func (r PostApiSqlResponse) ContentType() string
- func (r PostApiSqlResponse) GetBody() []byte
- func (r PostApiSqlResponse) GetJSON200() *ExecuteSqlResponse
- func (r PostApiSqlResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSqlResponse) Status() string
- func (r PostApiSqlResponse) StatusCode() int
- type PostApiSyntheticChecksJSONRequestBody
- type PostApiSyntheticChecksParams
- type PostApiSyntheticChecksResponse
- func (r PostApiSyntheticChecksResponse) ContentType() string
- func (r PostApiSyntheticChecksResponse) GetBody() []byte
- func (r PostApiSyntheticChecksResponse) GetJSON200() *SyntheticCheckDefinition
- func (r PostApiSyntheticChecksResponse) GetJSON400() *ErrorResponse
- func (r PostApiSyntheticChecksResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSyntheticChecksResponse) Status() string
- func (r PostApiSyntheticChecksResponse) StatusCode() int
- type PostApiSyntheticChecksTestJSONRequestBody
- type PostApiSyntheticChecksTestResponse
- func (r PostApiSyntheticChecksTestResponse) ContentType() string
- func (r PostApiSyntheticChecksTestResponse) GetBody() []byte
- func (r PostApiSyntheticChecksTestResponse) GetJSON200() *TestSyntheticCheckResponse
- func (r PostApiSyntheticChecksTestResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiSyntheticChecksTestResponse) Status() string
- func (r PostApiSyntheticChecksTestResponse) StatusCode() int
- type PostApiTeamsJSONRequestBody
- type PostApiTeamsOriginOrIdMembersJSONRequestBody
- type PostApiTeamsOriginOrIdMembersResponse
- func (r PostApiTeamsOriginOrIdMembersResponse) ContentType() string
- func (r PostApiTeamsOriginOrIdMembersResponse) GetBody() []byte
- func (r PostApiTeamsOriginOrIdMembersResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTeamsOriginOrIdMembersResponse) Status() string
- func (r PostApiTeamsOriginOrIdMembersResponse) StatusCode() int
- type PostApiTeamsResponse
- func (r PostApiTeamsResponse) ContentType() string
- func (r PostApiTeamsResponse) GetBody() []byte
- func (r PostApiTeamsResponse) GetJSON200() *TeamDefinitionV1Alpha1
- func (r PostApiTeamsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTeamsResponse) Status() string
- func (r PostApiTeamsResponse) StatusCode() int
- type PostApiTimeSeriesAggregationsJSONRequestBody
- type PostApiTimeSeriesAggregationsParams
- type PostApiTimeSeriesAggregationsResponse
- func (r PostApiTimeSeriesAggregationsResponse) ContentType() string
- func (r PostApiTimeSeriesAggregationsResponse) GetBody() []byte
- func (r PostApiTimeSeriesAggregationsResponse) GetJSON200() *TimeSeriesAggregationDefinition
- func (r PostApiTimeSeriesAggregationsResponse) GetJSON403() *ErrorResponse
- func (r PostApiTimeSeriesAggregationsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTimeSeriesAggregationsResponse) Status() string
- func (r PostApiTimeSeriesAggregationsResponse) StatusCode() int
- type PostApiTopologyJSONRequestBody
- type PostApiTopologyResponse
- func (r PostApiTopologyResponse) ContentType() string
- func (r PostApiTopologyResponse) GetBody() []byte
- func (r PostApiTopologyResponse) GetJSON200() *TopologyResponse
- func (r PostApiTopologyResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTopologyResponse) Status() string
- func (r PostApiTopologyResponse) StatusCode() int
- type PostApiTraceDetailsJSONRequestBody
- type PostApiTraceDetailsResponse
- func (r PostApiTraceDetailsResponse) ContentType() string
- func (r PostApiTraceDetailsResponse) GetBody() []byte
- func (r PostApiTraceDetailsResponse) GetJSON200() *GetTraceResponse
- func (r PostApiTraceDetailsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTraceDetailsResponse) Status() string
- func (r PostApiTraceDetailsResponse) StatusCode() int
- type PostApiTraceIdsJSONRequestBody
- type PostApiTraceIdsResponse
- func (r PostApiTraceIdsResponse) ContentType() string
- func (r PostApiTraceIdsResponse) GetBody() []byte
- func (r PostApiTraceIdsResponse) GetJSON200() *GetTraceIdsResponse
- func (r PostApiTraceIdsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiTraceIdsResponse) Status() string
- func (r PostApiTraceIdsResponse) StatusCode() int
- type PostApiViewsJSONRequestBody
- type PostApiViewsParams
- type PostApiViewsResponse
- func (r PostApiViewsResponse) ContentType() string
- func (r PostApiViewsResponse) GetBody() []byte
- func (r PostApiViewsResponse) GetJSON200() *ViewDefinition
- func (r PostApiViewsResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiViewsResponse) Status() string
- func (r PostApiViewsResponse) StatusCode() int
- type PostApiWebEventsDownloadJSONRequestBody
- type PostApiWebEventsDownloadResponse
- func (r PostApiWebEventsDownloadResponse) ContentType() string
- func (r PostApiWebEventsDownloadResponse) GetBody() []byte
- func (r PostApiWebEventsDownloadResponse) GetJSON400() *ErrorResponse
- func (r PostApiWebEventsDownloadResponse) GetJSON403() *ErrorResponse
- func (r PostApiWebEventsDownloadResponse) GetJSONDefault() *ErrorResponse
- func (r PostApiWebEventsDownloadResponse) Status() string
- func (r PostApiWebEventsDownloadResponse) StatusCode() int
- type PostApiWebEventsDownloadResponse200Headers
- type PostOauthRegisterJSONRequestBody
- type PostOauthRegisterResponse
- func (r PostOauthRegisterResponse) ContentType() string
- func (r PostOauthRegisterResponse) GetBody() []byte
- func (r PostOauthRegisterResponse) GetJSON201() *OAuthClientRegistrationResponse
- func (r PostOauthRegisterResponse) GetJSONDefault() *ErrorResponse
- func (r PostOauthRegisterResponse) Status() string
- func (r PostOauthRegisterResponse) StatusCode() int
- type PostOauthRevokeFormdataRequestBody
- type PostOauthRevokeResponse
- func (r PostOauthRevokeResponse) ContentType() string
- func (r PostOauthRevokeResponse) GetBody() []byte
- func (r PostOauthRevokeResponse) GetJSON400() *OAuthTokenErrorResponse
- func (r PostOauthRevokeResponse) GetJSONDefault() *ErrorResponse
- func (r PostOauthRevokeResponse) Status() string
- func (r PostOauthRevokeResponse) StatusCode() int
- type PostOauthTokenFormdataRequestBody
- type PostOauthTokenResponse
- func (r PostOauthTokenResponse) ContentType() string
- func (r PostOauthTokenResponse) GetBody() []byte
- func (r PostOauthTokenResponse) GetJSON200() *OAuthTokenResponse
- func (r PostOauthTokenResponse) GetJSON400() *OAuthTokenErrorResponse
- func (r PostOauthTokenResponse) GetJSONDefault() *ErrorResponse
- func (r PostOauthTokenResponse) Status() string
- func (r PostOauthTokenResponse) StatusCode() int
- type Progress
- type PrometheusAlertRule
- type PrometheusAlertRuleApiListItem
- type PrometheusAlertRuleBulkCreateRequest
- type PrometheusAlertRuleBulkCreateResponse
- type PrometheusAlertRuleMetadata
- type PrometheusAlertRuleMetadataAnnotations
- type PrometheusAlertRuleMetadataLabels
- type PrometheusAlertRule_Annotations
- func (a PrometheusAlertRule_Annotations) Get(fieldName string) (value string, found bool)
- func (a PrometheusAlertRule_Annotations) MarshalJSON() ([]byte, error)
- func (a *PrometheusAlertRule_Annotations) Set(fieldName string, value string)
- func (a *PrometheusAlertRule_Annotations) UnmarshalJSON(b []byte) error
- type PrometheusBuildInfo
- type PrometheusBuildInfoResponse
- type PrometheusErrorResponse
- type PrometheusFormatQueryRequest
- type PrometheusFormatQueryResponse
- type PrometheusLabelNamesOrValuesRequest
- type PrometheusLabelNamesOrValuesResponse
- type PrometheusMatrixResult
- type PrometheusMatrixSampleResult
- type PrometheusMetadataRequest
- type PrometheusMetadataResponse
- type PrometheusMetric
- type PrometheusMetricMetadata
- type PrometheusQueryRangeRequest
- type PrometheusQueryRequest
- type PrometheusQueryResponse
- type PrometheusQueryResult
- type PrometheusQueryResult_Result
- func (t PrometheusQueryResult_Result) AsPrometheusMatrixResult() (PrometheusMatrixResult, error)
- func (t PrometheusQueryResult_Result) AsPrometheusScalarResult() (PrometheusScalarResult, error)
- func (t PrometheusQueryResult_Result) AsPrometheusStringResult() (PrometheusStringResult, error)
- func (t PrometheusQueryResult_Result) AsPrometheusVectorResult() (PrometheusVectorResult, error)
- func (t *PrometheusQueryResult_Result) FromPrometheusMatrixResult(v PrometheusMatrixResult) error
- func (t *PrometheusQueryResult_Result) FromPrometheusScalarResult(v PrometheusScalarResult) error
- func (t *PrometheusQueryResult_Result) FromPrometheusStringResult(v PrometheusStringResult) error
- func (t *PrometheusQueryResult_Result) FromPrometheusVectorResult(v PrometheusVectorResult) error
- func (t PrometheusQueryResult_Result) MarshalJSON() ([]byte, error)
- func (t *PrometheusQueryResult_Result) MergePrometheusMatrixResult(v PrometheusMatrixResult) error
- func (t *PrometheusQueryResult_Result) MergePrometheusScalarResult(v PrometheusScalarResult) error
- func (t *PrometheusQueryResult_Result) MergePrometheusStringResult(v PrometheusStringResult) error
- func (t *PrometheusQueryResult_Result) MergePrometheusVectorResult(v PrometheusVectorResult) error
- func (t *PrometheusQueryResult_Result) UnmarshalJSON(b []byte) error
- type PrometheusResultType
- type PrometheusRule
- type PrometheusRuleApiVersion
- type PrometheusRuleDefinition
- type PrometheusRuleGroup
- type PrometheusRuleKind
- type PrometheusRuleMetadata
- type PrometheusRuleSpec
- type PrometheusRules
- type PrometheusRulesGroup
- type PrometheusRulesMetadata
- type PrometheusRulesSpec
- type PrometheusRuntimeInfo
- type PrometheusRuntimeInfoResponse
- type PrometheusScalarResult
- type PrometheusSeriesResponse
- type PrometheusStringResult
- type PrometheusVectorResult
- type PrometheusVectorSampleResult
- type PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody
- type PutApiAgent0CustomSkillsOriginOrIdResponse
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200() *SkillResponse
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) Status() string
- func (r PutApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
- type PutApiAgenticWorkflowsOriginOrIdJSONRequestBody
- type PutApiAgenticWorkflowsOriginOrIdParams
- type PutApiAgenticWorkflowsOriginOrIdResponse
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON200() *AgenticWorkflowResponse
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON503() *ErrorResponse
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) Status() string
- func (r PutApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
- type PutApiAlertingCheckRulesOriginOrIdJSONRequestBody
- type PutApiAlertingCheckRulesOriginOrIdParams
- type PutApiAlertingCheckRulesOriginOrIdResponse
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetJSON200() *PrometheusAlertRule
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) Status() string
- func (r PutApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
- type PutApiAuthTokensOriginOrIdJSONRequestBody
- type PutApiAuthTokensOriginOrIdResponse
- func (r PutApiAuthTokensOriginOrIdResponse) ContentType() string
- func (r PutApiAuthTokensOriginOrIdResponse) GetBody() []byte
- func (r PutApiAuthTokensOriginOrIdResponse) GetJSON200() *AuthTokenResponse
- func (r PutApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiAuthTokensOriginOrIdResponse) Status() string
- func (r PutApiAuthTokensOriginOrIdResponse) StatusCode() int
- type PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody
- type PutApiAwsMetricScrapeConfigsIntegrationIdResponse
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200() *AwsMetricScrapeConfigDefinition
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
- func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
- type PutApiDashboardsOriginOrIdJSONRequestBody
- type PutApiDashboardsOriginOrIdParams
- type PutApiDashboardsOriginOrIdResponse
- func (r PutApiDashboardsOriginOrIdResponse) ContentType() string
- func (r PutApiDashboardsOriginOrIdResponse) GetBody() []byte
- func (r PutApiDashboardsOriginOrIdResponse) GetJSON200() *DashboardDefinition
- func (r PutApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiDashboardsOriginOrIdResponse) Status() string
- func (r PutApiDashboardsOriginOrIdResponse) StatusCode() int
- type PutApiDatasetsOriginOrIdJSONRequestBody
- type PutApiDatasetsOriginOrIdResponse
- func (r PutApiDatasetsOriginOrIdResponse) ContentType() string
- func (r PutApiDatasetsOriginOrIdResponse) GetBody() []byte
- func (r PutApiDatasetsOriginOrIdResponse) GetJSON200() *DatasetResponse
- func (r PutApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiDatasetsOriginOrIdResponse) Status() string
- func (r PutApiDatasetsOriginOrIdResponse) StatusCode() int
- type PutApiImportSignalToMetricsJSONRequestBody
- type PutApiImportSignalToMetricsParams
- type PutApiImportSignalToMetricsResponse
- func (r PutApiImportSignalToMetricsResponse) ContentType() string
- func (r PutApiImportSignalToMetricsResponse) GetBody() []byte
- func (r PutApiImportSignalToMetricsResponse) GetJSON200() *SignalToMetricsBulkUpsertResponse
- func (r PutApiImportSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiImportSignalToMetricsResponse) Status() string
- func (r PutApiImportSignalToMetricsResponse) StatusCode() int
- type PutApiMembersMemberIDRoleJSONRequestBody
- type PutApiMembersMemberIDRoleResponse
- func (r PutApiMembersMemberIDRoleResponse) ContentType() string
- func (r PutApiMembersMemberIDRoleResponse) GetBody() []byte
- func (r PutApiMembersMemberIDRoleResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiMembersMemberIDRoleResponse) Status() string
- func (r PutApiMembersMemberIDRoleResponse) StatusCode() int
- type PutApiNotificationChannelsOriginOrIdJSONRequestBody
- type PutApiNotificationChannelsOriginOrIdResponse
- func (r PutApiNotificationChannelsOriginOrIdResponse) ContentType() string
- func (r PutApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
- func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSON200() *NotificationChannelDefinition
- func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiNotificationChannelsOriginOrIdResponse) Status() string
- func (r PutApiNotificationChannelsOriginOrIdResponse) StatusCode() int
- type PutApiRecordingRulesOriginOrIdJSONRequestBody
- type PutApiRecordingRulesOriginOrIdParams
- type PutApiRecordingRulesOriginOrIdResponse
- func (r PutApiRecordingRulesOriginOrIdResponse) ContentType() string
- func (r PutApiRecordingRulesOriginOrIdResponse) GetBody() []byte
- func (r PutApiRecordingRulesOriginOrIdResponse) GetJSON200() *generatedPrometheusRule
- func (r PutApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiRecordingRulesOriginOrIdResponse) Status() string
- func (r PutApiRecordingRulesOriginOrIdResponse) StatusCode() int
- type PutApiSamplingRulesOriginOrIdJSONRequestBody
- type PutApiSamplingRulesOriginOrIdParams
- type PutApiSamplingRulesOriginOrIdResponse
- func (r PutApiSamplingRulesOriginOrIdResponse) ContentType() string
- func (r PutApiSamplingRulesOriginOrIdResponse) GetBody() []byte
- func (r PutApiSamplingRulesOriginOrIdResponse) GetJSON200() *SamplingRuleResponse
- func (r PutApiSamplingRulesOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiSamplingRulesOriginOrIdResponse) Status() string
- func (r PutApiSamplingRulesOriginOrIdResponse) StatusCode() int
- type PutApiSignalToMetricsOriginOrIdJSONRequestBody
- type PutApiSignalToMetricsOriginOrIdParams
- type PutApiSignalToMetricsOriginOrIdResponse
- func (r PutApiSignalToMetricsOriginOrIdResponse) ContentType() string
- func (r PutApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
- func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSON200() *SignalToMetricsResponse
- func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiSignalToMetricsOriginOrIdResponse) Status() string
- func (r PutApiSignalToMetricsOriginOrIdResponse) StatusCode() int
- type PutApiSlosOriginOrIdJSONRequestBody
- type PutApiSlosOriginOrIdParams
- type PutApiSlosOriginOrIdResponse
- func (r PutApiSlosOriginOrIdResponse) ContentType() string
- func (r PutApiSlosOriginOrIdResponse) GetBody() []byte
- func (r PutApiSlosOriginOrIdResponse) GetJSON200() *SloDefinition
- func (r PutApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiSlosOriginOrIdResponse) Status() string
- func (r PutApiSlosOriginOrIdResponse) StatusCode() int
- type PutApiSpamFiltersOriginOrIdJSONRequestBody
- type PutApiSpamFiltersOriginOrIdParams
- type PutApiSpamFiltersOriginOrIdResponse
- func (r PutApiSpamFiltersOriginOrIdResponse) ContentType() string
- func (r PutApiSpamFiltersOriginOrIdResponse) GetBody() []byte
- func (r PutApiSpamFiltersOriginOrIdResponse) GetJSON200() *SpamFilterResponse
- func (r PutApiSpamFiltersOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiSpamFiltersOriginOrIdResponse) Status() string
- func (r PutApiSpamFiltersOriginOrIdResponse) StatusCode() int
- type PutApiSyntheticChecksOriginOrIdJSONRequestBody
- type PutApiSyntheticChecksOriginOrIdParams
- type PutApiSyntheticChecksOriginOrIdResponse
- func (r PutApiSyntheticChecksOriginOrIdResponse) ContentType() string
- func (r PutApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
- func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSON200() *SyntheticCheckDefinition
- func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSON400() *ErrorResponse
- func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiSyntheticChecksOriginOrIdResponse) Status() string
- func (r PutApiSyntheticChecksOriginOrIdResponse) StatusCode() int
- type PutApiTeamsOriginOrIdDisplayJSONRequestBody
- type PutApiTeamsOriginOrIdDisplayResponse
- func (r PutApiTeamsOriginOrIdDisplayResponse) ContentType() string
- func (r PutApiTeamsOriginOrIdDisplayResponse) GetBody() []byte
- func (r PutApiTeamsOriginOrIdDisplayResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiTeamsOriginOrIdDisplayResponse) Status() string
- func (r PutApiTeamsOriginOrIdDisplayResponse) StatusCode() int
- type PutApiTeamsOriginOrIdJSONRequestBody
- type PutApiTeamsOriginOrIdResponse
- func (r PutApiTeamsOriginOrIdResponse) ContentType() string
- func (r PutApiTeamsOriginOrIdResponse) GetBody() []byte
- func (r PutApiTeamsOriginOrIdResponse) GetJSON200() *TeamDefinitionV1Alpha1
- func (r PutApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiTeamsOriginOrIdResponse) Status() string
- func (r PutApiTeamsOriginOrIdResponse) StatusCode() int
- type PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody
- type PutApiTimeSeriesAggregationsOriginOrIdParams
- type PutApiTimeSeriesAggregationsOriginOrIdResponse
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200() *TimeSeriesAggregationDefinition
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403() *ErrorResponse
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
- func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
- type PutApiViewsOriginOrIdJSONRequestBody
- type PutApiViewsOriginOrIdParams
- type PutApiViewsOriginOrIdResponse
- func (r PutApiViewsOriginOrIdResponse) ContentType() string
- func (r PutApiViewsOriginOrIdResponse) GetBody() []byte
- func (r PutApiViewsOriginOrIdResponse) GetJSON200() *ViewDefinition
- func (r PutApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
- func (r PutApiViewsOriginOrIdResponse) Status() string
- func (r PutApiViewsOriginOrIdResponse) StatusCode() int
- type QueryError
- type RecordingRule
- type RefreshingAuthTokenProvider
- type RelativeTime
- type RequestEditorFn
- type Resource
- type ResourceCloud
- type ResourceClouds
- type ResourceDeploymentEnvironment
- type ResourceDeploymentEnvironments
- type ResourceLanguage
- type ResourceLanguages
- type ResourceLogs
- type ResourceOrchestration
- type ResourceOrchestrations
- type ResourceSpans
- type RespectNativeCodingAgentTelemetry
- type ResultRow
- type ResultRows
- type RetentionClass
- type Sampling
- type SamplingCondition
- func (t SamplingCondition) AsSamplingConditionAnd() (SamplingConditionAnd, error)
- func (t SamplingCondition) AsSamplingConditionError() (SamplingConditionError, error)
- func (t SamplingCondition) AsSamplingConditionOttl() (SamplingConditionOttl, error)
- func (t SamplingCondition) AsSamplingConditionProbabilistic() (SamplingConditionProbabilistic, error)
- func (t *SamplingCondition) FromSamplingConditionAnd(v SamplingConditionAnd) error
- func (t *SamplingCondition) FromSamplingConditionError(v SamplingConditionError) error
- func (t *SamplingCondition) FromSamplingConditionOttl(v SamplingConditionOttl) error
- func (t *SamplingCondition) FromSamplingConditionProbabilistic(v SamplingConditionProbabilistic) error
- func (t SamplingCondition) MarshalJSON() ([]byte, error)
- func (t *SamplingCondition) MergeSamplingConditionAnd(v SamplingConditionAnd) error
- func (t *SamplingCondition) MergeSamplingConditionError(v SamplingConditionError) error
- func (t *SamplingCondition) MergeSamplingConditionOttl(v SamplingConditionOttl) error
- func (t *SamplingCondition) MergeSamplingConditionProbabilistic(v SamplingConditionProbabilistic) error
- func (t *SamplingCondition) UnmarshalJSON(b []byte) error
- type SamplingConditionAnd
- type SamplingConditionAndKind
- type SamplingConditionAndSpec
- type SamplingConditionError
- type SamplingConditionErrorKind
- type SamplingConditionErrorSpec
- type SamplingConditionOttl
- type SamplingConditionOttlKind
- type SamplingConditionOttlSpec
- type SamplingConditionProbabilistic
- type SamplingConditionProbabilisticKind
- type SamplingConditionProbabilisticSpec
- type SamplingDefinition
- type SamplingDefinitionKind
- type SamplingDisplay
- type SamplingLabels
- type SamplingMetadata
- type SamplingMode
- type SamplingRateLimit
- type SamplingRuleCreateRequest
- type SamplingRuleResponse
- type SamplingSpec
- type ScheduleTriggerVariableName
- type ScheduledAgenticWorkflowTrigger
- type ScheduledAgenticWorkflowTriggerKind
- type ScheduledAgenticWorkflowTriggerSpec
- type ScopeLogs
- type ScopeSpans
- type SecretRef
- type SemanticConventionUpgrades
- type ServiceDurationStatistic
- type ServiceDurationSummary
- type ServiceRedStatistics
- type ServiceRef
- type ServiceStatistic
- type SettingsPerOrganizationAndDatasetInfo
- type SeverityNumber
- type SignalControlEdgeSettings
- type SignalControlMeteringSettings
- type SignalControlOperationCardinalityReductionSettings
- type SignalRestriction
- type SignalToMetricsBulkUpsertRequest
- type SignalToMetricsBulkUpsertResponse
- type SignalToMetricsCounts
- type SignalToMetricsCreateRequest
- type SignalToMetricsDefinition
- type SignalToMetricsDefinitionKind
- type SignalToMetricsDisplay
- type SignalToMetricsGroupAnnotations
- type SignalToMetricsLabels
- type SignalToMetricsMatch
- type SignalToMetricsMetadata
- type SignalToMetricsOutput
- type SignalToMetricsOutputType
- type SignalToMetricsResponse
- type SignalToMetricsSignalCounts
- type SignalToMetricsSignalType
- type SignalToMetricsSourcedeprecated
- type SignalToMetricsSpec
- type SignalToMetricsTargetDatasetMode
- type SignalToMetricsTestRequest
- type SignalToMetricsTestResponse
- type SignalType
- type SkillAnnotations
- type SkillCreateRequest
- type SkillDefinition
- type SkillDefinitionKind
- type SkillFile
- type SkillLabels
- type SkillListResponse
- type SkillMetadata
- type SkillPermission
- type SkillResponse
- type SkillSource
- type SkillSourceProvider
- type SkillSpec
- type SkillUpdateRequest
- type SlackBotConfig
- type SlackBotFailedCheckAgenticWorkflowTrigger
- type SlackBotFailedCheckAgenticWorkflowTriggerKind
- type SlackBotFailedCheckAgenticWorkflowTriggerSpec
- type SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item
- func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName() (FailedCheckTriggerVariableName, error)
- func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName() (SlackTriggerVariableName, error)
- func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
- func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName(v SlackTriggerVariableName) error
- func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
- func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
- func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName(v SlackTriggerVariableName) error
- func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
- type SlackBotMessageAgenticWorkflowTrigger
- type SlackBotMessageAgenticWorkflowTriggerKind
- type SlackBotMessageAgenticWorkflowTriggerSpec
- type SlackBotReactionAgenticWorkflowTrigger
- type SlackBotReactionAgenticWorkflowTriggerKind
- type SlackBotReactionAgenticWorkflowTriggerSpec
- type SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item
- func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackReactionTriggerVariableName() (SlackReactionTriggerVariableName, error)
- func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName() (SlackTriggerVariableName, error)
- func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackReactionTriggerVariableName(v SlackReactionTriggerVariableName) error
- func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName(v SlackTriggerVariableName) error
- func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
- func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackReactionTriggerVariableName(v SlackReactionTriggerVariableName) error
- func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName(v SlackTriggerVariableName) error
- func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
- type SlackConfig
- type SlackReactionTriggerVariableName
- type SlackTriggerVariableName
- type SloAlertCondition
- type SloAlertConditionDetails
- type SloAlertConditionMetadata
- type SloAlertConditionSpec
- type SloAlertNotificationTarget
- type SloAlertPolicy
- type SloAlertPolicyMetadata
- type SloAlertPolicySpec
- type SloAnnotations
- type SloBudgetingMethod
- type SloCalendarWindow
- type SloComparisonOperator
- type SloDefinition
- type SloDefinitionApiVersion
- type SloDefinitionKind
- type SloIndicator
- type SloIndicatorMetadata
- type SloIndicatorSpec
- type SloLabels
- type SloMetadata
- type SloMetricSource
- type SloMetricSourceWrapper
- type SloObjective
- type SloRatioMetric
- type SloRawType
- type SloSpec
- type SloThresholdMetric
- type SloTimeWindow
- type SourceMapIntegration
- type SourceMapIntegrationKind
- type SourceMapIntegrationSecrets
- type SourceMapIntegrationSpec
- type SourceMapIntegrationSpecAuthType
- type SpamFilter
- type SpamFilterAnnotations
- type SpamFilterAnnotationsDash0Comenabled
- type SpamFilterApiVersion
- type SpamFilterApiVersionV1Alpha1
- type SpamFilterApiVersionV1Alpha2
- type SpamFilterCreateRequest
- func (t SpamFilterCreateRequest) AsSpamFilterDefinition() (SpamFilterDefinition, error)
- func (t SpamFilterCreateRequest) AsSpamFilterDefinitionV1Alpha2() (SpamFilterDefinitionV1Alpha2, error)
- func (t *SpamFilterCreateRequest) FromSpamFilterDefinition(v SpamFilterDefinition) error
- func (t *SpamFilterCreateRequest) FromSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
- func (t SpamFilterCreateRequest) MarshalJSON() ([]byte, error)
- func (t *SpamFilterCreateRequest) MergeSpamFilterDefinition(v SpamFilterDefinition) error
- func (t *SpamFilterCreateRequest) MergeSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
- func (t *SpamFilterCreateRequest) UnmarshalJSON(b []byte) error
- type SpamFilterDefinition
- type SpamFilterDefinitionKind
- type SpamFilterDefinitionV1Alpha2
- type SpamFilterDefinitionV1Alpha2Kind
- type SpamFilterLabels
- type SpamFilterMetadata
- type SpamFilterObject
- type SpamFilterResponse
- func (t SpamFilterResponse) AsSpamFilterDefinition() (SpamFilterDefinition, error)
- func (t SpamFilterResponse) AsSpamFilterDefinitionV1Alpha2() (SpamFilterDefinitionV1Alpha2, error)
- func (t *SpamFilterResponse) FromSpamFilterDefinition(v SpamFilterDefinition) error
- func (t *SpamFilterResponse) FromSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
- func (t SpamFilterResponse) MarshalJSON() ([]byte, error)
- func (t *SpamFilterResponse) MergeSpamFilterDefinition(v SpamFilterDefinition) error
- func (t *SpamFilterResponse) MergeSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
- func (t *SpamFilterResponse) UnmarshalJSON(b []byte) error
- type SpamFilterSpec
- type SpamFilterSpecV1Alpha2
- type SpamFilterV1Alpha2
- type Span
- type SpanEvent
- type SpanExportFormat
- type SpanKind
- type SpanLink
- type SpanStatus
- type SpanStatusCode
- type SpansDownloadRequest
- type SslCertificateAssertion
- type SslCertificateAssertionKind
- type SslCertificateAssertionSpec
- type StatusCountStatistic
- type StatusCounts
- type StringAssertionOperator
- type SyntheticCheckAction
- type SyntheticCheckAnnotations
- type SyntheticCheckAttempt
- type SyntheticCheckAttemptDetails
- type SyntheticCheckDefinition
- type SyntheticCheckDefinitionKind
- type SyntheticCheckDisplay
- type SyntheticCheckLabels
- type SyntheticCheckLocation
- type SyntheticCheckLocationEntry
- type SyntheticCheckLocationKind
- type SyntheticCheckMetadata
- type SyntheticCheckNotifications
- type SyntheticCheckPermission
- type SyntheticCheckPlugin
- func (t SyntheticCheckPlugin) AsSyntheticHttpCheckPlugin() (SyntheticHttpCheckPlugin, error)
- func (t *SyntheticCheckPlugin) FromSyntheticHttpCheckPlugin(v SyntheticHttpCheckPlugin) error
- func (t SyntheticCheckPlugin) MarshalJSON() ([]byte, error)
- func (t *SyntheticCheckPlugin) MergeSyntheticHttpCheckPlugin(v SyntheticHttpCheckPlugin) error
- func (t *SyntheticCheckPlugin) UnmarshalJSON(b []byte) error
- type SyntheticCheckRetries
- func (t SyntheticCheckRetries) AsSyntheticCheckRetriesExponential() (SyntheticCheckRetriesExponential, error)
- func (t SyntheticCheckRetries) AsSyntheticCheckRetriesFixed() (SyntheticCheckRetriesFixed, error)
- func (t SyntheticCheckRetries) AsSyntheticCheckRetriesLinear() (SyntheticCheckRetriesLinear, error)
- func (t SyntheticCheckRetries) AsSyntheticCheckRetriesOff() (SyntheticCheckRetriesOff, error)
- func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesExponential(v SyntheticCheckRetriesExponential) error
- func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesFixed(v SyntheticCheckRetriesFixed) error
- func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesLinear(v SyntheticCheckRetriesLinear) error
- func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesOff(v SyntheticCheckRetriesOff) error
- func (t SyntheticCheckRetries) MarshalJSON() ([]byte, error)
- func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesExponential(v SyntheticCheckRetriesExponential) error
- func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesFixed(v SyntheticCheckRetriesFixed) error
- func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesLinear(v SyntheticCheckRetriesLinear) error
- func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesOff(v SyntheticCheckRetriesOff) error
- func (t *SyntheticCheckRetries) UnmarshalJSON(b []byte) error
- type SyntheticCheckRetriesExponential
- type SyntheticCheckRetriesExponentialKind
- type SyntheticCheckRetriesExponentialSpec
- type SyntheticCheckRetriesFixed
- type SyntheticCheckRetriesFixedKind
- type SyntheticCheckRetriesFixedSpec
- type SyntheticCheckRetriesLinear
- type SyntheticCheckRetriesLinearKind
- type SyntheticCheckRetriesLinearSpec
- type SyntheticCheckRetriesOff
- type SyntheticCheckRetriesOffKind
- type SyntheticCheckRetriesOffSpec
- type SyntheticCheckSchedule
- type SyntheticCheckSchedulingStrategy
- type SyntheticCheckSpec
- type SyntheticChecksApiListItem
- type SyntheticHttpCheckAssertions
- type SyntheticHttpCheckPlugin
- type SyntheticHttpCheckPluginKind
- type SyntheticHttpCheckPluginSpec
- type SyntheticHttpErrorType
- type SyntheticPrivateLocationHealth
- type SyntheticPrivateLocationHealthStatus
- type SyntheticPrivateLocationLocationId
- type TeamAnnotations
- type TeamApiVersion
- type TeamDefinitiondeprecated
- type TeamDefinitionV1Alpha1
- type TeamDefinitionV1Alpha1Kind
- type TeamDisplay
- type TeamLabels
- type TeamMetadata
- type TeamSpec
- type TeamsListItem
- type TeamsWebhookConfig
- type TelemetryFilter
- type TelemetryFilterContext
- type TestSyntheticCheckRequest
- type TestSyntheticCheckResponse
- type TimeRange
- type TimeReference
- func (t TimeReference) AsFixedTime() (FixedTime, error)
- func (t TimeReference) AsFixedTimeUnix() (FixedTimeUnix, error)
- func (t TimeReference) AsRelativeTime() (RelativeTime, error)
- func (t *TimeReference) FromFixedTime(v FixedTime) error
- func (t *TimeReference) FromFixedTimeUnix(v FixedTimeUnix) error
- func (t *TimeReference) FromRelativeTime(v RelativeTime) error
- func (t TimeReference) MarshalJSON() ([]byte, error)
- func (t *TimeReference) MergeFixedTime(v FixedTime) error
- func (t *TimeReference) MergeFixedTimeUnix(v FixedTimeUnix) error
- func (t *TimeReference) MergeRelativeTime(v RelativeTime) error
- func (t *TimeReference) UnmarshalJSON(b []byte) error
- type TimeReferenceRange
- type TimeSeriesAggregationAnnotations
- type TimeSeriesAggregationAttributeModification
- type TimeSeriesAggregationAttributeModificationContext
- type TimeSeriesAggregationAttributeModificationKind
- type TimeSeriesAggregationAttributeModificationSpec
- type TimeSeriesAggregationDefinition
- type TimeSeriesAggregationDefinitionKind
- type TimeSeriesAggregationDisplay
- type TimeSeriesAggregationLabels
- type TimeSeriesAggregationListResponse
- type TimeSeriesAggregationMetadata
- type TimeSeriesAggregationMetricNameMatch
- type TimeSeriesAggregationSample
- type TimeSeriesAggregationSpec
- type TimingAssertion
- type TimingAssertionKind
- type TimingAssertionSpec
- type TimingType
- type TlsSettings
- type TopologyEdge
- type TopologyEdgeDurationStatistic
- type TopologyEdgeDurationSummary
- type TopologyEdgeStatistic
- type TopologyEdgeStatistics
- type TopologyNode
- type TopologyNodeKind
- type TopologyResponse
- type TotalCountStatistic
- type TracingSettings
- type Transport
- type TransportOption
- func WithBaseTransport(rt http.RoundTripper) TransportOption
- func WithTransportMaxConcurrentRequests(n int64) TransportOption
- func WithTransportMaxRetries(n int) TransportOption
- func WithTransportRetryOnConflict() TransportOption
- func WithTransportRetryWaitMax(d time.Duration) TransportOption
- func WithTransportRetryWaitMin(d time.Duration) TransportOption
- func WithTransportTimeout(d time.Duration) TransportOption
- type UpdateMemberRoleRequest
- type ViewAction
- type ViewAnnotations
- type ViewApiListItem
- type ViewDefinition
- type ViewDefinitionKind
- type ViewDisplay
- type ViewLabels
- type ViewMetadata
- type ViewPermission
- type ViewSpec
- type ViewSpecServiceMapProperties
- type ViewSpecServiceMapPropertiesExternalServices
- type ViewSpecServiceMapPropertiesLayout
- type ViewTable
- type ViewTableColumn
- type ViewType
- type ViewVisualization
- type ViewVisualizationMetric
- type ViewVisualizationRenderer
- type WebEventExportFormat
- type WebEventsDownloadRequest
- type WebhookAgenticWorkflowTrigger
- type WebhookAgenticWorkflowTriggerKind
- type WebhookConfig
Examples ¶
- AppBaseURL
- AuthTokenResponseSpec.Format
- AuthTokenResponseSpec.LogValue
- ClearAuthTokenID
- ClearCheckRuleID
- ClearCustomSkillID
- ClearDashboardID
- ClearDatasetID
- ClearNotificationChannelID
- ClearRecordingRuleID
- ClearSLOID
- ClearSamplingRuleID
- ClearSignalToMetricsID
- ClearSpamFilterID
- ClearSpamFilterV1Alpha2ID
- ClearTeamID
- ClearTimeSeriesAggregationID
- ConvertAuthTokenResponseToDefinition
- ConvertPersesDashboardToDashboard
- DatasetPtr
- DatasetPtr (NonDefault)
- DeeplinkURL
- FailedChecksExplorerURL
- FormatDuration
- GenerateOAuthState
- GeneratePKCEPair
- GetAuthTokenID
- GetAuthTokenName
- GetAwsMetricScrapeConfigID
- GetAwsMetricScrapeConfigName
- GetAwsMetricScrapeConfigOrigin
- GetCheckRuleDataset
- GetCheckRuleID
- GetCheckRuleName
- GetCustomSkillID
- GetCustomSkillName
- GetCustomSkillOrigin
- GetDashboardDataset
- GetDashboardFolderPath
- GetDashboardID
- GetDashboardName
- GetDatasetID
- GetDatasetName
- GetNotificationChannelName
- GetNotificationChannelOrigin
- GetPersesDashboardDataset
- GetPersesDashboardFolderPath
- GetPrometheusRuleDataset
- GetPrometheusRuleName
- GetRecordingRuleDataset
- GetRecordingRuleID
- GetRecordingRuleName
- GetSLODataset
- GetSLOID
- GetSLOName
- GetSLOOrigin
- GetSamplingRuleDataset
- GetSamplingRuleID
- GetSamplingRuleName
- GetSamplingRuleName (Fallback)
- GetSignalToMetricsDataset
- GetSignalToMetricsID
- GetSignalToMetricsName
- GetSignalToMetricsName (Fallback)
- GetSpamFilterDataset
- GetSpamFilterID
- GetSpamFilterName
- GetSpamFilterV1Alpha2Dataset
- GetSpamFilterV1Alpha2ID
- GetSpamFilterV1Alpha2Name
- GetSyntheticCheckDataset
- GetSyntheticCheckID
- GetSyntheticCheckName
- GetTeamDisplayName
- GetTeamID
- GetTeamName
- GetTeamOrigin
- GetTimeSeriesAggregationDataset
- GetTimeSeriesAggregationID
- GetTimeSeriesAggregationName
- GetTimeSeriesAggregationName (Fallback)
- GetViewDataset
- GetViewID
- GetViewName
- GetViewName (Fallback)
- IsOAuthInvalidGrant
- IsOAuthTerminalError
- IsOAuthTokenError
- NewClient (ApiAndOtlp)
- NewClient (ApiOnly)
- NewClient (FromProfile)
- NewListOptions
- NewOAuthClient
- NewTransport
- SetAuthTokenIDIfAbsent
- SetAwsMetricScrapeConfigOrigin
- SetCheckRuleDataset
- SetCheckRuleID
- SetCheckRuleIDIfAbsent
- SetCustomSkillID
- SetCustomSkillIDIfAbsent
- SetCustomSkillOrigin
- SetDashboardDataset
- SetDashboardFolderPath
- SetDashboardID
- SetDashboardIDIfAbsent
- SetDatasetID
- SetDatasetIDIfAbsent
- SetNotificationChannelOrigin
- SetPersesDashboardDataset
- SetPersesDashboardFolderPath
- SetPrometheusRuleDataset
- SetRecordingRuleDataset
- SetRecordingRuleID
- SetRecordingRuleIDIfAbsent
- SetSLODataset
- SetSLOID
- SetSLOIDIfAbsent
- SetSamplingRuleDataset
- SetSamplingRuleID
- SetSamplingRuleIDIfAbsent
- SetSignalToMetricsDataset
- SetSignalToMetricsID
- SetSignalToMetricsIDIfAbsent
- SetSpamFilterDataset
- SetSpamFilterID
- SetSpamFilterIDIfAbsent
- SetSpamFilterV1Alpha2Dataset
- SetSpamFilterV1Alpha2ID
- SetSpamFilterV1Alpha2IDIfAbsent
- SetSyntheticCheckDataset
- SetSyntheticCheckID
- SetTeamID
- SetTeamIDIfAbsent
- SetTimeSeriesAggregationDataset
- SetTimeSeriesAggregationID
- SetTimeSeriesAggregationIDIfAbsent
- SetViewDataset
- SetViewID
- StaticAuthTokenProvider
- StripAuthTokenServerFields
- StripAwsMetricScrapeConfigServerFields
- StripCheckRuleServerFields
- StripCustomSkillServerFields
- StripDashboardServerFields
- StripDatasetServerFields
- StripNotificationChannelServerFields
- StripRecordingRuleServerFields
- StripSLOServerFields
- StripSamplingRuleServerFields
- StripSignalToMetricsServerFields
- StripSpamFilterServerFields
- StripSpamFilterV1Alpha2ServerFields
- StripTeamServerFields
- StripTimeSeriesAggregationServerFields
- Transport.HTTPClient
- ViewDeeplinkURL
- WithAuthTokenProvider
- WithEnabled
- WithOriginPrefix
- WithRetryOnConflict
- WithSignal
- WithSignalToMetricsName
- WithTransport
- WithTransportRetryOnConflict
Constants ¶
const ( AnnotationFolderPath = "dash0.com/folder-path" AnnotationSharing = "dash0.com/sharing" AnnotationSource = "dash0.com/source" )
CRD annotation keys used by Dash0 assets in Kubernetes-style metadata.
const ( // AuthTokenPrefixStatic marks a long-lived organization token, created in // the Dash0 settings UI. AuthTokenPrefixStatic = "auth_" // AuthTokenPrefixOAuth marks an access token issued by the Dash0 // authorization server, which expires and has to be refreshed. AuthTokenPrefixOAuth = "dash0_at_" )
Auth token prefixes. Every Dash0 credential carries one of these, and callers that validate a token before handing it over should compare against them rather than repeating the literals.
const ( // DefaultMaxConcurrentRequests is the default maximum number of concurrent API requests. DefaultMaxConcurrentRequests = 3 // MaxConcurrentRequests is the maximum allowed value for concurrent requests. MaxConcurrentRequests = 10 // DefaultTimeout is the default HTTP request timeout. DefaultTimeout = 30 * time.Second // DefaultUserAgent is the default User-Agent header value. DefaultUserAgent = "dash0-api-client-go/" + Version // DefaultRetryWaitMin is the default minimum wait time between retries. DefaultRetryWaitMin = 500 * time.Millisecond // DefaultRetryWaitMax is the default maximum wait time between retries. DefaultRetryWaitMax = 30 * time.Second // MaxRetries is the maximum allowed number of retries. MaxRetries = 5 )
const ( LabelID = "dash0.com/id" LabelDataset = "dash0.com/dataset" LabelOrigin = "dash0.com/origin" )
CRD label keys used by Dash0 assets in Kubernetes-style metadata.
const Adaptive = SamplingModeAdaptive
Adaptive is a deprecated alias for SamplingModeAdaptive.
Deprecated: since v1.21.0. Use SamplingModeAdaptive instead.
const Alternative = SignalToMetricsTargetDatasetModeAlternative
Alternative is a deprecated alias for SignalToMetricsTargetDatasetModeAlternative.
Deprecated: since v1.23.0. Use SignalToMetricsTargetDatasetModeAlternative instead.
const AwsLambda = ViewTypeAwsLambda
AwsLambda is a deprecated alias for ViewTypeAwsLambda.
Deprecated: since v1.25.0. Use ViewTypeAwsLambda instead.
const Both = SignalToMetricsTargetDatasetModeBoth
Both is a deprecated alias for SignalToMetricsTargetDatasetModeBoth.
Deprecated: since v1.23.0. Use SignalToMetricsTargetDatasetModeBoth instead.
const Contains = StringAssertionOperatorContains
Contains is a deprecated alias for StringAssertionOperatorContains.
Deprecated: since v1.29.0. Use StringAssertionOperatorContains instead.
const Continue = AgenticWorkflowTriggerDeliveryContinue
Continue is a deprecated alias for AgenticWorkflowTriggerDeliveryContinue.
Deprecated: since v1.23.0. Use AgenticWorkflowTriggerDeliveryContinue instead.
const Csv = WebEventExportFormatCsv
Csv is a deprecated alias for WebEventExportFormatCsv.
Deprecated: since v1.29.0. Use WebEventExportFormatCsv instead.
const DarkplanePullRequestEvaluation = WebhookAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation
DarkplanePullRequestEvaluation is a deprecated alias for WebhookAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation instead.
const Dash0Comv1alpha1 = TeamApiVersionDash0Comv1alpha1
Dash0Comv1alpha1 is a deprecated alias for TeamApiVersionDash0Comv1alpha1.
Deprecated: since v1.28.0. Use TeamApiVersionDash0Comv1alpha1 instead.
const Dash0SpamFilter = SpamFilterDefinitionKindDash0SpamFilter
Dash0SpamFilter is a deprecated alias for SpamFilterDefinitionKindDash0SpamFilter.
Deprecated: since v1.12.1. Use SpamFilterDefinitionKindDash0SpamFilter instead.
const DashboardSourceApi = Api
DashboardSourceApi is a deprecated alias for Api.
Deprecated: since v1.12.0. Use Api instead.
const DashboardSourceOperator = Operator
DashboardSourceOperator is a deprecated alias for Operator.
Deprecated: since v1.12.0. Use Operator instead.
const DashboardSourceTerraform = Terraform
DashboardSourceTerraform is a deprecated alias for Terraform.
Deprecated: since v1.12.0. Use Terraform instead.
const DashboardSourceUi = Ui
DashboardSourceUi is a deprecated alias for Ui.
Deprecated: since v1.12.0. Use Ui instead.
const Disabled = SamplingModeDisabled
Disabled is a deprecated alias for SamplingModeDisabled.
Deprecated: since v1.21.0. Use SamplingModeDisabled instead.
const DoesNotContain = StringAssertionOperatorDoesNotContain
DoesNotContain is a deprecated alias for StringAssertionOperatorDoesNotContain.
Deprecated: since v1.29.0. Use StringAssertionOperatorDoesNotContain instead.
const DoesNotEndWith = StringAssertionOperatorDoesNotEndWith
DoesNotEndWith is a deprecated alias for StringAssertionOperatorDoesNotEndWith.
Deprecated: since v1.29.0. Use StringAssertionOperatorDoesNotEndWith instead.
const DoesNotMatch = StringAssertionOperatorDoesNotMatch
DoesNotMatch is a deprecated alias for StringAssertionOperatorDoesNotMatch.
Deprecated: since v1.29.0. Use StringAssertionOperatorDoesNotMatch instead.
const DoesNotStartWith = StringAssertionOperatorDoesNotStartWith
DoesNotStartWith is a deprecated alias for StringAssertionOperatorDoesNotStartWith.
Deprecated: since v1.29.0. Use StringAssertionOperatorDoesNotStartWith instead.
const EndsWith = StringAssertionOperatorEndsWith
EndsWith is a deprecated alias for StringAssertionOperatorEndsWith.
Deprecated: since v1.29.0. Use StringAssertionOperatorEndsWith instead.
const FailedCheckNew = WebhookAgenticWorkflowTriggerKindFailedCheckNew
FailedCheckNew is a deprecated alias for WebhookAgenticWorkflowTriggerKindFailedCheckNew.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindFailedCheckNew instead.
const FailedChecks = ViewTypeFailedChecks
FailedChecks is a deprecated alias for ViewTypeFailedChecks.
Deprecated: since v1.25.0. Use ViewTypeFailedChecks instead.
const Failure = SloRawTypeFailure
Failure is a deprecated alias for SloRawTypeFailure.
Deprecated: since v1.23.0. Use SloRawTypeFailure instead.
const GcpCloudRunJobs = ViewTypeGcpCloudRunJobs
GcpCloudRunJobs is a deprecated alias for ViewTypeGcpCloudRunJobs.
Deprecated: since v1.25.0. Use ViewTypeGcpCloudRunJobs instead.
const GcpCloudRunServices = ViewTypeGcpCloudRunServices
GcpCloudRunServices is a deprecated alias for ViewTypeGcpCloudRunServices.
Deprecated: since v1.25.0. Use ViewTypeGcpCloudRunServices instead.
const GcpCloudSqlInstances = ViewTypeGcpCloudSqlInstances
GcpCloudSqlInstances is a deprecated alias for ViewTypeGcpCloudSqlInstances.
Deprecated: since v1.25.0. Use ViewTypeGcpCloudSqlInstances instead.
const GcpCloudStorage = ViewTypeGcpCloudStorage
GcpCloudStorage is a deprecated alias for ViewTypeGcpCloudStorage.
Deprecated: since v1.25.0. Use ViewTypeGcpCloudStorage instead.
const GcpPubsub = ViewTypeGcpPubsub
GcpPubsub is a deprecated alias for ViewTypeGcpPubsub.
Deprecated: since v1.25.0. Use ViewTypeGcpPubsub instead.
const Github = DarkplaneProviderGithub
Github is a deprecated alias for DarkplaneProviderGithub.
Deprecated: since v1.29.0. Use DarkplaneProviderGithub instead.
const GithubCheckRun = WebhookAgenticWorkflowTriggerKindGithubCheckRun
GithubCheckRun is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubCheckRun.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubCheckRun instead.
const GithubCheckSuite = WebhookAgenticWorkflowTriggerKindGithubCheckSuite
GithubCheckSuite is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubCheckSuite.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubCheckSuite instead.
const GithubDeployment = WebhookAgenticWorkflowTriggerKindGithubDeployment
GithubDeployment is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubDeployment.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubDeployment instead.
const GithubDeploymentStatus = WebhookAgenticWorkflowTriggerKindGithubDeploymentStatus
GithubDeploymentStatus is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubDeploymentStatus.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubDeploymentStatus instead.
const GithubIssueComment = WebhookAgenticWorkflowTriggerKindGithubIssueComment
GithubIssueComment is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubIssueComment.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubIssueComment instead.
const GithubPullRequest = WebhookAgenticWorkflowTriggerKindGithubPullRequest
GithubPullRequest is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubPullRequest.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubPullRequest instead.
const GithubPullRequestReview = WebhookAgenticWorkflowTriggerKindGithubPullRequestReview
GithubPullRequestReview is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubPullRequestReview.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubPullRequestReview instead.
const GithubPullRequestReviewComment = WebhookAgenticWorkflowTriggerKindGithubPullRequestReviewComment
GithubPullRequestReviewComment is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubPullRequestReviewComment.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubPullRequestReviewComment instead.
const GithubPush = WebhookAgenticWorkflowTriggerKindGithubPush
GithubPush is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubPush.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubPush instead.
const GithubRelease = WebhookAgenticWorkflowTriggerKindGithubRelease
GithubRelease is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubRelease.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubRelease instead.
const GithubWorkflowDispatch = WebhookAgenticWorkflowTriggerKindGithubWorkflowDispatch
GithubWorkflowDispatch is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubWorkflowDispatch.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubWorkflowDispatch instead.
const GithubWorkflowJob = WebhookAgenticWorkflowTriggerKindGithubWorkflowJob
GithubWorkflowJob is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubWorkflowJob.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubWorkflowJob instead.
const GithubWorkflowRun = WebhookAgenticWorkflowTriggerKindGithubWorkflowRun
GithubWorkflowRun is a deprecated alias for WebhookAgenticWorkflowTriggerKindGithubWorkflowRun.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGithubWorkflowRun instead.
const Gitlab = DarkplaneProviderGitlab
Gitlab is a deprecated alias for DarkplaneProviderGitlab.
Deprecated: since v1.29.0. Use DarkplaneProviderGitlab instead.
const GitlabMergeRequest = WebhookAgenticWorkflowTriggerKindGitlabMergeRequest
GitlabMergeRequest is a deprecated alias for WebhookAgenticWorkflowTriggerKindGitlabMergeRequest.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGitlabMergeRequest instead.
const GitlabNote = WebhookAgenticWorkflowTriggerKindGitlabNote
GitlabNote is a deprecated alias for WebhookAgenticWorkflowTriggerKindGitlabNote.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindGitlabNote instead.
const Gt = SloComparisonOperatorGt
Gt is a deprecated alias for SloComparisonOperatorGt.
Deprecated: since v1.29.0. Use SloComparisonOperatorGt instead.
const Gte = SloComparisonOperatorGte
Gte is a deprecated alias for SloComparisonOperatorGte.
Deprecated: since v1.29.0. Use SloComparisonOperatorGte instead.
const HttpRequestBodyKindForm = Form
HttpRequestBodyKindForm is a deprecated alias for Form.
Deprecated: since v1.16.0. Use Form instead.
const HttpRequestBodyKindGraphql = Graphql
HttpRequestBodyKindGraphql is a deprecated alias for Graphql.
Deprecated: since v1.16.0. Use Graphql instead.
const HttpRequestBodyKindJson = Json
HttpRequestBodyKindJson is a deprecated alias for Json.
Deprecated: since v1.16.0. Use Json instead.
const HttpRequestBodyKindRaw = Raw
HttpRequestBodyKindRaw is a deprecated alias for Raw.
Deprecated: since v1.16.0. Use Raw instead.
const Is = StringAssertionOperatorIs
Is is a deprecated alias for StringAssertionOperatorIs.
Deprecated: since v1.29.0. Use StringAssertionOperatorIs instead.
const IsNot = StringAssertionOperatorIsNot
IsNot is a deprecated alias for StringAssertionOperatorIsNot.
Deprecated: since v1.29.0. Use StringAssertionOperatorIsNot instead.
const IsNotOneOf = StringAssertionOperatorIsNotOneOf
IsNotOneOf is a deprecated alias for StringAssertionOperatorIsNotOneOf.
Deprecated: since v1.29.0. Use StringAssertionOperatorIsNotOneOf instead.
const IsNotSet = StringAssertionOperatorIsNotSet
IsNotSet is a deprecated alias for StringAssertionOperatorIsNotSet.
Deprecated: since v1.29.0. Use StringAssertionOperatorIsNotSet instead.
const IsOneOf = StringAssertionOperatorIsOneOf
IsOneOf is a deprecated alias for StringAssertionOperatorIsOneOf.
Deprecated: since v1.29.0. Use StringAssertionOperatorIsOneOf instead.
const IsSet = StringAssertionOperatorIsSet
IsSet is a deprecated alias for StringAssertionOperatorIsSet.
Deprecated: since v1.29.0. Use StringAssertionOperatorIsSet instead.
const LinearComment = WebhookAgenticWorkflowTriggerKindLinearComment
LinearComment is a deprecated alias for WebhookAgenticWorkflowTriggerKindLinearComment.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindLinearComment instead.
const Logs = ViewTypeLogs
Logs is a deprecated alias for ViewTypeLogs.
Deprecated: since v1.25.0. Use ViewTypeLogs instead.
const Lt = SloComparisonOperatorLt
Lt is a deprecated alias for SloComparisonOperatorLt.
Deprecated: since v1.29.0. Use SloComparisonOperatorLt instead.
const Lte = SloComparisonOperatorLte
Lte is a deprecated alias for SloComparisonOperatorLte.
Deprecated: since v1.29.0. Use SloComparisonOperatorLte instead.
const Manual = WebhookAgenticWorkflowTriggerKindManual
Manual is a deprecated alias for WebhookAgenticWorkflowTriggerKindManual.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindManual instead.
const Matches = StringAssertionOperatorMatches
Matches is a deprecated alias for StringAssertionOperatorMatches.
Deprecated: since v1.29.0. Use StringAssertionOperatorMatches instead.
const Metrics = ViewTypeMetrics
Metrics is a deprecated alias for ViewTypeMetrics.
Deprecated: since v1.25.0. Use ViewTypeMetrics instead.
const N120d = RetentionClassN120d
N120d is a deprecated alias for RetentionClassN120d.
Deprecated: since v1.29.0. Use RetentionClassN120d instead.
const N210d = RetentionClassN210d
N210d is a deprecated alias for RetentionClassN210d.
Deprecated: since v1.29.0. Use RetentionClassN210d instead.
const N30d = RetentionClassN30d
N30d is a deprecated alias for RetentionClassN30d.
Deprecated: since v1.29.0. Use RetentionClassN30d instead.
const N390d = RetentionClassN390d
N390d is a deprecated alias for RetentionClassN390d.
Deprecated: since v1.29.0. Use RetentionClassN390d instead.
const N60d = RetentionClassN60d
N60d is a deprecated alias for RetentionClassN60d.
Deprecated: since v1.29.0. Use RetentionClassN60d instead.
const N90d = RetentionClassN90d
N90d is a deprecated alias for RetentionClassN90d.
Deprecated: since v1.29.0. Use RetentionClassN90d instead.
const Ndjson = WebEventExportFormatNdjson
Ndjson is a deprecated alias for WebEventExportFormatNdjson.
Deprecated: since v1.29.0. Use WebEventExportFormatNdjson instead.
const None = OAuthTokenEndpointAuthMethodNone
None is a deprecated alias for OAuthTokenEndpointAuthMethodNone.
Deprecated: since v1.23.0. Use OAuthTokenEndpointAuthMethodNone instead.
const OAuthCodeChallengeMethodS256 = S256
OAuthCodeChallengeMethodS256 is the prefixed alias for the S256 PKCE code-challenge method (RFC 7636). Prefer this name in user code — the bare S256 survives only for the oapi-codegen-generated constant set.
const OAuthResponseTypeCode = Code
OAuthResponseTypeCode is the prefixed alias for the Code response type (RFC 6749 §4.1). Prefer this name in user code — the bare Code survives only for the oapi-codegen-generated constant set.
const Original = SignalToMetricsTargetDatasetModeOriginal
Original is a deprecated alias for SignalToMetricsTargetDatasetModeOriginal.
Deprecated: since v1.23.0. Use SignalToMetricsTargetDatasetModeOriginal instead.
const Profiles = ViewTypeProfiles
Profiles is a deprecated alias for ViewTypeProfiles.
Deprecated: since v1.25.0. Use ViewTypeProfiles instead.
const Resources = ViewTypeResources
Resources is a deprecated alias for ViewTypeResources.
Deprecated: since v1.25.0. Use ViewTypeResources instead.
const Restricted = DatasetRestrictionRestricted
Restricted is a deprecated alias for DatasetRestrictionRestricted.
Deprecated: since v1.25.0. Use DatasetRestrictionRestricted instead.
const Schedule = WebhookAgenticWorkflowTriggerKindSchedule
Schedule is a deprecated alias for WebhookAgenticWorkflowTriggerKindSchedule.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindSchedule instead.
const Services = ViewTypeServices
Services is a deprecated alias for ViewTypeServices.
Deprecated: since v1.25.0. Use ViewTypeServices instead.
const SignalToMetricsSourceApi = Api
SignalToMetricsSourceApi is a deprecated alias for Api.
Deprecated: since v1.12.0. Use Api instead.
const SignalToMetricsSourceOperator = Operator
SignalToMetricsSourceOperator is a deprecated alias for Operator.
Deprecated: since v1.12.0. Use Operator instead.
const SignalToMetricsSourceTerraform = Terraform
SignalToMetricsSourceTerraform is a deprecated alias for Terraform.
Deprecated: since v1.12.0. Use Terraform instead.
const SignalToMetricsSourceUi = Ui
SignalToMetricsSourceUi is a deprecated alias for Ui.
Deprecated: since v1.12.0. Use Ui instead.
const SlackBotFailedCheckNew = WebhookAgenticWorkflowTriggerKindSlackBotFailedCheckNew
SlackBotFailedCheckNew is a deprecated alias for WebhookAgenticWorkflowTriggerKindSlackBotFailedCheckNew.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindSlackBotFailedCheckNew instead.
const SlackBotMessage = WebhookAgenticWorkflowTriggerKindSlackBotMessage
SlackBotMessage is a deprecated alias for WebhookAgenticWorkflowTriggerKindSlackBotMessage.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindSlackBotMessage instead.
const SlackBotReaction = WebhookAgenticWorkflowTriggerKindSlackBotReaction
SlackBotReaction is a deprecated alias for WebhookAgenticWorkflowTriggerKindSlackBotReaction.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindSlackBotReaction instead.
const Slos = ViewTypeSlos
Slos is a deprecated alias for ViewTypeSlos.
Deprecated: since v1.25.0. Use ViewTypeSlos instead.
const Spans = ViewTypeSpans
Spans is a deprecated alias for ViewTypeSpans.
Deprecated: since v1.25.0. Use ViewTypeSpans instead.
const Spawn = AgenticWorkflowTriggerDeliverySpawn
Spawn is a deprecated alias for AgenticWorkflowTriggerDeliverySpawn.
Deprecated: since v1.23.0. Use AgenticWorkflowTriggerDeliverySpawn instead.
const Sql = ViewTypeSql
Sql is a deprecated alias for ViewTypeSql.
Deprecated: since v1.25.0. Use ViewTypeSql instead.
const StartsWith = StringAssertionOperatorStartsWith
StartsWith is a deprecated alias for StringAssertionOperatorStartsWith.
Deprecated: since v1.29.0. Use StringAssertionOperatorStartsWith instead.
const Success = SloRawTypeSuccess
Success is a deprecated alias for SloRawTypeSuccess.
Deprecated: since v1.23.0. Use SloRawTypeSuccess instead.
const Txt = WebEventExportFormatTxt
Txt is a deprecated alias for WebEventExportFormatTxt.
Deprecated: since v1.29.0. Use WebEventExportFormatTxt instead.
const Unrestricted = DatasetRestrictionUnrestricted
Unrestricted is a deprecated alias for DatasetRestrictionUnrestricted.
Deprecated: since v1.25.0. Use DatasetRestrictionUnrestricted instead.
const V1alpha1 = SpamFilterApiVersionV1alpha1
Deprecated: since v1.12.3. Use SpamFilterApiVersionV1alpha1 instead (the enum value on the wider SpamFilterApiVersion type generated by the current upstream spec).
const V1alpha2 = SpamFilterApiVersionV1Alpha2V1alpha2
V1alpha2 is a deprecated alias for SpamFilterApiVersionV1Alpha2V1alpha2.
Deprecated: since v1.29.0. Use SpamFilterApiVersionV1Alpha2V1alpha2 instead.
const Version = "1.29.0"
Version is the version of the dash0-api-client-go library. Updated automatically by the release workflow.
const WebEvents = ViewTypeWebEvents
WebEvents is a deprecated alias for ViewTypeWebEvents.
Deprecated: since v1.25.0. Use ViewTypeWebEvents instead.
const Webhook = WebhookAgenticWorkflowTriggerKindWebhook
Webhook is a deprecated alias for WebhookAgenticWorkflowTriggerKindWebhook.
Deprecated: since v1.29.0. Use WebhookAgenticWorkflowTriggerKindWebhook instead.
const Yaml = WebEventExportFormatYaml
Yaml is a deprecated alias for WebEventExportFormatYaml.
Deprecated: since v1.29.0. Use WebEventExportFormatYaml instead.
Variables ¶
var ErrAPINotConfigured = errors.New("dash0: API endpoint not configured (use WithApiUrl)")
ErrAPINotConfigured is returned when a REST API method is called on a client created without WithApiUrl.
var ErrOTLPNotConfigured = errors.New("dash0: OTLP endpoint not configured (use WithOtlpEndpoint)")
ErrOTLPNotConfigured is returned when SendTraces, SendMetrics, or SendLogs is called on a client created without WithOtlpEndpoint.
Functions ¶
func AppBaseURL ¶ added in v1.13.0
AppBaseURL derives the Dash0 web app base URL from an API URL.
It takes the registrable domain (the last two labels) of the API host and prefixes "app.". For example "https://api.us-west-2.aws.dash0.com" yields "https://app.dash0.com" and "https://api.dash0-dev.com" yields "https://app.dash0-dev.com". It returns an empty string if the API URL is empty or cannot be parsed into a host with at least two labels.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
fmt.Println(dash0.AppBaseURL("https://api.eu-west-1.aws.dash0.com"))
}
Output: https://app.dash0.com
func ClearAuthTokenID ¶ added in v1.25.0
func ClearAuthTokenID(token *AuthTokenDefinition)
ClearAuthTokenID removes the dash0.com/id label (the server-set UUID) from an auth token definition. A create request must not carry this label.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
token := &dash0.AuthTokenDefinition{}
dash0.SetAuthTokenID(token, "0b9a6a52-1c7c-4a43-9b0e-5d5a8d6f6e11")
dash0.ClearAuthTokenID(token)
fmt.Println(token.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearCheckRuleID ¶ added in v1.6.0
func ClearCheckRuleID(rule *PrometheusAlertRule)
ClearCheckRuleID removes the ID from a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Id: dash0.Ptr("cr-42")}
dash0.ClearCheckRuleID(rule)
fmt.Println(rule.Id == nil)
}
Output: true
func ClearCustomSkillID ¶ added in v1.29.0
func ClearCustomSkillID(skill *SkillDefinition)
ClearCustomSkillID removes the dash0.com/id label from a custom skill.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
dash0.SetCustomSkillID(skill, "skill_01")
dash0.ClearCustomSkillID(skill)
fmt.Println(dash0.GetCustomSkillID(skill) == "")
}
Output: true
func ClearDashboardID ¶ added in v1.6.0
func ClearDashboardID(dashboard *DashboardDefinition)
ClearDashboardID removes the ID from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Dash0Extensions: &dash0.DashboardMetadataExtensions{
Id: dash0.Ptr("d-123"),
},
},
}
dash0.ClearDashboardID(dashboard)
fmt.Println(dashboard.Metadata.Dash0Extensions.Id == nil)
}
Output: true
func ClearDatasetID ¶ added in v1.24.0
func ClearDatasetID(dataset *DatasetDefinition)
ClearDatasetID empties spec.slug and the dash0.com/id label on a dataset definition, which drops the slug from the request. A create then derives the slug from metadata.name, and an update of a missing dataset takes it from the path.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{
Metadata: dash0.DatasetMetadata{Labels: &dash0.DatasetLabels{Dash0Comid: dash0.String("staging")}},
}
dash0.ClearDatasetID(dataset)
fmt.Println(dash0.GetDatasetID(dataset) == "")
}
Output: true
func ClearNotificationChannelID ¶ added in v1.9.0
func ClearNotificationChannelID(channel *NotificationChannelDefinition)
ClearNotificationChannelID removes the ID from a notification channel definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
channel := &dash0.NotificationChannelDefinition{
Metadata: dash0.NotificationChannelMetadata{Name: "Slack Alerts"},
}
dash0.SetNotificationChannelID(channel, "nc-123")
dash0.ClearNotificationChannelID(channel)
fmt.Println(channel.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearPersesDashboardID ¶ added in v1.6.0
func ClearPersesDashboardID(perses *PersesDashboard)
ClearPersesDashboardID removes the dash0.com/id label from a PersesDashboard CRD.
func ClearPrometheusRuleID ¶ added in v1.6.0
func ClearPrometheusRuleID(rule *PrometheusRules)
ClearPrometheusRuleID removes the dash0.com/id label from a PrometheusRules CRD.
func ClearRecordingRuleID ¶ added in v1.10.0
func ClearRecordingRuleID(rule *RecordingRule)
ClearRecordingRuleID removes the ID from a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
labels := map[string]string{"dash0.com/id": "rr-42"}
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Labels: &labels},
}
dash0.ClearRecordingRuleID(rule)
fmt.Println(dash0.GetRecordingRuleID(rule) == "")
}
Output: true
func ClearSLOID ¶ added in v1.18.0
func ClearSLOID(slo *SloDefinition)
ClearSLOID removes the ID from an SLO definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{Dash0Comid: dash0.Ptr("slo_01k5vpx97efdnrkqan15b41k84")},
},
}
dash0.ClearSLOID(slo)
fmt.Println(slo.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearSamplingRuleID ¶ added in v1.28.0
func ClearSamplingRuleID(rule *SamplingDefinition)
ClearSamplingRuleID removes the ID from a sampling rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{
Labels: &dash0.SamplingLabels{Dash0Comid: dash0.Ptr("sr-123")},
},
}
dash0.ClearSamplingRuleID(rule)
fmt.Println(rule.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearSignalToMetricsID ¶ added in v1.23.0
func ClearSignalToMetricsID(rule *SignalToMetricsDefinition)
ClearSignalToMetricsID removes the ID from a signal-to-metrics rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{
Labels: &dash0.SignalToMetricsLabels{Dash0Comid: dash0.Ptr("s2m-123")},
},
}
dash0.ClearSignalToMetricsID(rule)
fmt.Println(rule.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearSpamFilterID ¶ added in v1.12.0
func ClearSpamFilterID(filter *SpamFilter)
ClearSpamFilterID removes the ID from a v1alpha1 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("sf-123")},
},
}
dash0.ClearSpamFilterID(filter)
fmt.Println(filter.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearSpamFilterV1Alpha2ID ¶ added in v1.28.0
func ClearSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2)
ClearSpamFilterV1Alpha2ID removes the ID from a v1alpha2 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("sf-123")},
},
}
dash0.ClearSpamFilterV1Alpha2ID(filter)
fmt.Println(filter.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearSyntheticCheckID ¶ added in v1.6.0
func ClearSyntheticCheckID(check *SyntheticCheckDefinition)
ClearSyntheticCheckID removes the ID from a synthetic check definition.
func ClearTeamID ¶ added in v1.17.0
func ClearTeamID(team *TeamDefinitionV1Alpha1)
ClearTeamID removes the dash0.com/id label from a team definition. No-op when the team is nil or has no labels.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{
Labels: &dash0.TeamLabels{Dash0Comid: dash0.Ptr("00000000-0000-0000-0000-000000000001")},
},
}
dash0.ClearTeamID(team)
fmt.Println(team.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearTimeSeriesAggregationID ¶ added in v1.22.0
func ClearTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition)
ClearTimeSeriesAggregationID removes the ID from a time series aggregation definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{
Labels: &dash0.TimeSeriesAggregationLabels{Dash0Comid: dash0.Ptr("tsa-123")},
},
}
dash0.ClearTimeSeriesAggregationID(aggregation)
fmt.Println(aggregation.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func ClearViewID ¶ added in v1.6.0
func ClearViewID(view *ViewDefinition)
ClearViewID removes the ID from a view definition.
func DatasetPtr ¶ added in v1.6.0
DatasetPtr converts a dataset string to a pointer, returning nil for empty strings and for "default" (the API uses "default" implicitly when no dataset parameter is sent).
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Returns nil for "default" — the API treats absent dataset as "default".
p := dash0.DatasetPtr("default")
fmt.Println(p)
}
Output: <nil>
Example (NonDefault) ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
p := dash0.DatasetPtr("production")
fmt.Println(*p)
}
Output: production
func DeeplinkURL ¶ added in v1.13.0
func DeeplinkURL(apiURL string, assetType DeeplinkAssetType, assetID string, dataset *string) string
DeeplinkURL constructs a Dash0 web app deep link for the given asset type and ID, derived from the API URL (see AppBaseURL).
When dataset is non-nil and non-empty, a `dataset=<dataset>` query parameter is appended so the web app opens the page scoped to that dataset. Org-level assets (team, member, notification channel) do not live in a dataset; pass nil for those.
It returns an empty string if the API URL cannot be parsed or the asset type is not supported. For views, prefer ViewDeeplinkURL, which selects the correct page based on the view type.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
fmt.Println(dash0.DeeplinkURL("https://api.us-west-2.aws.dash0.com", dash0.DeeplinkAssetTypeDashboard, "abc-123", dash0.Ptr("production")))
}
Output: https://app.dash0.com/goto/dashboards?dashboard_id=abc-123&dataset=production
func FailedChecksExplorerURL ¶ added in v1.16.0
func FailedChecksExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
FailedChecksExplorerURL builds a deep link to the Dash0 alerting failed checks view. The URL includes optional filter criteria, time range, and optional dataset as query parameters. It returns an empty string if the API URL is empty or cannot be parsed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filters := []dash0.DeeplinkFilter{{Key: "priority", Operator: "is", Value: "p1"}}
fmt.Println(dash0.FailedChecksExplorerURL("https://api.us-west-2.aws.dash0.com", filters, "now-1h", "now", dash0.Ptr("production")))
}
Output: https://app.dash0.com/goto/alerting/failed-checks?dataset=production&filter=%5B%7B%22key%22%3A%22priority%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%22p1%22%7D%5D&from=now-1h&to=now
func Float64Value ¶
Float64Value returns the value of a float64 pointer, or 0 if nil.
func FormatDuration ¶ added in v1.6.0
FormatDuration formats a time.Duration as a compact Prometheus-style duration string (e.g., "2m" instead of Go's "2m0s").
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
fmt.Println(dash0.FormatDuration(5 * 60e9)) // 5 minutes
fmt.Println(dash0.FormatDuration(90e9)) // 1m30s
fmt.Println(dash0.FormatDuration(2 * 3600e9)) // 2 hours
}
Output: 5m 1m30s 2h
func GenerateOAuthState ¶ added in v1.15.0
GenerateOAuthState returns a fresh opaque value suitable for the OAuth `state` parameter (RFC 6749 §10.12). 43 base64url characters, no padding.
Example ¶
package main
import (
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
state, err := dash0.GenerateOAuthState()
if err != nil {
log.Fatal(err)
}
// base64url(32 random bytes) without padding — 43 chars.
fmt.Println(len(state))
}
Output: 43
func GetAuthTokenID ¶ added in v1.25.0
func GetAuthTokenID(token *AuthTokenResponseDefinition) string
GetAuthTokenID extracts the dash0.com/id label from an auth token response. The label is the server-set UUID, not the client-settable dash0.com/origin. It returns an empty string when the label is not set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
request := &dash0.AuthTokenDefinition{}
dash0.SetAuthTokenID(request, "0b9a6a52-1c7c-4a43-9b0e-5d5a8d6f6e11")
response := &dash0.AuthTokenResponseDefinition{Metadata: request.Metadata}
fmt.Println(dash0.GetAuthTokenID(response))
}
Output: 0b9a6a52-1c7c-4a43-9b0e-5d5a8d6f6e11
func GetAuthTokenName ¶ added in v1.25.0
func GetAuthTokenName(token *AuthTokenResponseDefinition) string
GetAuthTokenName extracts the name from an auth token response.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
token := &dash0.AuthTokenResponseDefinition{Metadata: dash0.AuthTokenMetadata{Name: "ci"}}
fmt.Println(dash0.GetAuthTokenName(token))
}
Output: ci
func GetAwsMetricScrapeConfigID ¶ added in v1.28.0
func GetAwsMetricScrapeConfigID(cfg *AwsMetricScrapeConfigDefinition) string
GetAwsMetricScrapeConfigID returns the dash0.com/id label of an AWS metric scrape config, or "" if absent. The ID is the ID of the AWS integration the config belongs to. There are no Set or Clear ID helpers, because the integration ID is taken from the request path and cannot be chosen by clients.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
cfg := &dash0.AwsMetricScrapeConfigDefinition{
Metadata: dash0.AwsMetricScrapeConfigMetadata{
Labels: &dash0.AwsMetricScrapeConfigLabels{Dash0Comid: dash0.Ptr("491cb653-954b-4d0b-a84c-4b426b562938")},
},
}
fmt.Println(dash0.GetAwsMetricScrapeConfigID(cfg))
}
Output: 491cb653-954b-4d0b-a84c-4b426b562938
func GetAwsMetricScrapeConfigName ¶ added in v1.28.0
func GetAwsMetricScrapeConfigName(cfg *AwsMetricScrapeConfigDefinition) string
GetAwsMetricScrapeConfigName returns the metadata.name of an AWS metric scrape config, or "" if absent. The server sets it to the display name of the AWS integration and ignores it on write.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
cfg := &dash0.AwsMetricScrapeConfigDefinition{
Metadata: dash0.AwsMetricScrapeConfigMetadata{Name: dash0.Ptr("prod-account")},
}
fmt.Println(dash0.GetAwsMetricScrapeConfigName(cfg))
}
Output: prod-account
func GetAwsMetricScrapeConfigOrigin ¶ added in v1.28.0
func GetAwsMetricScrapeConfigOrigin(cfg *AwsMetricScrapeConfigDefinition) string
GetAwsMetricScrapeConfigOrigin returns the dash0.com/origin label of an AWS metric scrape config, or "" if absent.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
cfg := &dash0.AwsMetricScrapeConfigDefinition{
Metadata: dash0.AwsMetricScrapeConfigMetadata{
Labels: &dash0.AwsMetricScrapeConfigLabels{Dash0Comorigin: dash0.Ptr("tf_my-config")},
},
}
fmt.Println(dash0.GetAwsMetricScrapeConfigOrigin(cfg))
}
Output: tf_my-config
func GetCheckRuleDataset ¶ added in v1.6.0
func GetCheckRuleDataset(rule *PrometheusAlertRule) string
GetCheckRuleDataset extracts the dataset from a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Dataset: dash0.Ptr("production")}
fmt.Println(dash0.GetCheckRuleDataset(rule))
}
Output: production
func GetCheckRuleID ¶ added in v1.6.0
func GetCheckRuleID(rule *PrometheusAlertRule) string
GetCheckRuleID extracts the ID from a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Id: dash0.Ptr("cr-42")}
fmt.Println(dash0.GetCheckRuleID(rule))
}
Output: cr-42
func GetCheckRuleName ¶ added in v1.6.0
func GetCheckRuleName(rule *PrometheusAlertRule) string
GetCheckRuleName extracts the name from a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Name: "HighErrorRate"}
fmt.Println(dash0.GetCheckRuleName(rule))
}
Output: HighErrorRate
func GetCustomSkillID ¶ added in v1.29.0
func GetCustomSkillID(skill *SkillDefinition) string
GetCustomSkillID extracts the dash0.com/id label from a custom skill.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
dash0.SetCustomSkillID(skill, "skill_01")
fmt.Println(dash0.GetCustomSkillID(skill))
}
Output: skill_01
func GetCustomSkillName ¶ added in v1.29.0
func GetCustomSkillName(skill *SkillDefinition) string
GetCustomSkillName extracts the name of a custom skill. The server derives it from the SKILL.md frontmatter, so it is empty on a skill that was not read from the API.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{Metadata: dash0.SkillMetadata{Name: dash0.Ptr("incident-response")}}
fmt.Println(dash0.GetCustomSkillName(skill))
}
Output: incident-response
func GetCustomSkillOrigin ¶ added in v1.29.0
func GetCustomSkillOrigin(skill *SkillDefinition) string
GetCustomSkillOrigin extracts the dash0.com/origin label from a custom skill.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
fmt.Printf("%q\n", dash0.GetCustomSkillOrigin(skill))
dash0.SetCustomSkillOrigin(skill, "tf_incident-response")
fmt.Println(dash0.GetCustomSkillOrigin(skill))
}
Output: "" tf_incident-response
func GetDashboardDataset ¶ added in v1.6.0
func GetDashboardDataset(dashboard *DashboardDefinition) string
GetDashboardDataset extracts the dataset from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Dash0Extensions: &dash0.DashboardMetadataExtensions{
Dataset: dash0.Ptr("production"),
},
},
}
fmt.Println(dash0.GetDashboardDataset(dashboard))
}
Output: production
func GetDashboardFolderPath ¶ added in v1.6.0
func GetDashboardFolderPath(dashboard *DashboardDefinition) string
GetDashboardFolderPath extracts the folder path from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Annotations: &dash0.DashboardAnnotations{
Dash0ComfolderPath: dash0.Ptr("/team/sre"),
},
},
}
fmt.Println(dash0.GetDashboardFolderPath(dashboard))
}
Output: /team/sre
func GetDashboardID ¶ added in v1.6.0
func GetDashboardID(dashboard *DashboardDefinition) string
GetDashboardID extracts the ID from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Dash0Extensions: &dash0.DashboardMetadataExtensions{
Id: dash0.Ptr("d-123"),
},
},
}
fmt.Println(dash0.GetDashboardID(dashboard))
}
Output: d-123
func GetDashboardName ¶ added in v1.6.0
func GetDashboardName(dashboard *DashboardDefinition) string
GetDashboardName extracts the display name from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Spec: map[string]any{
"display": map[string]any{"name": "API Latency"},
},
}
fmt.Println(dash0.GetDashboardName(dashboard))
}
Output: API Latency
func GetDatasetID ¶ added in v1.24.0
func GetDatasetID(dataset *DatasetDefinition) string
GetDatasetID extracts the slug from a dataset definition. It prefers spec.slug and falls back to the dash0.com/id label.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{
Metadata: dash0.DatasetMetadata{Labels: &dash0.DatasetLabels{Dash0Comid: dash0.String("staging")}},
}
fmt.Println(dash0.GetDatasetID(dataset))
}
Output: staging
func GetDatasetName ¶ added in v1.24.0
func GetDatasetName(dataset *DatasetDefinition) string
GetDatasetName extracts the name from a dataset definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{Metadata: dash0.DatasetMetadata{Name: "Staging"}}
fmt.Println(dash0.GetDatasetName(dataset))
}
Output: Staging
func GetNotificationChannelID ¶ added in v1.9.0
func GetNotificationChannelID(channel *NotificationChannelDefinition) string
GetNotificationChannelID extracts the ID from a notification channel definition.
func GetNotificationChannelName ¶ added in v1.9.0
func GetNotificationChannelName(channel *NotificationChannelDefinition) string
GetNotificationChannelName extracts the display name from a notification channel definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
channel := &dash0.NotificationChannelDefinition{
Metadata: dash0.NotificationChannelMetadata{Name: "Slack Alerts"},
}
fmt.Println(dash0.GetNotificationChannelName(channel))
}
Output: Slack Alerts
func GetNotificationChannelOrigin ¶ added in v1.9.0
func GetNotificationChannelOrigin(channel *NotificationChannelDefinition) string
GetNotificationChannelOrigin extracts the origin from a notification channel definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
channel := &dash0.NotificationChannelDefinition{
Metadata: dash0.NotificationChannelMetadata{
Labels: &dash0.NotificationChannelLabels{Dash0Comorigin: dash0.Ptr("terraform")},
},
}
fmt.Println(dash0.GetNotificationChannelOrigin(channel))
}
Output: terraform
func GetPersesDashboardDataset ¶ added in v1.6.0
func GetPersesDashboardDataset(perses *PersesDashboard) string
GetPersesDashboardDataset returns the dash0.com/dataset label value if present.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
perses := &dash0.PersesDashboard{
Metadata: dash0.PersesDashboardMetadata{
Labels: map[string]string{"dash0.com/dataset": "production"},
},
}
fmt.Println(dash0.GetPersesDashboardDataset(perses))
}
Output: production
func GetPersesDashboardFolderPath ¶ added in v1.6.0
func GetPersesDashboardFolderPath(perses *PersesDashboard) string
GetPersesDashboardFolderPath returns the dash0.com/folder-path annotation value if present.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
perses := &dash0.PersesDashboard{
Metadata: dash0.PersesDashboardMetadata{
Annotations: map[string]string{dash0.AnnotationFolderPath: "/team/sre"},
},
}
fmt.Println(dash0.GetPersesDashboardFolderPath(perses))
}
Output: /team/sre
func GetPersesDashboardID ¶ added in v1.6.0
func GetPersesDashboardID(perses *PersesDashboard) string
GetPersesDashboardID returns the dash0.com/id label value if present.
func GetPersesDashboardName ¶ added in v1.6.0
func GetPersesDashboardName(perses *PersesDashboard) string
GetPersesDashboardName returns the display name from the Perses spec, falling back to metadata.name.
func GetPrometheusRuleDataset ¶ added in v1.6.0
func GetPrometheusRuleDataset(rule *PrometheusRules) string
GetPrometheusRuleDataset extracts the dataset from a PrometheusRules definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusRules{
Metadata: dash0.PrometheusRulesMetadata{
Labels: map[string]string{"dash0.com/dataset": "production"},
},
}
fmt.Println(dash0.GetPrometheusRuleDataset(rule))
}
Output: production
func GetPrometheusRuleID ¶ added in v1.6.0
func GetPrometheusRuleID(rule *PrometheusRules) string
GetPrometheusRuleID extracts the ID from a PrometheusRules definition.
func GetPrometheusRuleName ¶ added in v1.6.0
func GetPrometheusRuleName(rule *PrometheusRules) string
GetPrometheusRuleName extracts the name from a PrometheusRules definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusRules{
Metadata: dash0.PrometheusRulesMetadata{Name: "my-rules"},
}
fmt.Println(dash0.GetPrometheusRuleName(rule))
}
Output: my-rules
func GetRecordingRuleDataset ¶ added in v1.10.0
func GetRecordingRuleDataset(rule *RecordingRule) string
GetRecordingRuleDataset extracts the dataset from a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
labels := map[string]string{"dash0.com/dataset": "production"}
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Labels: &labels},
}
fmt.Println(dash0.GetRecordingRuleDataset(rule))
}
Output: production
func GetRecordingRuleID ¶ added in v1.10.0
func GetRecordingRuleID(rule *RecordingRule) string
GetRecordingRuleID extracts the ID from a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
labels := map[string]string{"dash0.com/id": "rr-42"}
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Labels: &labels},
}
fmt.Println(dash0.GetRecordingRuleID(rule))
}
Output: rr-42
func GetRecordingRuleName ¶ added in v1.10.0
func GetRecordingRuleName(rule *RecordingRule) string
GetRecordingRuleName extracts the name from a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Name: "cpu-usage-rules"},
}
fmt.Println(dash0.GetRecordingRuleName(rule))
}
Output: cpu-usage-rules
func GetSLODataset ¶ added in v1.18.0
func GetSLODataset(slo *SloDefinition) string
GetSLODataset extracts the dataset from an SLO definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{Dash0Comdataset: dash0.Ptr("default")},
},
}
fmt.Println(dash0.GetSLODataset(slo))
}
Output: default
func GetSLOID ¶ added in v1.18.0
func GetSLOID(slo *SloDefinition) string
GetSLOID extracts the ID from an SLO definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{Dash0Comid: dash0.Ptr("slo_01k5vpx97efdnrkqan15b41k84")},
},
}
fmt.Println(dash0.GetSLOID(slo))
}
Output: slo_01k5vpx97efdnrkqan15b41k84
func GetSLOName ¶ added in v1.18.0
func GetSLOName(slo *SloDefinition) string
GetSLOName extracts the display name from an SLO definition, reading the dash0.com/display-name annotation and falling back to metadata.name when it is not set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Name: "checkout-availability",
Annotations: &dash0.SloAnnotations{
AdditionalProperties: map[string]string{"dash0.com/display-name": "Checkout availability"},
},
},
}
fmt.Println(dash0.GetSLOName(slo))
}
Output: Checkout availability
func GetSLOOrigin ¶ added in v1.19.0
func GetSLOOrigin(slo *SloDefinition) string
GetSLOOrigin extracts the dash0.com/origin label from an SLO definition. Returns the empty string when the SLO is nil, has no labels, or the label is unset.
SLO ids are server-assigned, so origin is the only identifier a hand-authored document can pin, and it doubles as the upsert key.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{Dash0Comorigin: dash0.Ptr("tf_6f2a1c8e-3b47-4d90-a1e5-9c73b0d84f21")},
},
}
fmt.Println(dash0.GetSLOOrigin(slo))
}
Output: tf_6f2a1c8e-3b47-4d90-a1e5-9c73b0d84f21
func GetSamplingRuleDataset ¶ added in v1.28.0
func GetSamplingRuleDataset(rule *SamplingDefinition) string
GetSamplingRuleDataset extracts the dataset from a sampling rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{
Labels: &dash0.SamplingLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetSamplingRuleDataset(rule))
}
Output: production
func GetSamplingRuleID ¶ added in v1.28.0
func GetSamplingRuleID(rule *SamplingDefinition) string
GetSamplingRuleID extracts the ID from a sampling rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{
Labels: &dash0.SamplingLabels{Dash0Comid: dash0.Ptr("sr-123")},
},
}
fmt.Println(dash0.GetSamplingRuleID(rule))
}
Output: sr-123
func GetSamplingRuleName ¶ added in v1.28.0
func GetSamplingRuleName(rule *SamplingDefinition) string
GetSamplingRuleName extracts the display name from a sampling rule. It falls back to metadata.name when the display block is absent or its name is empty.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Spec: dash0.SamplingSpec{
Display: &dash0.SamplingDisplay{Name: "Keep error traces"},
},
}
fmt.Println(dash0.GetSamplingRuleName(rule))
}
Output: Keep error traces
Example (Fallback) ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Falls back to metadata.name when the spec carries no display block.
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{Name: "keep-errors"},
}
fmt.Println(dash0.GetSamplingRuleName(rule))
}
Output: keep-errors
func GetSignalToMetricsDataset ¶ added in v1.23.0
func GetSignalToMetricsDataset(rule *SignalToMetricsDefinition) string
GetSignalToMetricsDataset extracts the dataset from a signal-to-metrics rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{
Labels: &dash0.SignalToMetricsLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetSignalToMetricsDataset(rule))
}
Output: production
func GetSignalToMetricsID ¶ added in v1.23.0
func GetSignalToMetricsID(rule *SignalToMetricsDefinition) string
GetSignalToMetricsID extracts the ID from a signal-to-metrics rule.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{
Labels: &dash0.SignalToMetricsLabels{Dash0Comid: dash0.Ptr("s2m-123")},
},
}
fmt.Println(dash0.GetSignalToMetricsID(rule))
}
Output: s2m-123
func GetSignalToMetricsName ¶ added in v1.23.0
func GetSignalToMetricsName(rule *SignalToMetricsDefinition) string
GetSignalToMetricsName extracts the display name from a signal-to-metrics rule. It falls back to metadata.name when the display name is empty.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Spec: dash0.SignalToMetricsSpec{
Display: dash0.SignalToMetricsDisplay{Name: "Checkout span count"},
},
}
fmt.Println(dash0.GetSignalToMetricsName(rule))
}
Output: Checkout span count
Example (Fallback) ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Falls back to metadata.name when the display name is empty.
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{Name: "checkout-span-count"},
}
fmt.Println(dash0.GetSignalToMetricsName(rule))
}
Output: checkout-span-count
func GetSpamFilterDataset ¶ added in v1.12.0
func GetSpamFilterDataset(filter *SpamFilter) string
GetSpamFilterDataset extracts the dataset label from a v1alpha1 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetSpamFilterDataset(filter))
}
Output: production
func GetSpamFilterID ¶ added in v1.12.0
func GetSpamFilterID(filter *SpamFilter) string
GetSpamFilterID extracts the ID from a v1alpha1 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("sf-123")},
},
}
fmt.Println(dash0.GetSpamFilterID(filter))
}
Output: sf-123
func GetSpamFilterName ¶ added in v1.12.0
func GetSpamFilterName(filter *SpamFilter) string
GetSpamFilterName extracts the name from a v1alpha1 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{Name: "Drop noisy health checks"},
}
fmt.Println(dash0.GetSpamFilterName(filter))
}
Output: Drop noisy health checks
func GetSpamFilterV1Alpha2Dataset ¶ added in v1.28.0
func GetSpamFilterV1Alpha2Dataset(filter *SpamFilterV1Alpha2) string
GetSpamFilterV1Alpha2Dataset extracts the dataset label from a v1alpha2 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetSpamFilterV1Alpha2Dataset(filter))
}
Output: production
func GetSpamFilterV1Alpha2ID ¶ added in v1.28.0
func GetSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2) string
GetSpamFilterV1Alpha2ID extracts the ID from a v1alpha2 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("sf-123")},
},
}
fmt.Println(dash0.GetSpamFilterV1Alpha2ID(filter))
}
Output: sf-123
func GetSpamFilterV1Alpha2Name ¶ added in v1.28.0
func GetSpamFilterV1Alpha2Name(filter *SpamFilterV1Alpha2) string
GetSpamFilterV1Alpha2Name extracts the name from a v1alpha2 spam filter.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{Name: "Drop noisy health checks"},
}
fmt.Println(dash0.GetSpamFilterV1Alpha2Name(filter))
}
Output: Drop noisy health checks
func GetSyntheticCheckDataset ¶ added in v1.6.0
func GetSyntheticCheckDataset(check *SyntheticCheckDefinition) string
GetSyntheticCheckDataset extracts the dataset from a synthetic check definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
check := &dash0.SyntheticCheckDefinition{
Metadata: dash0.SyntheticCheckMetadata{
Labels: &dash0.SyntheticCheckLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetSyntheticCheckDataset(check))
}
Output: production
func GetSyntheticCheckID ¶ added in v1.6.0
func GetSyntheticCheckID(check *SyntheticCheckDefinition) string
GetSyntheticCheckID extracts the ID from a synthetic check definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
check := &dash0.SyntheticCheckDefinition{
Metadata: dash0.SyntheticCheckMetadata{
Labels: &dash0.SyntheticCheckLabels{Dash0Comid: dash0.Ptr("sc-7")},
},
}
fmt.Println(dash0.GetSyntheticCheckID(check))
}
Output: sc-7
func GetSyntheticCheckName ¶ added in v1.6.0
func GetSyntheticCheckName(check *SyntheticCheckDefinition) string
GetSyntheticCheckName extracts the display name from a synthetic check definition, falling back to metadata.name if no display name is set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
check := &dash0.SyntheticCheckDefinition{
Spec: dash0.SyntheticCheckSpec{
Display: &dash0.SyntheticCheckDisplay{Name: "Homepage Ping"},
},
}
fmt.Println(dash0.GetSyntheticCheckName(check))
}
Output: Homepage Ping
func GetTeamDisplayName ¶ added in v1.17.0
func GetTeamDisplayName(team *TeamDefinitionV1Alpha1) string
GetTeamDisplayName extracts the spec.display.name (human-facing name) from a team definition. Returns the empty string when the team is nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Spec: dash0.TeamSpec{Display: dash0.TeamDisplay{Name: "Backend Team"}},
}
fmt.Println(dash0.GetTeamDisplayName(team))
}
Output: Backend Team
func GetTeamID ¶ added in v1.17.0
func GetTeamID(team *TeamDefinitionV1Alpha1) string
GetTeamID extracts the dash0.com/id label from a team definition. Returns the empty string when the team is nil, has no labels, or the label is unset.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{
Labels: &dash0.TeamLabels{Dash0Comid: dash0.Ptr("00000000-0000-0000-0000-000000000001")},
},
}
fmt.Println(dash0.GetTeamID(team))
}
Output: 00000000-0000-0000-0000-000000000001
func GetTeamName ¶ added in v1.17.0
func GetTeamName(team *TeamDefinitionV1Alpha1) string
GetTeamName extracts the metadata.name (technical name) from a team definition. Returns the empty string when the team is nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{Name: "backend-team"},
}
fmt.Println(dash0.GetTeamName(team))
}
Output: backend-team
func GetTeamOrigin ¶ added in v1.17.0
func GetTeamOrigin(team *TeamDefinitionV1Alpha1) string
GetTeamOrigin extracts the dash0.com/origin label from a team definition. Returns the empty string when the team is nil, has no labels, or the label is unset.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{
Labels: &dash0.TeamLabels{Dash0Comorigin: dash0.Ptr("tf_backend")},
},
}
fmt.Println(dash0.GetTeamOrigin(team))
}
Output: tf_backend
func GetTimeSeriesAggregationDataset ¶ added in v1.22.0
func GetTimeSeriesAggregationDataset(aggregation *TimeSeriesAggregationDefinition) string
GetTimeSeriesAggregationDataset extracts the dataset from a time series aggregation definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{
Labels: &dash0.TimeSeriesAggregationLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetTimeSeriesAggregationDataset(aggregation))
}
Output: production
func GetTimeSeriesAggregationID ¶ added in v1.22.0
func GetTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition) string
GetTimeSeriesAggregationID extracts the ID from a time series aggregation definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{
Labels: &dash0.TimeSeriesAggregationLabels{Dash0Comid: dash0.Ptr("tsa-123")},
},
}
fmt.Println(dash0.GetTimeSeriesAggregationID(aggregation))
}
Output: tsa-123
func GetTimeSeriesAggregationName ¶ added in v1.22.0
func GetTimeSeriesAggregationName(aggregation *TimeSeriesAggregationDefinition) string
GetTimeSeriesAggregationName extracts the display name from a time series aggregation definition. It falls back to metadata.name when the display block is absent or its name is empty.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Spec: dash0.TimeSeriesAggregationSpec{
Display: &dash0.TimeSeriesAggregationDisplay{Name: "HTTP request duration rollup"},
},
}
fmt.Println(dash0.GetTimeSeriesAggregationName(aggregation))
}
Output: HTTP request duration rollup
Example (Fallback) ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Falls back to metadata.name when the spec carries no display block.
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{Name: "http-request-duration-rollup"},
}
fmt.Println(dash0.GetTimeSeriesAggregationName(aggregation))
}
Output: http-request-duration-rollup
func GetViewDataset ¶ added in v1.6.0
func GetViewDataset(view *ViewDefinition) string
GetViewDataset extracts the dataset from a view definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
view := &dash0.ViewDefinition{
Metadata: dash0.ViewMetadata{
Labels: &dash0.ViewLabels{Dash0Comdataset: dash0.Ptr("production")},
},
}
fmt.Println(dash0.GetViewDataset(view))
}
Output: production
func GetViewID ¶ added in v1.6.0
func GetViewID(view *ViewDefinition) string
GetViewID extracts the ID from a view definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
view := &dash0.ViewDefinition{
Metadata: dash0.ViewMetadata{
Labels: &dash0.ViewLabels{Dash0Comid: dash0.Ptr("v-99")},
},
}
fmt.Println(dash0.GetViewID(view))
}
Output: v-99
func GetViewName ¶ added in v1.6.0
func GetViewName(view *ViewDefinition) string
GetViewName extracts the display name from a view definition, falling back to metadata.name if the display name is empty.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
view := &dash0.ViewDefinition{
Spec: dash0.ViewSpec{Display: dash0.ViewDisplay{Name: "Error Logs"}},
}
fmt.Println(dash0.GetViewName(view))
}
Output: Error Logs
Example (Fallback) ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Falls back to metadata.name when no display name is set.
view := &dash0.ViewDefinition{
Metadata: dash0.ViewMetadata{Name: "error-logs"},
}
fmt.Println(dash0.GetViewName(view))
}
Output: error-logs
func Int64Value ¶
Int64Value returns the value of an int64 pointer, or 0 if nil.
func IsBadRequest ¶
IsBadRequest returns true if the error is a 400 Bad Request.
func IsConflict ¶
IsConflict returns true if the error is a 409 Conflict.
func IsForbidden ¶
IsForbidden returns true if the error is a 403 Forbidden.
func IsNotFound ¶
IsNotFound returns true if the error is a 404 Not Found.
func IsOAuthInvalidGrant ¶ added in v1.15.0
IsOAuthInvalidGrant returns true if the error is an *OAuthTokenError whose Code is "invalid_grant". This is the OAuth 2.0 signal that the refresh token is no longer accepted by the authorization server (rotated, revoked, expired, or the user's session was terminated) and the caller must initiate a fresh interactive login. See RFC 6749 §5.2.
Note: IsOAuthInvalidGrant is the narrow predicate for the single "invalid_grant" code. Callers that want the broader "should I prompt for re-authentication?" check should use IsOAuthTerminalError, which also covers "invalid_client" and "unauthorized_client" — codes the library itself treats as terminal for the stored credential.
Example ¶
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"net/http/httptest"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusBadRequest)
_ = json.NewEncoder(w).Encode(map[string]string{
"error": "invalid_grant",
"error_description": "refresh token revoked",
})
}))
defer server.Close()
client, err := dash0.NewOAuthClient(dash0.WithApiUrl(server.URL))
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
_, err = client.ExchangeToken(context.Background(), &dash0.OAuthTokenRequest{
GrantType: dash0.OAuthGrantTypeRefreshToken,
RefreshToken: dash0.Ptr("dash0_rt_revoked"),
ClientId: dash0.Ptr("my-client"),
})
fmt.Println(dash0.IsOAuthInvalidGrant(err))
}
Output: true
func IsOAuthTerminalError ¶ added in v1.15.0
IsOAuthTerminalError reports whether err carries an *OAuthTokenError whose Code identifies a terminal credential rejection. A terminal rejection means the stored credential is no longer accepted by the authorization server and the caller must initiate a fresh interactive login; no amount of retry, refresh, or back-off will recover the session. The current terminal set per RFC 6749 §5.2 is "invalid_grant", "invalid_client", and "unauthorized_client".
This is the predicate the github.com/dash0hq/dash0-api-client-go/profiles package uses to decide when to clear stored OAuth state from disk; callers driving a login UI should align with the same set so the UI prompt matches the library's recovery model.
Example ¶
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"net/http/httptest"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusBadRequest)
_ = json.NewEncoder(w).Encode(map[string]string{
"error": "invalid_client",
"error_description": "client deleted server-side",
})
}))
defer server.Close()
client, err := dash0.NewOAuthClient(dash0.WithApiUrl(server.URL))
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
_, err = client.ExchangeToken(context.Background(), &dash0.OAuthTokenRequest{
GrantType: dash0.OAuthGrantTypeRefreshToken,
RefreshToken: dash0.Ptr("dash0_rt_orphaned"),
ClientId: dash0.Ptr("deleted-client"),
})
// IsOAuthTerminalError covers invalid_grant, invalid_client, and
// unauthorized_client — any "the IdP will not accept this credential
// again" signal that warrants a fresh interactive login.
fmt.Println(dash0.IsOAuthTerminalError(err))
}
Output: true
func IsOAuthTokenError ¶ added in v1.15.0
IsOAuthTokenError returns true if the error is an OAuthTokenError.
Example ¶
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"net/http/httptest"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusBadRequest)
_ = json.NewEncoder(w).Encode(map[string]string{
"error": "invalid_grant",
"error_description": "authorization code has expired",
})
}))
defer server.Close()
client, err := dash0.NewOAuthClient(dash0.WithApiUrl(server.URL))
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
_, err = client.ExchangeToken(context.Background(), &dash0.OAuthTokenRequest{
GrantType: dash0.OAuthGrantTypeAuthorizationCode,
Code: dash0.Ptr("expired"),
ClientId: dash0.Ptr("my-client"),
})
fmt.Println(dash0.IsOAuthTokenError(err))
}
Output: true
func IsRateLimited ¶
IsRateLimited returns true if the error is a 429 Too Many Requests.
func IsServerError ¶
IsServerError returns true if the error is a 5xx server error.
func IsUnauthorized ¶
IsUnauthorized returns true if the error is a 401 Unauthorized.
func LogsExplorerURL ¶ added in v1.13.0
func LogsExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
LogsExplorerURL builds a deep link to the Dash0 logs explorer. The URL includes filter criteria, time range, and optional dataset as query parameters. It returns an empty string if the API URL is empty or cannot be parsed.
func NewDeleteApiAgent0CustomSkillsOriginOrIdRequest ¶ added in v1.29.0
func NewDeleteApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
NewDeleteApiAgent0CustomSkillsOriginOrIdRequest constructs an http.Request for the DeleteApiAgent0CustomSkillsOriginOrId method
func NewDeleteApiAgenticWorkflowsOriginOrIdRequest ¶ added in v1.17.0
func NewDeleteApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, params *DeleteApiAgenticWorkflowsOriginOrIdParams) (*http.Request, error)
NewDeleteApiAgenticWorkflowsOriginOrIdRequest constructs an http.Request for the DeleteApiAgenticWorkflowsOriginOrId method
func NewDeleteApiAlertingCheckRulesOriginOrIdRequest ¶
func NewDeleteApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, params *DeleteApiAlertingCheckRulesOriginOrIdParams) (*http.Request, error)
NewDeleteApiAlertingCheckRulesOriginOrIdRequest constructs an http.Request for the DeleteApiAlertingCheckRulesOriginOrId method
func NewDeleteApiAuthTokensOriginOrIdRequest ¶ added in v1.25.0
func NewDeleteApiAuthTokensOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
NewDeleteApiAuthTokensOriginOrIdRequest constructs an http.Request for the DeleteApiAuthTokensOriginOrId method
func NewDeleteApiAwsMetricScrapeConfigsIntegrationIdRequest ¶ added in v1.28.0
func NewDeleteApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID) (*http.Request, error)
NewDeleteApiAwsMetricScrapeConfigsIntegrationIdRequest constructs an http.Request for the DeleteApiAwsMetricScrapeConfigsIntegrationId method
func NewDeleteApiDashboardsOriginOrIdRequest ¶
func NewDeleteApiDashboardsOriginOrIdRequest(server string, originOrId string, params *DeleteApiDashboardsOriginOrIdParams) (*http.Request, error)
NewDeleteApiDashboardsOriginOrIdRequest constructs an http.Request for the DeleteApiDashboardsOriginOrId method
func NewDeleteApiDatasetsOriginOrIdRequest ¶ added in v1.24.0
NewDeleteApiDatasetsOriginOrIdRequest constructs an http.Request for the DeleteApiDatasetsOriginOrId method
func NewDeleteApiMembersInvitationsInvitationIDRequest ¶ added in v1.23.0
func NewDeleteApiMembersInvitationsInvitationIDRequest(server string, invitationID string) (*http.Request, error)
NewDeleteApiMembersInvitationsInvitationIDRequest constructs an http.Request for the DeleteApiMembersInvitationsInvitationID method
func NewDeleteApiMembersMemberIDRequest ¶ added in v1.4.0
NewDeleteApiMembersMemberIDRequest constructs an http.Request for the DeleteApiMembersMemberID method
func NewDeleteApiNotificationChannelsOriginOrIdRequest ¶ added in v1.9.0
func NewDeleteApiNotificationChannelsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
NewDeleteApiNotificationChannelsOriginOrIdRequest constructs an http.Request for the DeleteApiNotificationChannelsOriginOrId method
func NewDeleteApiRecordingRulesOriginOrIdRequest ¶ added in v1.9.0
func NewDeleteApiRecordingRulesOriginOrIdRequest(server string, originOrId string, params *DeleteApiRecordingRulesOriginOrIdParams) (*http.Request, error)
NewDeleteApiRecordingRulesOriginOrIdRequest constructs an http.Request for the DeleteApiRecordingRulesOriginOrId method
func NewDeleteApiSamplingRulesOriginOrIdRequest ¶ added in v1.1.0
func NewDeleteApiSamplingRulesOriginOrIdRequest(server string, originOrId string, params *DeleteApiSamplingRulesOriginOrIdParams) (*http.Request, error)
NewDeleteApiSamplingRulesOriginOrIdRequest constructs an http.Request for the DeleteApiSamplingRulesOriginOrId method
func NewDeleteApiSignalToMetricsOriginOrIdRequest ¶ added in v1.9.0
func NewDeleteApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, params *DeleteApiSignalToMetricsOriginOrIdParams) (*http.Request, error)
NewDeleteApiSignalToMetricsOriginOrIdRequest constructs an http.Request for the DeleteApiSignalToMetricsOriginOrId method
func NewDeleteApiSlosOriginOrIdRequest ¶ added in v1.14.0
func NewDeleteApiSlosOriginOrIdRequest(server string, originOrId string, params *DeleteApiSlosOriginOrIdParams) (*http.Request, error)
NewDeleteApiSlosOriginOrIdRequest constructs an http.Request for the DeleteApiSlosOriginOrId method
func NewDeleteApiSpamFiltersOriginOrIdRequest ¶ added in v1.12.0
func NewDeleteApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *DeleteApiSpamFiltersOriginOrIdParams) (*http.Request, error)
NewDeleteApiSpamFiltersOriginOrIdRequest constructs an http.Request for the DeleteApiSpamFiltersOriginOrId method
func NewDeleteApiSyntheticChecksOriginOrIdRequest ¶
func NewDeleteApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, params *DeleteApiSyntheticChecksOriginOrIdParams) (*http.Request, error)
NewDeleteApiSyntheticChecksOriginOrIdRequest constructs an http.Request for the DeleteApiSyntheticChecksOriginOrId method
func NewDeleteApiTeamsOriginOrIdMembersMemberIDRequest ¶ added in v1.4.0
func NewDeleteApiTeamsOriginOrIdMembersMemberIDRequest(server string, originOrId string, memberID string) (*http.Request, error)
NewDeleteApiTeamsOriginOrIdMembersMemberIDRequest constructs an http.Request for the DeleteApiTeamsOriginOrIdMembersMemberID method
func NewDeleteApiTeamsOriginOrIdRequest ¶ added in v1.4.0
NewDeleteApiTeamsOriginOrIdRequest constructs an http.Request for the DeleteApiTeamsOriginOrId method
func NewDeleteApiTimeSeriesAggregationsOriginOrIdRequest ¶ added in v1.17.0
func NewDeleteApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, params *DeleteApiTimeSeriesAggregationsOriginOrIdParams) (*http.Request, error)
NewDeleteApiTimeSeriesAggregationsOriginOrIdRequest constructs an http.Request for the DeleteApiTimeSeriesAggregationsOriginOrId method
func NewDeleteApiViewsOriginOrIdRequest ¶
func NewDeleteApiViewsOriginOrIdRequest(server string, originOrId string, params *DeleteApiViewsOriginOrIdParams) (*http.Request, error)
NewDeleteApiViewsOriginOrIdRequest constructs an http.Request for the DeleteApiViewsOriginOrId method
func NewGetApiAgent0CustomSkillsOriginOrIdRequest ¶ added in v1.29.0
func NewGetApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
NewGetApiAgent0CustomSkillsOriginOrIdRequest constructs an http.Request for the GetApiAgent0CustomSkillsOriginOrId method
func NewGetApiAgent0CustomSkillsRequest ¶ added in v1.29.0
func NewGetApiAgent0CustomSkillsRequest(server string, params *GetApiAgent0CustomSkillsParams) (*http.Request, error)
NewGetApiAgent0CustomSkillsRequest constructs an http.Request for the GetApiAgent0CustomSkills method
func NewGetApiAgenticWorkflowsOriginOrIdRequest ¶ added in v1.17.0
func NewGetApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, params *GetApiAgenticWorkflowsOriginOrIdParams) (*http.Request, error)
NewGetApiAgenticWorkflowsOriginOrIdRequest constructs an http.Request for the GetApiAgenticWorkflowsOriginOrId method
func NewGetApiAgenticWorkflowsRequest ¶ added in v1.17.0
func NewGetApiAgenticWorkflowsRequest(server string, params *GetApiAgenticWorkflowsParams) (*http.Request, error)
NewGetApiAgenticWorkflowsRequest constructs an http.Request for the GetApiAgenticWorkflows method
func NewGetApiAlertingCheckRulesOriginOrIdRequest ¶
func NewGetApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, params *GetApiAlertingCheckRulesOriginOrIdParams) (*http.Request, error)
NewGetApiAlertingCheckRulesOriginOrIdRequest constructs an http.Request for the GetApiAlertingCheckRulesOriginOrId method
func NewGetApiAlertingCheckRulesRequest ¶
func NewGetApiAlertingCheckRulesRequest(server string, params *GetApiAlertingCheckRulesParams) (*http.Request, error)
NewGetApiAlertingCheckRulesRequest constructs an http.Request for the GetApiAlertingCheckRules method
func NewGetApiAuthTokensOriginOrIdRequest ¶ added in v1.25.0
NewGetApiAuthTokensOriginOrIdRequest constructs an http.Request for the GetApiAuthTokensOriginOrId method
func NewGetApiAuthTokensRequest ¶ added in v1.25.0
NewGetApiAuthTokensRequest constructs an http.Request for the GetApiAuthTokens method
func NewGetApiAwsMetricScrapeConfigsIntegrationIdRequest ¶ added in v1.28.0
func NewGetApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID) (*http.Request, error)
NewGetApiAwsMetricScrapeConfigsIntegrationIdRequest constructs an http.Request for the GetApiAwsMetricScrapeConfigsIntegrationId method
func NewGetApiDashboardsOriginOrIdRequest ¶
func NewGetApiDashboardsOriginOrIdRequest(server string, originOrId string, params *GetApiDashboardsOriginOrIdParams) (*http.Request, error)
NewGetApiDashboardsOriginOrIdRequest constructs an http.Request for the GetApiDashboardsOriginOrId method
func NewGetApiDashboardsRequest ¶
func NewGetApiDashboardsRequest(server string, params *GetApiDashboardsParams) (*http.Request, error)
NewGetApiDashboardsRequest constructs an http.Request for the GetApiDashboards method
func NewGetApiDatasetsOriginOrIdRequest ¶ added in v1.24.0
NewGetApiDatasetsOriginOrIdRequest constructs an http.Request for the GetApiDatasetsOriginOrId method
func NewGetApiDatasetsRequest ¶ added in v1.24.0
NewGetApiDatasetsRequest constructs an http.Request for the GetApiDatasets method
func NewGetApiEdgeSettingsRequest ¶ added in v1.12.3
func NewGetApiEdgeSettingsRequest(server string, params *GetApiEdgeSettingsParams) (*http.Request, error)
NewGetApiEdgeSettingsRequest constructs an http.Request for the GetApiEdgeSettings method
func NewGetApiMembersInvitationsRequest ¶ added in v1.23.0
NewGetApiMembersInvitationsRequest constructs an http.Request for the GetApiMembersInvitations method
func NewGetApiMembersRequest ¶ added in v1.4.0
NewGetApiMembersRequest constructs an http.Request for the GetApiMembers method
func NewGetApiNotificationChannelsOriginOrIdRequest ¶ added in v1.9.0
func NewGetApiNotificationChannelsOriginOrIdRequest(server string, originOrId string) (*http.Request, error)
NewGetApiNotificationChannelsOriginOrIdRequest constructs an http.Request for the GetApiNotificationChannelsOriginOrId method
func NewGetApiNotificationChannelsRequest ¶ added in v1.9.0
NewGetApiNotificationChannelsRequest constructs an http.Request for the GetApiNotificationChannels method
func NewGetApiPrometheusApiV1FormatQueryRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1FormatQueryRequest(server string, params *GetApiPrometheusApiV1FormatQueryParams) (*http.Request, error)
NewGetApiPrometheusApiV1FormatQueryRequest constructs an http.Request for the GetApiPrometheusApiV1FormatQuery method
func NewGetApiPrometheusApiV1LabelLabelNameValuesRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1LabelLabelNameValuesRequest(server string, labelName string, params *GetApiPrometheusApiV1LabelLabelNameValuesParams) (*http.Request, error)
NewGetApiPrometheusApiV1LabelLabelNameValuesRequest constructs an http.Request for the GetApiPrometheusApiV1LabelLabelNameValues method
func NewGetApiPrometheusApiV1LabelsRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1LabelsRequest(server string, params *GetApiPrometheusApiV1LabelsParams) (*http.Request, error)
NewGetApiPrometheusApiV1LabelsRequest constructs an http.Request for the GetApiPrometheusApiV1Labels method
func NewGetApiPrometheusApiV1MetadataRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1MetadataRequest(server string, params *GetApiPrometheusApiV1MetadataParams) (*http.Request, error)
NewGetApiPrometheusApiV1MetadataRequest constructs an http.Request for the GetApiPrometheusApiV1Metadata method
func NewGetApiPrometheusApiV1QueryRangeRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1QueryRangeRequest(server string, params *GetApiPrometheusApiV1QueryRangeParams) (*http.Request, error)
NewGetApiPrometheusApiV1QueryRangeRequest constructs an http.Request for the GetApiPrometheusApiV1QueryRange method
func NewGetApiPrometheusApiV1QueryRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1QueryRequest(server string, params *GetApiPrometheusApiV1QueryParams) (*http.Request, error)
NewGetApiPrometheusApiV1QueryRequest constructs an http.Request for the GetApiPrometheusApiV1Query method
func NewGetApiPrometheusApiV1SeriesRequest ¶ added in v1.13.1
func NewGetApiPrometheusApiV1SeriesRequest(server string, params *GetApiPrometheusApiV1SeriesParams) (*http.Request, error)
NewGetApiPrometheusApiV1SeriesRequest constructs an http.Request for the GetApiPrometheusApiV1Series method
func NewGetApiPrometheusApiV1StatusBuildinfoRequest ¶ added in v1.13.1
NewGetApiPrometheusApiV1StatusBuildinfoRequest constructs an http.Request for the GetApiPrometheusApiV1StatusBuildinfo method
func NewGetApiPrometheusApiV1StatusRuntimeinfoRequest ¶ added in v1.13.1
NewGetApiPrometheusApiV1StatusRuntimeinfoRequest constructs an http.Request for the GetApiPrometheusApiV1StatusRuntimeinfo method
func NewGetApiRecordingRulesOriginOrIdRequest ¶ added in v1.9.0
func NewGetApiRecordingRulesOriginOrIdRequest(server string, originOrId string, params *GetApiRecordingRulesOriginOrIdParams) (*http.Request, error)
NewGetApiRecordingRulesOriginOrIdRequest constructs an http.Request for the GetApiRecordingRulesOriginOrId method
func NewGetApiRecordingRulesRequest ¶ added in v1.9.0
func NewGetApiRecordingRulesRequest(server string, params *GetApiRecordingRulesParams) (*http.Request, error)
NewGetApiRecordingRulesRequest constructs an http.Request for the GetApiRecordingRules method
func NewGetApiSamplingRulesOriginOrIdRequest ¶ added in v1.1.0
func NewGetApiSamplingRulesOriginOrIdRequest(server string, originOrId string, params *GetApiSamplingRulesOriginOrIdParams) (*http.Request, error)
NewGetApiSamplingRulesOriginOrIdRequest constructs an http.Request for the GetApiSamplingRulesOriginOrId method
func NewGetApiSamplingRulesRequest ¶ added in v1.1.0
func NewGetApiSamplingRulesRequest(server string, params *GetApiSamplingRulesParams) (*http.Request, error)
NewGetApiSamplingRulesRequest constructs an http.Request for the GetApiSamplingRules method
func NewGetApiSignalToMetricsOriginOrIdRequest ¶ added in v1.9.0
func NewGetApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, params *GetApiSignalToMetricsOriginOrIdParams) (*http.Request, error)
NewGetApiSignalToMetricsOriginOrIdRequest constructs an http.Request for the GetApiSignalToMetricsOriginOrId method
func NewGetApiSignalToMetricsRequest ¶ added in v1.9.0
func NewGetApiSignalToMetricsRequest(server string, params *GetApiSignalToMetricsParams) (*http.Request, error)
NewGetApiSignalToMetricsRequest constructs an http.Request for the GetApiSignalToMetrics method
func NewGetApiSlosOriginOrIdRequest ¶ added in v1.14.0
func NewGetApiSlosOriginOrIdRequest(server string, originOrId string, params *GetApiSlosOriginOrIdParams) (*http.Request, error)
NewGetApiSlosOriginOrIdRequest constructs an http.Request for the GetApiSlosOriginOrId method
func NewGetApiSlosRequest ¶ added in v1.14.0
func NewGetApiSlosRequest(server string, params *GetApiSlosParams) (*http.Request, error)
NewGetApiSlosRequest constructs an http.Request for the GetApiSlos method
func NewGetApiSpamFiltersOriginOrIdRequest ¶ added in v1.12.0
func NewGetApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *GetApiSpamFiltersOriginOrIdParams) (*http.Request, error)
NewGetApiSpamFiltersOriginOrIdRequest constructs an http.Request for the GetApiSpamFiltersOriginOrId method
func NewGetApiSpamFiltersRequest ¶ added in v1.12.0
func NewGetApiSpamFiltersRequest(server string, params *GetApiSpamFiltersParams) (*http.Request, error)
NewGetApiSpamFiltersRequest constructs an http.Request for the GetApiSpamFilters method
func NewGetApiSyntheticChecksLocationsRequest ¶ added in v1.6.0
NewGetApiSyntheticChecksLocationsRequest constructs an http.Request for the GetApiSyntheticChecksLocations method
func NewGetApiSyntheticChecksOriginOrIdRequest ¶
func NewGetApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, params *GetApiSyntheticChecksOriginOrIdParams) (*http.Request, error)
NewGetApiSyntheticChecksOriginOrIdRequest constructs an http.Request for the GetApiSyntheticChecksOriginOrId method
func NewGetApiSyntheticChecksRequest ¶
func NewGetApiSyntheticChecksRequest(server string, params *GetApiSyntheticChecksParams) (*http.Request, error)
NewGetApiSyntheticChecksRequest constructs an http.Request for the GetApiSyntheticChecks method
func NewGetApiTeamsOriginOrIdRequest ¶ added in v1.4.0
NewGetApiTeamsOriginOrIdRequest constructs an http.Request for the GetApiTeamsOriginOrId method
func NewGetApiTeamsRequest ¶ added in v1.4.0
NewGetApiTeamsRequest constructs an http.Request for the GetApiTeams method
func NewGetApiTimeSeriesAggregationsOriginOrIdRequest ¶ added in v1.17.0
func NewGetApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, params *GetApiTimeSeriesAggregationsOriginOrIdParams) (*http.Request, error)
NewGetApiTimeSeriesAggregationsOriginOrIdRequest constructs an http.Request for the GetApiTimeSeriesAggregationsOriginOrId method
func NewGetApiTimeSeriesAggregationsRequest ¶ added in v1.17.0
func NewGetApiTimeSeriesAggregationsRequest(server string, params *GetApiTimeSeriesAggregationsParams) (*http.Request, error)
NewGetApiTimeSeriesAggregationsRequest constructs an http.Request for the GetApiTimeSeriesAggregations method
func NewGetApiViewsOriginOrIdRequest ¶
func NewGetApiViewsOriginOrIdRequest(server string, originOrId string, params *GetApiViewsOriginOrIdParams) (*http.Request, error)
NewGetApiViewsOriginOrIdRequest constructs an http.Request for the GetApiViewsOriginOrId method
func NewGetApiViewsRequest ¶
func NewGetApiViewsRequest(server string, params *GetApiViewsParams) (*http.Request, error)
NewGetApiViewsRequest constructs an http.Request for the GetApiViews method
func NewGetOauthAuthorizeRequest ¶ added in v1.6.0
func NewGetOauthAuthorizeRequest(server string, params *GetOauthAuthorizeParams) (*http.Request, error)
NewGetOauthAuthorizeRequest constructs an http.Request for the GetOauthAuthorize method
func NewGetWellKnownOauthAuthorizationServerRequest ¶ added in v1.6.0
NewGetWellKnownOauthAuthorizationServerRequest constructs an http.Request for the GetWellKnownOauthAuthorizationServer method
func NewGetWellKnownOauthProtectedResourceRequest ¶ added in v1.6.0
NewGetWellKnownOauthProtectedResourceRequest constructs an http.Request for the GetWellKnownOauthProtectedResource method
func NewPostApiAgent0CustomSkillsRequest ¶ added in v1.29.0
func NewPostApiAgent0CustomSkillsRequest(server string, body PostApiAgent0CustomSkillsJSONRequestBody) (*http.Request, error)
NewPostApiAgent0CustomSkillsRequest calls the generic PostApiAgent0CustomSkills builder with application/json body
func NewPostApiAgent0CustomSkillsRequestWithBody ¶ added in v1.29.0
func NewPostApiAgent0CustomSkillsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAgent0CustomSkillsRequestWithBody constructs an http.Request for the PostApiAgent0CustomSkills method, with any body, and a specified content type
func NewPostApiAgenticWorkflowsRequest ¶ added in v1.17.0
func NewPostApiAgenticWorkflowsRequest(server string, params *PostApiAgenticWorkflowsParams, body PostApiAgenticWorkflowsJSONRequestBody) (*http.Request, error)
NewPostApiAgenticWorkflowsRequest calls the generic PostApiAgenticWorkflows builder with application/json body
func NewPostApiAgenticWorkflowsRequestWithBody ¶ added in v1.17.0
func NewPostApiAgenticWorkflowsRequestWithBody(server string, params *PostApiAgenticWorkflowsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAgenticWorkflowsRequestWithBody constructs an http.Request for the PostApiAgenticWorkflows method, with any body, and a specified content type
func NewPostApiAlertingCheckRulesBulkRequest ¶ added in v1.12.1
func NewPostApiAlertingCheckRulesBulkRequest(server string, params *PostApiAlertingCheckRulesBulkParams, body PostApiAlertingCheckRulesBulkJSONRequestBody) (*http.Request, error)
NewPostApiAlertingCheckRulesBulkRequest calls the generic PostApiAlertingCheckRulesBulk builder with application/json body
func NewPostApiAlertingCheckRulesBulkRequestWithBody ¶ added in v1.12.1
func NewPostApiAlertingCheckRulesBulkRequestWithBody(server string, params *PostApiAlertingCheckRulesBulkParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAlertingCheckRulesBulkRequestWithBody constructs an http.Request for the PostApiAlertingCheckRulesBulk method, with any body, and a specified content type
func NewPostApiAlertingCheckRulesRequest ¶
func NewPostApiAlertingCheckRulesRequest(server string, params *PostApiAlertingCheckRulesParams, body PostApiAlertingCheckRulesJSONRequestBody) (*http.Request, error)
NewPostApiAlertingCheckRulesRequest calls the generic PostApiAlertingCheckRules builder with application/json body
func NewPostApiAlertingCheckRulesRequestWithBody ¶
func NewPostApiAlertingCheckRulesRequestWithBody(server string, params *PostApiAlertingCheckRulesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAlertingCheckRulesRequestWithBody constructs an http.Request for the PostApiAlertingCheckRules method, with any body, and a specified content type
func NewPostApiAuthTokensRequest ¶ added in v1.25.0
func NewPostApiAuthTokensRequest(server string, body PostApiAuthTokensJSONRequestBody) (*http.Request, error)
NewPostApiAuthTokensRequest calls the generic PostApiAuthTokens builder with application/json body
func NewPostApiAuthTokensRequestWithBody ¶ added in v1.25.0
func NewPostApiAuthTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAuthTokensRequestWithBody constructs an http.Request for the PostApiAuthTokens method, with any body, and a specified content type
func NewPostApiDashboardsRequest ¶
func NewPostApiDashboardsRequest(server string, params *PostApiDashboardsParams, body PostApiDashboardsJSONRequestBody) (*http.Request, error)
NewPostApiDashboardsRequest calls the generic PostApiDashboards builder with application/json body
func NewPostApiDashboardsRequestWithBody ¶
func NewPostApiDashboardsRequestWithBody(server string, params *PostApiDashboardsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiDashboardsRequestWithBody constructs an http.Request for the PostApiDashboards method, with any body, and a specified content type
func NewPostApiDatasetsRequest ¶ added in v1.24.0
func NewPostApiDatasetsRequest(server string, body PostApiDatasetsJSONRequestBody) (*http.Request, error)
NewPostApiDatasetsRequest calls the generic PostApiDatasets builder with application/json body
func NewPostApiDatasetsRequestWithBody ¶ added in v1.24.0
func NewPostApiDatasetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiDatasetsRequestWithBody constructs an http.Request for the PostApiDatasets method, with any body, and a specified content type
func NewPostApiImportCheckRuleRequest ¶
func NewPostApiImportCheckRuleRequest(server string, params *PostApiImportCheckRuleParams, body PostApiImportCheckRuleJSONRequestBody) (*http.Request, error)
NewPostApiImportCheckRuleRequest calls the generic PostApiImportCheckRule builder with application/json body
func NewPostApiImportCheckRuleRequestWithBody ¶
func NewPostApiImportCheckRuleRequestWithBody(server string, params *PostApiImportCheckRuleParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportCheckRuleRequestWithBody constructs an http.Request for the PostApiImportCheckRule method, with any body, and a specified content type
func NewPostApiImportCheckRulesRequest ¶ added in v1.12.1
func NewPostApiImportCheckRulesRequest(server string, params *PostApiImportCheckRulesParams, body PostApiImportCheckRulesJSONRequestBody) (*http.Request, error)
NewPostApiImportCheckRulesRequest calls the generic PostApiImportCheckRules builder with application/json body
func NewPostApiImportCheckRulesRequestWithBody ¶ added in v1.12.1
func NewPostApiImportCheckRulesRequestWithBody(server string, params *PostApiImportCheckRulesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportCheckRulesRequestWithBody constructs an http.Request for the PostApiImportCheckRules method, with any body, and a specified content type
func NewPostApiImportDashboardRequest ¶
func NewPostApiImportDashboardRequest(server string, params *PostApiImportDashboardParams, body PostApiImportDashboardJSONRequestBody) (*http.Request, error)
NewPostApiImportDashboardRequest calls the generic PostApiImportDashboard builder with application/json body
func NewPostApiImportDashboardRequestWithBody ¶
func NewPostApiImportDashboardRequestWithBody(server string, params *PostApiImportDashboardParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportDashboardRequestWithBody constructs an http.Request for the PostApiImportDashboard method, with any body, and a specified content type
func NewPostApiImportSyntheticCheckRequest ¶
func NewPostApiImportSyntheticCheckRequest(server string, params *PostApiImportSyntheticCheckParams, body PostApiImportSyntheticCheckJSONRequestBody) (*http.Request, error)
NewPostApiImportSyntheticCheckRequest calls the generic PostApiImportSyntheticCheck builder with application/json body
func NewPostApiImportSyntheticCheckRequestWithBody ¶
func NewPostApiImportSyntheticCheckRequestWithBody(server string, params *PostApiImportSyntheticCheckParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportSyntheticCheckRequestWithBody constructs an http.Request for the PostApiImportSyntheticCheck method, with any body, and a specified content type
func NewPostApiImportViewRequest ¶
func NewPostApiImportViewRequest(server string, params *PostApiImportViewParams, body PostApiImportViewJSONRequestBody) (*http.Request, error)
NewPostApiImportViewRequest calls the generic PostApiImportView builder with application/json body
func NewPostApiImportViewRequestWithBody ¶
func NewPostApiImportViewRequestWithBody(server string, params *PostApiImportViewParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportViewRequestWithBody constructs an http.Request for the PostApiImportView method, with any body, and a specified content type
func NewPostApiLogsDownloadRequest ¶ added in v1.18.1
func NewPostApiLogsDownloadRequest(server string, body PostApiLogsDownloadJSONRequestBody) (*http.Request, error)
NewPostApiLogsDownloadRequest calls the generic PostApiLogsDownload builder with application/json body
func NewPostApiLogsDownloadRequestWithBody ¶ added in v1.18.1
func NewPostApiLogsDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiLogsDownloadRequestWithBody constructs an http.Request for the PostApiLogsDownload method, with any body, and a specified content type
func NewPostApiLogsRequest ¶
func NewPostApiLogsRequest(server string, body PostApiLogsJSONRequestBody) (*http.Request, error)
NewPostApiLogsRequest calls the generic PostApiLogs builder with application/json body
func NewPostApiLogsRequestWithBody ¶
func NewPostApiLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiLogsRequestWithBody constructs an http.Request for the PostApiLogs method, with any body, and a specified content type
func NewPostApiMembersRequest ¶ added in v1.4.0
func NewPostApiMembersRequest(server string, body PostApiMembersJSONRequestBody) (*http.Request, error)
NewPostApiMembersRequest calls the generic PostApiMembers builder with application/json body
func NewPostApiMembersRequestWithBody ¶ added in v1.4.0
func NewPostApiMembersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiMembersRequestWithBody constructs an http.Request for the PostApiMembers method, with any body, and a specified content type
func NewPostApiNotificationChannelsRequest ¶ added in v1.9.0
func NewPostApiNotificationChannelsRequest(server string, body PostApiNotificationChannelsJSONRequestBody) (*http.Request, error)
NewPostApiNotificationChannelsRequest calls the generic PostApiNotificationChannels builder with application/json body
func NewPostApiNotificationChannelsRequestWithBody ¶ added in v1.9.0
func NewPostApiNotificationChannelsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotificationChannelsRequestWithBody constructs an http.Request for the PostApiNotificationChannels method, with any body, and a specified content type
func NewPostApiPrometheusApiV1FormatQueryRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1FormatQueryRequest(server string, body PostApiPrometheusApiV1FormatQueryJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1FormatQueryRequest calls the generic PostApiPrometheusApiV1FormatQuery builder with application/json body
func NewPostApiPrometheusApiV1FormatQueryRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1FormatQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1FormatQueryRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1FormatQuery method, with any body, and a specified content type
func NewPostApiPrometheusApiV1FormatQueryRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1FormatQueryRequestWithFormdataBody(server string, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1FormatQueryRequestWithFormdataBody calls the generic PostApiPrometheusApiV1FormatQuery builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequest(server string, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1LabelLabelNameValuesRequest calls the generic PostApiPrometheusApiV1LabelLabelNameValues builder with application/json body
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithBody(server string, labelName string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1LabelLabelNameValues method, with any body, and a specified content type
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithFormdataBody(server string, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1LabelLabelNameValuesRequestWithFormdataBody calls the generic PostApiPrometheusApiV1LabelLabelNameValues builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1LabelsRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1LabelsRequest(server string, body PostApiPrometheusApiV1LabelsJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1LabelsRequest calls the generic PostApiPrometheusApiV1Labels builder with application/json body
func NewPostApiPrometheusApiV1LabelsRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1LabelsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1LabelsRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1Labels method, with any body, and a specified content type
func NewPostApiPrometheusApiV1LabelsRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1LabelsRequestWithFormdataBody(server string, body PostApiPrometheusApiV1LabelsFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1LabelsRequestWithFormdataBody calls the generic PostApiPrometheusApiV1Labels builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1MetadataRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1MetadataRequest(server string, body PostApiPrometheusApiV1MetadataJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1MetadataRequest calls the generic PostApiPrometheusApiV1Metadata builder with application/json body
func NewPostApiPrometheusApiV1MetadataRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1MetadataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1MetadataRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1Metadata method, with any body, and a specified content type
func NewPostApiPrometheusApiV1MetadataRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1MetadataRequestWithFormdataBody(server string, body PostApiPrometheusApiV1MetadataFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1MetadataRequestWithFormdataBody calls the generic PostApiPrometheusApiV1Metadata builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1QueryRangeRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1QueryRangeRequest(server string, body PostApiPrometheusApiV1QueryRangeJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRangeRequest calls the generic PostApiPrometheusApiV1QueryRange builder with application/json body
func NewPostApiPrometheusApiV1QueryRangeRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1QueryRangeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRangeRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1QueryRange method, with any body, and a specified content type
func NewPostApiPrometheusApiV1QueryRangeRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1QueryRangeRequestWithFormdataBody(server string, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRangeRequestWithFormdataBody calls the generic PostApiPrometheusApiV1QueryRange builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1QueryRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1QueryRequest(server string, body PostApiPrometheusApiV1QueryJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRequest calls the generic PostApiPrometheusApiV1Query builder with application/json body
func NewPostApiPrometheusApiV1QueryRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1QueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1Query method, with any body, and a specified content type
func NewPostApiPrometheusApiV1QueryRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1QueryRequestWithFormdataBody(server string, body PostApiPrometheusApiV1QueryFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1QueryRequestWithFormdataBody calls the generic PostApiPrometheusApiV1Query builder with application/x-www-form-urlencoded body
func NewPostApiPrometheusApiV1SeriesRequest ¶ added in v1.13.1
func NewPostApiPrometheusApiV1SeriesRequest(server string, body PostApiPrometheusApiV1SeriesJSONRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1SeriesRequest calls the generic PostApiPrometheusApiV1Series builder with application/json body
func NewPostApiPrometheusApiV1SeriesRequestWithBody ¶ added in v1.13.1
func NewPostApiPrometheusApiV1SeriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPrometheusApiV1SeriesRequestWithBody constructs an http.Request for the PostApiPrometheusApiV1Series method, with any body, and a specified content type
func NewPostApiPrometheusApiV1SeriesRequestWithFormdataBody ¶ added in v1.29.0
func NewPostApiPrometheusApiV1SeriesRequestWithFormdataBody(server string, body PostApiPrometheusApiV1SeriesFormdataRequestBody) (*http.Request, error)
NewPostApiPrometheusApiV1SeriesRequestWithFormdataBody calls the generic PostApiPrometheusApiV1Series builder with application/x-www-form-urlencoded body
func NewPostApiRecordingRulesRequest ¶ added in v1.9.0
func NewPostApiRecordingRulesRequest(server string, params *PostApiRecordingRulesParams, body PostApiRecordingRulesJSONRequestBody) (*http.Request, error)
NewPostApiRecordingRulesRequest calls the generic PostApiRecordingRules builder with application/json body
func NewPostApiRecordingRulesRequestWithBody ¶ added in v1.9.0
func NewPostApiRecordingRulesRequestWithBody(server string, params *PostApiRecordingRulesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiRecordingRulesRequestWithBody constructs an http.Request for the PostApiRecordingRules method, with any body, and a specified content type
func NewPostApiSamplingRulesRequest ¶ added in v1.1.0
func NewPostApiSamplingRulesRequest(server string, params *PostApiSamplingRulesParams, body PostApiSamplingRulesJSONRequestBody) (*http.Request, error)
NewPostApiSamplingRulesRequest calls the generic PostApiSamplingRules builder with application/json body
func NewPostApiSamplingRulesRequestWithBody ¶ added in v1.1.0
func NewPostApiSamplingRulesRequestWithBody(server string, params *PostApiSamplingRulesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSamplingRulesRequestWithBody constructs an http.Request for the PostApiSamplingRules method, with any body, and a specified content type
func NewPostApiSignalToMetricsRequest ¶ added in v1.9.0
func NewPostApiSignalToMetricsRequest(server string, params *PostApiSignalToMetricsParams, body PostApiSignalToMetricsJSONRequestBody) (*http.Request, error)
NewPostApiSignalToMetricsRequest calls the generic PostApiSignalToMetrics builder with application/json body
func NewPostApiSignalToMetricsRequestWithBody ¶ added in v1.9.0
func NewPostApiSignalToMetricsRequestWithBody(server string, params *PostApiSignalToMetricsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSignalToMetricsRequestWithBody constructs an http.Request for the PostApiSignalToMetrics method, with any body, and a specified content type
func NewPostApiSignalToMetricsTestRequest ¶ added in v1.12.0
func NewPostApiSignalToMetricsTestRequest(server string, params *PostApiSignalToMetricsTestParams, body PostApiSignalToMetricsTestJSONRequestBody) (*http.Request, error)
NewPostApiSignalToMetricsTestRequest calls the generic PostApiSignalToMetricsTest builder with application/json body
func NewPostApiSignalToMetricsTestRequestWithBody ¶ added in v1.12.0
func NewPostApiSignalToMetricsTestRequestWithBody(server string, params *PostApiSignalToMetricsTestParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSignalToMetricsTestRequestWithBody constructs an http.Request for the PostApiSignalToMetricsTest method, with any body, and a specified content type
func NewPostApiSlosOriginOrIdResetRequest ¶ added in v1.23.0
func NewPostApiSlosOriginOrIdResetRequest(server string, originOrId string, params *PostApiSlosOriginOrIdResetParams) (*http.Request, error)
NewPostApiSlosOriginOrIdResetRequest constructs an http.Request for the PostApiSlosOriginOrIdReset method
func NewPostApiSlosRequest ¶ added in v1.14.0
func NewPostApiSlosRequest(server string, params *PostApiSlosParams, body PostApiSlosJSONRequestBody) (*http.Request, error)
NewPostApiSlosRequest calls the generic PostApiSlos builder with application/json body
func NewPostApiSlosRequestWithBody ¶ added in v1.14.0
func NewPostApiSlosRequestWithBody(server string, params *PostApiSlosParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSlosRequestWithBody constructs an http.Request for the PostApiSlos method, with any body, and a specified content type
func NewPostApiSpamFiltersRequest ¶ added in v1.12.0
func NewPostApiSpamFiltersRequest(server string, params *PostApiSpamFiltersParams, body PostApiSpamFiltersJSONRequestBody) (*http.Request, error)
NewPostApiSpamFiltersRequest calls the generic PostApiSpamFilters builder with application/json body
func NewPostApiSpamFiltersRequestWithBody ¶ added in v1.12.0
func NewPostApiSpamFiltersRequestWithBody(server string, params *PostApiSpamFiltersParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSpamFiltersRequestWithBody constructs an http.Request for the PostApiSpamFilters method, with any body, and a specified content type
func NewPostApiSpansDownloadRequest ¶ added in v1.18.1
func NewPostApiSpansDownloadRequest(server string, body PostApiSpansDownloadJSONRequestBody) (*http.Request, error)
NewPostApiSpansDownloadRequest calls the generic PostApiSpansDownload builder with application/json body
func NewPostApiSpansDownloadRequestWithBody ¶ added in v1.18.1
func NewPostApiSpansDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSpansDownloadRequestWithBody constructs an http.Request for the PostApiSpansDownload method, with any body, and a specified content type
func NewPostApiSpansRequest ¶
func NewPostApiSpansRequest(server string, body PostApiSpansJSONRequestBody) (*http.Request, error)
NewPostApiSpansRequest calls the generic PostApiSpans builder with application/json body
func NewPostApiSpansRequestWithBody ¶
func NewPostApiSpansRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSpansRequestWithBody constructs an http.Request for the PostApiSpans method, with any body, and a specified content type
func NewPostApiSqlRequest ¶ added in v1.6.0
func NewPostApiSqlRequest(server string, body PostApiSqlJSONRequestBody) (*http.Request, error)
NewPostApiSqlRequest calls the generic PostApiSql builder with application/json body
func NewPostApiSqlRequestWithBody ¶ added in v1.6.0
func NewPostApiSqlRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSqlRequestWithBody constructs an http.Request for the PostApiSql method, with any body, and a specified content type
func NewPostApiSyntheticChecksRequest ¶
func NewPostApiSyntheticChecksRequest(server string, params *PostApiSyntheticChecksParams, body PostApiSyntheticChecksJSONRequestBody) (*http.Request, error)
NewPostApiSyntheticChecksRequest calls the generic PostApiSyntheticChecks builder with application/json body
func NewPostApiSyntheticChecksRequestWithBody ¶
func NewPostApiSyntheticChecksRequestWithBody(server string, params *PostApiSyntheticChecksParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSyntheticChecksRequestWithBody constructs an http.Request for the PostApiSyntheticChecks method, with any body, and a specified content type
func NewPostApiSyntheticChecksTestRequest ¶ added in v1.4.0
func NewPostApiSyntheticChecksTestRequest(server string, body PostApiSyntheticChecksTestJSONRequestBody) (*http.Request, error)
NewPostApiSyntheticChecksTestRequest calls the generic PostApiSyntheticChecksTest builder with application/json body
func NewPostApiSyntheticChecksTestRequestWithBody ¶ added in v1.4.0
func NewPostApiSyntheticChecksTestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSyntheticChecksTestRequestWithBody constructs an http.Request for the PostApiSyntheticChecksTest method, with any body, and a specified content type
func NewPostApiTeamsOriginOrIdMembersRequest ¶ added in v1.4.0
func NewPostApiTeamsOriginOrIdMembersRequest(server string, originOrId string, body PostApiTeamsOriginOrIdMembersJSONRequestBody) (*http.Request, error)
NewPostApiTeamsOriginOrIdMembersRequest calls the generic PostApiTeamsOriginOrIdMembers builder with application/json body
func NewPostApiTeamsOriginOrIdMembersRequestWithBody ¶ added in v1.4.0
func NewPostApiTeamsOriginOrIdMembersRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTeamsOriginOrIdMembersRequestWithBody constructs an http.Request for the PostApiTeamsOriginOrIdMembers method, with any body, and a specified content type
func NewPostApiTeamsRequest ¶ added in v1.4.0
func NewPostApiTeamsRequest(server string, body PostApiTeamsJSONRequestBody) (*http.Request, error)
NewPostApiTeamsRequest calls the generic PostApiTeams builder with application/json body
func NewPostApiTeamsRequestWithBody ¶ added in v1.4.0
func NewPostApiTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTeamsRequestWithBody constructs an http.Request for the PostApiTeams method, with any body, and a specified content type
func NewPostApiTimeSeriesAggregationsRequest ¶ added in v1.17.0
func NewPostApiTimeSeriesAggregationsRequest(server string, params *PostApiTimeSeriesAggregationsParams, body PostApiTimeSeriesAggregationsJSONRequestBody) (*http.Request, error)
NewPostApiTimeSeriesAggregationsRequest calls the generic PostApiTimeSeriesAggregations builder with application/json body
func NewPostApiTimeSeriesAggregationsRequestWithBody ¶ added in v1.17.0
func NewPostApiTimeSeriesAggregationsRequestWithBody(server string, params *PostApiTimeSeriesAggregationsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTimeSeriesAggregationsRequestWithBody constructs an http.Request for the PostApiTimeSeriesAggregations method, with any body, and a specified content type
func NewPostApiTopologyRequest ¶ added in v1.28.0
func NewPostApiTopologyRequest(server string, body PostApiTopologyJSONRequestBody) (*http.Request, error)
NewPostApiTopologyRequest calls the generic PostApiTopology builder with application/json body
func NewPostApiTopologyRequestWithBody ¶ added in v1.28.0
func NewPostApiTopologyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTopologyRequestWithBody constructs an http.Request for the PostApiTopology method, with any body, and a specified content type
func NewPostApiTraceDetailsRequest ¶ added in v1.12.0
func NewPostApiTraceDetailsRequest(server string, body PostApiTraceDetailsJSONRequestBody) (*http.Request, error)
NewPostApiTraceDetailsRequest calls the generic PostApiTraceDetails builder with application/json body
func NewPostApiTraceDetailsRequestWithBody ¶ added in v1.12.0
func NewPostApiTraceDetailsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTraceDetailsRequestWithBody constructs an http.Request for the PostApiTraceDetails method, with any body, and a specified content type
func NewPostApiTraceIdsRequest ¶ added in v1.12.1
func NewPostApiTraceIdsRequest(server string, body PostApiTraceIdsJSONRequestBody) (*http.Request, error)
NewPostApiTraceIdsRequest calls the generic PostApiTraceIds builder with application/json body
func NewPostApiTraceIdsRequestWithBody ¶ added in v1.12.1
func NewPostApiTraceIdsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTraceIdsRequestWithBody constructs an http.Request for the PostApiTraceIds method, with any body, and a specified content type
func NewPostApiViewsRequest ¶
func NewPostApiViewsRequest(server string, params *PostApiViewsParams, body PostApiViewsJSONRequestBody) (*http.Request, error)
NewPostApiViewsRequest calls the generic PostApiViews builder with application/json body
func NewPostApiViewsRequestWithBody ¶
func NewPostApiViewsRequestWithBody(server string, params *PostApiViewsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiViewsRequestWithBody constructs an http.Request for the PostApiViews method, with any body, and a specified content type
func NewPostApiWebEventsDownloadRequest ¶ added in v1.18.1
func NewPostApiWebEventsDownloadRequest(server string, body PostApiWebEventsDownloadJSONRequestBody) (*http.Request, error)
NewPostApiWebEventsDownloadRequest calls the generic PostApiWebEventsDownload builder with application/json body
func NewPostApiWebEventsDownloadRequestWithBody ¶ added in v1.18.1
func NewPostApiWebEventsDownloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiWebEventsDownloadRequestWithBody constructs an http.Request for the PostApiWebEventsDownload method, with any body, and a specified content type
func NewPostOauthRegisterRequest ¶ added in v1.6.0
func NewPostOauthRegisterRequest(server string, body PostOauthRegisterJSONRequestBody) (*http.Request, error)
NewPostOauthRegisterRequest calls the generic PostOauthRegister builder with application/json body
func NewPostOauthRegisterRequestWithBody ¶ added in v1.6.0
func NewPostOauthRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostOauthRegisterRequestWithBody constructs an http.Request for the PostOauthRegister method, with any body, and a specified content type
func NewPostOauthRevokeRequestWithBody ¶ added in v1.6.0
func NewPostOauthRevokeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostOauthRevokeRequestWithBody constructs an http.Request for the PostOauthRevoke method, with any body, and a specified content type
func NewPostOauthRevokeRequestWithFormdataBody ¶ added in v1.6.0
func NewPostOauthRevokeRequestWithFormdataBody(server string, body PostOauthRevokeFormdataRequestBody) (*http.Request, error)
NewPostOauthRevokeRequestWithFormdataBody calls the generic PostOauthRevoke builder with application/x-www-form-urlencoded body
func NewPostOauthTokenRequestWithBody ¶ added in v1.6.0
func NewPostOauthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostOauthTokenRequestWithBody constructs an http.Request for the PostOauthToken method, with any body, and a specified content type
func NewPostOauthTokenRequestWithFormdataBody ¶ added in v1.6.0
func NewPostOauthTokenRequestWithFormdataBody(server string, body PostOauthTokenFormdataRequestBody) (*http.Request, error)
NewPostOauthTokenRequestWithFormdataBody calls the generic PostOauthToken builder with application/x-www-form-urlencoded body
func NewPutApiAgent0CustomSkillsOriginOrIdRequest ¶ added in v1.29.0
func NewPutApiAgent0CustomSkillsOriginOrIdRequest(server string, originOrId string, body PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiAgent0CustomSkillsOriginOrIdRequest calls the generic PutApiAgent0CustomSkillsOriginOrId builder with application/json body
func NewPutApiAgent0CustomSkillsOriginOrIdRequestWithBody ¶ added in v1.29.0
func NewPutApiAgent0CustomSkillsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiAgent0CustomSkillsOriginOrIdRequestWithBody constructs an http.Request for the PutApiAgent0CustomSkillsOriginOrId method, with any body, and a specified content type
func NewPutApiAgenticWorkflowsOriginOrIdRequest ¶ added in v1.17.0
func NewPutApiAgenticWorkflowsOriginOrIdRequest(server string, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, body PutApiAgenticWorkflowsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiAgenticWorkflowsOriginOrIdRequest calls the generic PutApiAgenticWorkflowsOriginOrId builder with application/json body
func NewPutApiAgenticWorkflowsOriginOrIdRequestWithBody ¶ added in v1.17.0
func NewPutApiAgenticWorkflowsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiAgenticWorkflowsOriginOrIdRequestWithBody constructs an http.Request for the PutApiAgenticWorkflowsOriginOrId method, with any body, and a specified content type
func NewPutApiAlertingCheckRulesOriginOrIdRequest ¶
func NewPutApiAlertingCheckRulesOriginOrIdRequest(server string, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, body PutApiAlertingCheckRulesOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiAlertingCheckRulesOriginOrIdRequest calls the generic PutApiAlertingCheckRulesOriginOrId builder with application/json body
func NewPutApiAlertingCheckRulesOriginOrIdRequestWithBody ¶
func NewPutApiAlertingCheckRulesOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiAlertingCheckRulesOriginOrIdRequestWithBody constructs an http.Request for the PutApiAlertingCheckRulesOriginOrId method, with any body, and a specified content type
func NewPutApiAuthTokensOriginOrIdRequest ¶ added in v1.25.0
func NewPutApiAuthTokensOriginOrIdRequest(server string, originOrId string, body PutApiAuthTokensOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiAuthTokensOriginOrIdRequest calls the generic PutApiAuthTokensOriginOrId builder with application/json body
func NewPutApiAuthTokensOriginOrIdRequestWithBody ¶ added in v1.25.0
func NewPutApiAuthTokensOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiAuthTokensOriginOrIdRequestWithBody constructs an http.Request for the PutApiAuthTokensOriginOrId method, with any body, and a specified content type
func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequest ¶ added in v1.28.0
func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequest(server string, integrationId openapi_types.UUID, body PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody) (*http.Request, error)
NewPutApiAwsMetricScrapeConfigsIntegrationIdRequest calls the generic PutApiAwsMetricScrapeConfigsIntegrationId builder with application/json body
func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequestWithBody ¶ added in v1.28.0
func NewPutApiAwsMetricScrapeConfigsIntegrationIdRequestWithBody(server string, integrationId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewPutApiAwsMetricScrapeConfigsIntegrationIdRequestWithBody constructs an http.Request for the PutApiAwsMetricScrapeConfigsIntegrationId method, with any body, and a specified content type
func NewPutApiDashboardsOriginOrIdRequest ¶
func NewPutApiDashboardsOriginOrIdRequest(server string, originOrId string, params *PutApiDashboardsOriginOrIdParams, body PutApiDashboardsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiDashboardsOriginOrIdRequest calls the generic PutApiDashboardsOriginOrId builder with application/json body
func NewPutApiDashboardsOriginOrIdRequestWithBody ¶
func NewPutApiDashboardsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiDashboardsOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiDashboardsOriginOrIdRequestWithBody constructs an http.Request for the PutApiDashboardsOriginOrId method, with any body, and a specified content type
func NewPutApiDatasetsOriginOrIdRequest ¶ added in v1.24.0
func NewPutApiDatasetsOriginOrIdRequest(server string, originOrId string, body PutApiDatasetsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiDatasetsOriginOrIdRequest calls the generic PutApiDatasetsOriginOrId builder with application/json body
func NewPutApiDatasetsOriginOrIdRequestWithBody ¶ added in v1.24.0
func NewPutApiDatasetsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiDatasetsOriginOrIdRequestWithBody constructs an http.Request for the PutApiDatasetsOriginOrId method, with any body, and a specified content type
func NewPutApiImportSignalToMetricsRequest ¶ added in v1.12.3
func NewPutApiImportSignalToMetricsRequest(server string, params *PutApiImportSignalToMetricsParams, body PutApiImportSignalToMetricsJSONRequestBody) (*http.Request, error)
NewPutApiImportSignalToMetricsRequest calls the generic PutApiImportSignalToMetrics builder with application/json body
func NewPutApiImportSignalToMetricsRequestWithBody ¶ added in v1.12.3
func NewPutApiImportSignalToMetricsRequestWithBody(server string, params *PutApiImportSignalToMetricsParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiImportSignalToMetricsRequestWithBody constructs an http.Request for the PutApiImportSignalToMetrics method, with any body, and a specified content type
func NewPutApiMembersMemberIDRoleRequest ¶ added in v1.23.0
func NewPutApiMembersMemberIDRoleRequest(server string, memberID string, body PutApiMembersMemberIDRoleJSONRequestBody) (*http.Request, error)
NewPutApiMembersMemberIDRoleRequest calls the generic PutApiMembersMemberIDRole builder with application/json body
func NewPutApiMembersMemberIDRoleRequestWithBody ¶ added in v1.23.0
func NewPutApiMembersMemberIDRoleRequestWithBody(server string, memberID string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiMembersMemberIDRoleRequestWithBody constructs an http.Request for the PutApiMembersMemberIDRole method, with any body, and a specified content type
func NewPutApiNotificationChannelsOriginOrIdRequest ¶ added in v1.9.0
func NewPutApiNotificationChannelsOriginOrIdRequest(server string, originOrId string, body PutApiNotificationChannelsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiNotificationChannelsOriginOrIdRequest calls the generic PutApiNotificationChannelsOriginOrId builder with application/json body
func NewPutApiNotificationChannelsOriginOrIdRequestWithBody ¶ added in v1.9.0
func NewPutApiNotificationChannelsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiNotificationChannelsOriginOrIdRequestWithBody constructs an http.Request for the PutApiNotificationChannelsOriginOrId method, with any body, and a specified content type
func NewPutApiRecordingRulesOriginOrIdRequest ¶ added in v1.9.0
func NewPutApiRecordingRulesOriginOrIdRequest(server string, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, body PutApiRecordingRulesOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiRecordingRulesOriginOrIdRequest calls the generic PutApiRecordingRulesOriginOrId builder with application/json body
func NewPutApiRecordingRulesOriginOrIdRequestWithBody ¶ added in v1.9.0
func NewPutApiRecordingRulesOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiRecordingRulesOriginOrIdRequestWithBody constructs an http.Request for the PutApiRecordingRulesOriginOrId method, with any body, and a specified content type
func NewPutApiSamplingRulesOriginOrIdRequest ¶ added in v1.1.0
func NewPutApiSamplingRulesOriginOrIdRequest(server string, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, body PutApiSamplingRulesOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiSamplingRulesOriginOrIdRequest calls the generic PutApiSamplingRulesOriginOrId builder with application/json body
func NewPutApiSamplingRulesOriginOrIdRequestWithBody ¶ added in v1.1.0
func NewPutApiSamplingRulesOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiSamplingRulesOriginOrIdRequestWithBody constructs an http.Request for the PutApiSamplingRulesOriginOrId method, with any body, and a specified content type
func NewPutApiSignalToMetricsOriginOrIdRequest ¶ added in v1.9.0
func NewPutApiSignalToMetricsOriginOrIdRequest(server string, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, body PutApiSignalToMetricsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiSignalToMetricsOriginOrIdRequest calls the generic PutApiSignalToMetricsOriginOrId builder with application/json body
func NewPutApiSignalToMetricsOriginOrIdRequestWithBody ¶ added in v1.9.0
func NewPutApiSignalToMetricsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiSignalToMetricsOriginOrIdRequestWithBody constructs an http.Request for the PutApiSignalToMetricsOriginOrId method, with any body, and a specified content type
func NewPutApiSlosOriginOrIdRequest ¶ added in v1.14.0
func NewPutApiSlosOriginOrIdRequest(server string, originOrId string, params *PutApiSlosOriginOrIdParams, body PutApiSlosOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiSlosOriginOrIdRequest calls the generic PutApiSlosOriginOrId builder with application/json body
func NewPutApiSlosOriginOrIdRequestWithBody ¶ added in v1.14.0
func NewPutApiSlosOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSlosOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiSlosOriginOrIdRequestWithBody constructs an http.Request for the PutApiSlosOriginOrId method, with any body, and a specified content type
func NewPutApiSpamFiltersOriginOrIdRequest ¶ added in v1.12.0
func NewPutApiSpamFiltersOriginOrIdRequest(server string, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, body PutApiSpamFiltersOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiSpamFiltersOriginOrIdRequest calls the generic PutApiSpamFiltersOriginOrId builder with application/json body
func NewPutApiSpamFiltersOriginOrIdRequestWithBody ¶ added in v1.12.0
func NewPutApiSpamFiltersOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiSpamFiltersOriginOrIdRequestWithBody constructs an http.Request for the PutApiSpamFiltersOriginOrId method, with any body, and a specified content type
func NewPutApiSyntheticChecksOriginOrIdRequest ¶
func NewPutApiSyntheticChecksOriginOrIdRequest(server string, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, body PutApiSyntheticChecksOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiSyntheticChecksOriginOrIdRequest calls the generic PutApiSyntheticChecksOriginOrId builder with application/json body
func NewPutApiSyntheticChecksOriginOrIdRequestWithBody ¶
func NewPutApiSyntheticChecksOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiSyntheticChecksOriginOrIdRequestWithBody constructs an http.Request for the PutApiSyntheticChecksOriginOrId method, with any body, and a specified content type
func NewPutApiTeamsOriginOrIdDisplayRequest ¶ added in v1.4.0
func NewPutApiTeamsOriginOrIdDisplayRequest(server string, originOrId string, body PutApiTeamsOriginOrIdDisplayJSONRequestBody) (*http.Request, error)
NewPutApiTeamsOriginOrIdDisplayRequest calls the generic PutApiTeamsOriginOrIdDisplay builder with application/json body
func NewPutApiTeamsOriginOrIdDisplayRequestWithBody ¶ added in v1.4.0
func NewPutApiTeamsOriginOrIdDisplayRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiTeamsOriginOrIdDisplayRequestWithBody constructs an http.Request for the PutApiTeamsOriginOrIdDisplay method, with any body, and a specified content type
func NewPutApiTeamsOriginOrIdRequest ¶ added in v1.17.0
func NewPutApiTeamsOriginOrIdRequest(server string, originOrId string, body PutApiTeamsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiTeamsOriginOrIdRequest calls the generic PutApiTeamsOriginOrId builder with application/json body
func NewPutApiTeamsOriginOrIdRequestWithBody ¶ added in v1.17.0
func NewPutApiTeamsOriginOrIdRequestWithBody(server string, originOrId string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiTeamsOriginOrIdRequestWithBody constructs an http.Request for the PutApiTeamsOriginOrId method, with any body, and a specified content type
func NewPutApiTimeSeriesAggregationsOriginOrIdRequest ¶ added in v1.17.0
func NewPutApiTimeSeriesAggregationsOriginOrIdRequest(server string, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, body PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiTimeSeriesAggregationsOriginOrIdRequest calls the generic PutApiTimeSeriesAggregationsOriginOrId builder with application/json body
func NewPutApiTimeSeriesAggregationsOriginOrIdRequestWithBody ¶ added in v1.17.0
func NewPutApiTimeSeriesAggregationsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiTimeSeriesAggregationsOriginOrIdRequestWithBody constructs an http.Request for the PutApiTimeSeriesAggregationsOriginOrId method, with any body, and a specified content type
func NewPutApiViewsOriginOrIdRequest ¶
func NewPutApiViewsOriginOrIdRequest(server string, originOrId string, params *PutApiViewsOriginOrIdParams, body PutApiViewsOriginOrIdJSONRequestBody) (*http.Request, error)
NewPutApiViewsOriginOrIdRequest calls the generic PutApiViewsOriginOrId builder with application/json body
func NewPutApiViewsOriginOrIdRequestWithBody ¶
func NewPutApiViewsOriginOrIdRequestWithBody(server string, originOrId string, params *PutApiViewsOriginOrIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutApiViewsOriginOrIdRequestWithBody constructs an http.Request for the PutApiViewsOriginOrId method, with any body, and a specified content type
func NormalizeDash0ApiVersion ¶ added in v1.12.3
NormalizeDash0ApiVersion strips a Dash0-owned apiGroup prefix from an apiVersion string and returns the bare version. It accepts:
- Bare versions like "v1alpha1" or "v1alpha2" (no slash, returned as-is).
- Group-prefixed forms whose group is "dash0.com" or a subdomain of "dash0.com" (e.g. "operator.dash0.com/v1alpha1"). The group prefix is removed and only the version after the slash is returned.
ok is false (and version is "") when the apiVersion carries a group prefix that is neither "dash0.com" nor a "*.dash0.com" subdomain — including the pathological "/v1alpha1" (empty prefix) and group names that merely embed "dash0.com" as a substring (e.g. "evildash0.com").
Callers are responsible for matching the returned version against their asset's supported set. This helper only enforces the apiGroup contract: the version itself can be anything once the prefix check passes.
Motivation: the Dash0 Kubernetes operator marshals its custom resources directly into Dash0 API requests, which leaks "metav1.TypeMeta" — so an asset written by the operator carries an apiGroup-prefixed apiVersion rather than the bare version the API contract specifies. Tolerating that prefix on the client side lets old API client builds still read those records.
func Ptr ¶
func Ptr[T any](v T) *T
Ptr returns a pointer to the given value. This is useful for creating pointers to literals when calling API methods that accept optional parameters.
Example:
client.ListDashboards(ctx, dash0.Ptr("default"))
func ResolveTeamMembersToEmails ¶ added in v1.17.0
func ResolveTeamMembersToEmails(ctx context.Context, apiClient Client, team *TeamDefinitionV1Alpha1) error
ResolveTeamMembersToEmails rewrites team.Spec.Members from internal IDs to email addresses using ResolveMemberIDsToEmails. It is a convenience wrapper around the same logic used by the CLI's export path and the Terraform provider's state-normalization path, so both IaC facilities display team membership as emails without duplicating the translation.
A nil team, or a team with an empty Spec.Members, is a no-op. IDs that do not resolve to an email are left in place (via the pass-through behavior of ResolveMemberIDsToEmails). Errors from the underlying members lookup are returned so callers can decide whether the mismatch matters — typical callers log-and-ignore, keeping the raw IDs.
func SetAuthTokenID ¶ added in v1.25.0
func SetAuthTokenID(token *AuthTokenDefinition, id string)
SetAuthTokenID sets the dash0.com/id label (the server-set UUID) on an auth token definition. It initializes the labels struct if needed. It does nothing when id is not a valid UUID.
func SetAuthTokenIDIfAbsent ¶ added in v1.25.0
func SetAuthTokenIDIfAbsent(token *AuthTokenDefinition, id string)
SetAuthTokenIDIfAbsent sets the dash0.com/id label (the server-set UUID) on an auth token definition only if it is not already set. It initializes the labels struct if needed. It does nothing when id is not a valid UUID.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
token := &dash0.AuthTokenDefinition{}
dash0.SetAuthTokenIDIfAbsent(token, "0b9a6a52-1c7c-4a43-9b0e-5d5a8d6f6e11")
dash0.SetAuthTokenIDIfAbsent(token, "7f1c2d3e-4a5b-4c6d-8e7f-9a0b1c2d3e4f")
fmt.Println(token.Metadata.Labels.Dash0Comid)
}
Output: 0b9a6a52-1c7c-4a43-9b0e-5d5a8d6f6e11
func SetAwsMetricScrapeConfigOrigin ¶ added in v1.28.0
func SetAwsMetricScrapeConfigOrigin(cfg *AwsMetricScrapeConfigDefinition, origin string)
SetAwsMetricScrapeConfigOrigin sets the dash0.com/origin label on an AWS metric scrape config. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
cfg := &dash0.AwsMetricScrapeConfigDefinition{}
dash0.SetAwsMetricScrapeConfigOrigin(cfg, "tf_my-config")
fmt.Println(*cfg.Metadata.Labels.Dash0Comorigin)
}
Output: tf_my-config
func SetCheckRuleDataset ¶ added in v1.6.0
func SetCheckRuleDataset(rule *PrometheusAlertRule, dataset string)
SetCheckRuleDataset sets the dataset on a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Name: "HighErrorRate"}
dash0.SetCheckRuleDataset(rule, "production")
fmt.Println(dash0.StringValue(rule.Dataset))
}
Output: production
func SetCheckRuleID ¶ added in v1.6.0
func SetCheckRuleID(rule *PrometheusAlertRule, id string)
SetCheckRuleID sets the ID on a check rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Name: "HighErrorRate"}
dash0.SetCheckRuleID(rule, "cr-42")
fmt.Println(*rule.Id)
}
Output: cr-42
func SetCheckRuleIDIfAbsent ¶ added in v1.6.0
func SetCheckRuleIDIfAbsent(rule *PrometheusAlertRule, id string)
SetCheckRuleIDIfAbsent sets the ID on a check rule definition only if it is not already set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{Id: dash0.Ptr("existing")}
dash0.SetCheckRuleIDIfAbsent(rule, "new-id")
fmt.Println(*rule.Id)
}
Output: existing
func SetCustomSkillID ¶ added in v1.29.0
func SetCustomSkillID(skill *SkillDefinition, id string)
SetCustomSkillID sets the dash0.com/id label on a custom skill, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
dash0.SetCustomSkillID(skill, "skill_01")
dash0.SetCustomSkillID(skill, "skill_02")
fmt.Println(dash0.GetCustomSkillID(skill))
}
Output: skill_02
func SetCustomSkillIDIfAbsent ¶ added in v1.29.0
func SetCustomSkillIDIfAbsent(skill *SkillDefinition, id string)
SetCustomSkillIDIfAbsent sets the dash0.com/id label on a custom skill only if it is not already set, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
dash0.SetCustomSkillIDIfAbsent(skill, "skill_01")
dash0.SetCustomSkillIDIfAbsent(skill, "skill_02")
fmt.Println(dash0.GetCustomSkillID(skill))
}
Output: skill_01
func SetCustomSkillOrigin ¶ added in v1.29.0
func SetCustomSkillOrigin(skill *SkillDefinition, origin string)
SetCustomSkillOrigin sets the dash0.com/origin label on a custom skill, initializing the labels struct if needed. The server stores the origin on create, and it cannot change afterwards.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{}
dash0.SetCustomSkillOrigin(skill, "tf_incident-response")
fmt.Println(dash0.GetCustomSkillOrigin(skill))
}
Output: tf_incident-response
func SetDashboardDataset ¶ added in v1.6.0
func SetDashboardDataset(dashboard *DashboardDefinition, dataset string)
SetDashboardDataset sets the dataset on a dashboard definition, initializing the dash0Extensions struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{}
dash0.SetDashboardDataset(dashboard, "production")
fmt.Println(string(*dashboard.Metadata.Dash0Extensions.Dataset))
}
Output: production
func SetDashboardFolderPath ¶ added in v1.6.0
func SetDashboardFolderPath(dashboard *DashboardDefinition, folderPath string)
SetDashboardFolderPath sets the folder path on a dashboard definition, initializing the annotations struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{}
dash0.SetDashboardFolderPath(dashboard, "/team/sre")
fmt.Println(*dashboard.Metadata.Annotations.Dash0ComfolderPath)
}
Output: /team/sre
func SetDashboardID ¶ added in v1.6.0
func SetDashboardID(dashboard *DashboardDefinition, id string)
SetDashboardID sets the ID on a dashboard definition, initializing the dash0Extensions struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{}
dash0.SetDashboardID(dashboard, "d-456")
fmt.Println(*dashboard.Metadata.Dash0Extensions.Id)
}
Output: d-456
func SetDashboardIDIfAbsent ¶ added in v1.6.0
func SetDashboardIDIfAbsent(dashboard *DashboardDefinition, id string)
SetDashboardIDIfAbsent sets the ID on a dashboard definition only if it is not already set, initializing the dash0Extensions struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Dash0Extensions: &dash0.DashboardMetadataExtensions{
Id: dash0.Ptr("existing"),
},
},
}
// Does not overwrite an existing ID.
dash0.SetDashboardIDIfAbsent(dashboard, "new-id")
fmt.Println(*dashboard.Metadata.Dash0Extensions.Id)
}
Output: existing
func SetDatasetID ¶ added in v1.24.0
func SetDatasetID(dataset *DatasetDefinition, id string)
SetDatasetID sets the slug on a dataset definition, in both spec.slug and the dash0.com/id label, so the two always match. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{Metadata: dash0.DatasetMetadata{Name: "Staging"}}
dash0.SetDatasetID(dataset, "staging")
fmt.Println(dash0.GetDatasetID(dataset))
}
Output: staging
func SetDatasetIDIfAbsent ¶ added in v1.24.0
func SetDatasetIDIfAbsent(dataset *DatasetDefinition, id string)
SetDatasetIDIfAbsent sets the slug on a dataset definition, like SetDatasetID, only if neither spec.slug nor the dash0.com/id label is set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{}
dash0.SetDatasetIDIfAbsent(dataset, "staging")
dash0.SetDatasetIDIfAbsent(dataset, "other")
fmt.Println(dash0.GetDatasetID(dataset))
}
Output: staging
func SetNotificationChannelID ¶ added in v1.9.0
func SetNotificationChannelID(channel *NotificationChannelDefinition, id string)
SetNotificationChannelID sets the dash0.com/id label on a notification channel definition, initializing the labels struct if needed.
func SetNotificationChannelIDIfAbsent ¶ added in v1.9.0
func SetNotificationChannelIDIfAbsent(channel *NotificationChannelDefinition, id string)
SetNotificationChannelIDIfAbsent sets the dash0.com/id label on a notification channel definition only if it is not already set, initializing the labels struct if needed.
func SetNotificationChannelOrigin ¶ added in v1.9.0
func SetNotificationChannelOrigin(channel *NotificationChannelDefinition, origin string)
SetNotificationChannelOrigin sets the dash0.com/origin label on a notification channel definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
channel := &dash0.NotificationChannelDefinition{
Metadata: dash0.NotificationChannelMetadata{Name: "Slack Alerts"},
}
dash0.SetNotificationChannelOrigin(channel, "terraform")
fmt.Println(*channel.Metadata.Labels.Dash0Comorigin)
}
Output: terraform
func SetPersesDashboardDataset ¶ added in v1.6.0
func SetPersesDashboardDataset(perses *PersesDashboard, dataset string)
SetPersesDashboardDataset sets the dash0.com/dataset label on a PersesDashboard CRD, initializing the labels map if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
perses := &dash0.PersesDashboard{}
dash0.SetPersesDashboardDataset(perses, "production")
fmt.Println(perses.Metadata.Labels["dash0.com/dataset"])
}
Output: production
func SetPersesDashboardFolderPath ¶ added in v1.6.0
func SetPersesDashboardFolderPath(perses *PersesDashboard, folderPath string)
SetPersesDashboardFolderPath sets the dash0.com/folder-path annotation on a PersesDashboard CRD, initializing the annotations map if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
perses := &dash0.PersesDashboard{}
dash0.SetPersesDashboardFolderPath(perses, "/team/sre")
fmt.Println(perses.Metadata.Annotations[dash0.AnnotationFolderPath])
}
Output: /team/sre
func SetPersesDashboardID ¶ added in v1.6.0
func SetPersesDashboardID(perses *PersesDashboard, id string)
SetPersesDashboardID sets the dash0.com/id label on a PersesDashboard CRD, initializing the labels map if needed.
func SetPersesDashboardIDIfAbsent ¶ added in v1.6.0
func SetPersesDashboardIDIfAbsent(perses *PersesDashboard, id string)
SetPersesDashboardIDIfAbsent sets the dash0.com/id label on a PersesDashboard CRD only if it is not already set, initializing the labels map if needed.
func SetPrometheusRuleDataset ¶ added in v1.6.0
func SetPrometheusRuleDataset(rule *PrometheusRules, dataset string)
SetPrometheusRuleDataset sets the dash0.com/dataset label on a PrometheusRules CRD, initializing the labels map if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusRules{}
dash0.SetPrometheusRuleDataset(rule, "production")
fmt.Println(rule.Metadata.Labels["dash0.com/dataset"])
}
Output: production
func SetPrometheusRuleID ¶ added in v1.6.0
func SetPrometheusRuleID(rule *PrometheusRules, id string)
SetPrometheusRuleID sets the dash0.com/id label on a PrometheusRules CRD, initializing the labels map if needed.
func SetPrometheusRuleIDIfAbsent ¶ added in v1.6.0
func SetPrometheusRuleIDIfAbsent(rule *PrometheusRules, id string)
SetPrometheusRuleIDIfAbsent sets the dash0.com/id label on a PrometheusRules CRD only if it is not already set, initializing the labels map if needed.
func SetRecordingRuleDataset ¶ added in v1.10.0
func SetRecordingRuleDataset(rule *RecordingRule, dataset string)
SetRecordingRuleDataset sets the dataset on a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Name: "cpu-usage-rules"},
}
dash0.SetRecordingRuleDataset(rule, "production")
fmt.Println((*rule.Metadata.Labels)["dash0.com/dataset"])
}
Output: production
func SetRecordingRuleID ¶ added in v1.10.0
func SetRecordingRuleID(rule *RecordingRule, id string)
SetRecordingRuleID sets the ID on a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Name: "cpu-usage-rules"},
}
dash0.SetRecordingRuleID(rule, "rr-42")
fmt.Println((*rule.Metadata.Labels)["dash0.com/id"])
}
Output: rr-42
func SetRecordingRuleIDIfAbsent ¶ added in v1.10.0
func SetRecordingRuleIDIfAbsent(rule *RecordingRule, id string)
SetRecordingRuleIDIfAbsent sets the ID on a recording rule definition only if it is not already set.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
labels := map[string]string{"dash0.com/id": "existing"}
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Labels: &labels},
}
dash0.SetRecordingRuleIDIfAbsent(rule, "new-id")
fmt.Println((*rule.Metadata.Labels)["dash0.com/id"])
}
Output: existing
func SetSLODataset ¶ added in v1.18.0
func SetSLODataset(slo *SloDefinition, dataset string)
SetSLODataset sets the dataset on an SLO definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{}
dash0.SetSLODataset(slo, "default")
fmt.Println(*slo.Metadata.Labels.Dash0Comdataset)
}
Output: default
func SetSLOID ¶ added in v1.18.0
func SetSLOID(slo *SloDefinition, id string)
SetSLOID sets the dash0.com/id label on an SLO definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{}
dash0.SetSLOID(slo, "slo_01k5vpx97efdnrkqan15b41k84")
fmt.Println(*slo.Metadata.Labels.Dash0Comid)
}
Output: slo_01k5vpx97efdnrkqan15b41k84
func SetSLOIDIfAbsent ¶ added in v1.18.0
func SetSLOIDIfAbsent(slo *SloDefinition, id string)
SetSLOIDIfAbsent sets the dash0.com/id label on an SLO definition only if it is not already set, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{Dash0Comid: dash0.Ptr("existing-id")},
},
}
dash0.SetSLOIDIfAbsent(slo, "new-id")
fmt.Println(*slo.Metadata.Labels.Dash0Comid)
}
Output: existing-id
func SetSamplingRuleDataset ¶ added in v1.28.0
func SetSamplingRuleDataset(rule *SamplingDefinition, dataset string)
SetSamplingRuleDataset sets the dash0.com/dataset label on a sampling rule, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{}
dash0.SetSamplingRuleDataset(rule, "production")
fmt.Println(*rule.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetSamplingRuleID ¶ added in v1.28.0
func SetSamplingRuleID(rule *SamplingDefinition, id string)
SetSamplingRuleID sets the dash0.com/id label on a sampling rule, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{}
dash0.SetSamplingRuleID(rule, "sr-456")
fmt.Println(*rule.Metadata.Labels.Dash0Comid)
}
Output: sr-456
func SetSamplingRuleIDIfAbsent ¶ added in v1.28.0
func SetSamplingRuleIDIfAbsent(rule *SamplingDefinition, id string)
SetSamplingRuleIDIfAbsent sets the dash0.com/id label on a sampling rule only if it is not already set. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{
Labels: &dash0.SamplingLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetSamplingRuleIDIfAbsent(rule, "sr-456")
fmt.Println(*rule.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetSignalToMetricsDataset ¶ added in v1.23.0
func SetSignalToMetricsDataset(rule *SignalToMetricsDefinition, dataset string)
SetSignalToMetricsDataset sets the dash0.com/dataset label on a signal-to-metrics rule, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{}
dash0.SetSignalToMetricsDataset(rule, "production")
fmt.Println(*rule.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetSignalToMetricsID ¶ added in v1.23.0
func SetSignalToMetricsID(rule *SignalToMetricsDefinition, id string)
SetSignalToMetricsID sets the dash0.com/id label on a signal-to-metrics rule, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{}
dash0.SetSignalToMetricsID(rule, "tsa-456")
fmt.Println(*rule.Metadata.Labels.Dash0Comid)
}
Output: tsa-456
func SetSignalToMetricsIDIfAbsent ¶ added in v1.23.0
func SetSignalToMetricsIDIfAbsent(rule *SignalToMetricsDefinition, id string)
SetSignalToMetricsIDIfAbsent sets the dash0.com/id label on a signal-to-metrics rule only if it is not already set. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{
Labels: &dash0.SignalToMetricsLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetSignalToMetricsIDIfAbsent(rule, "tsa-456")
fmt.Println(*rule.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetSpamFilterDataset ¶ added in v1.12.0
func SetSpamFilterDataset(filter *SpamFilter, dataset string)
SetSpamFilterDataset sets the dash0.com/dataset label on a v1alpha1 spam filter, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{}
dash0.SetSpamFilterDataset(filter, "production")
fmt.Println(*filter.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetSpamFilterID ¶ added in v1.12.0
func SetSpamFilterID(filter *SpamFilter, id string)
SetSpamFilterID sets the dash0.com/id label on a v1alpha1 spam filter, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{}
dash0.SetSpamFilterID(filter, "sf-456")
fmt.Println(*filter.Metadata.Labels.Dash0Comid)
}
Output: sf-456
func SetSpamFilterIDIfAbsent ¶ added in v1.12.0
func SetSpamFilterIDIfAbsent(filter *SpamFilter, id string)
SetSpamFilterIDIfAbsent sets the dash0.com/id label on a v1alpha1 spam filter only if it is not already set. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetSpamFilterIDIfAbsent(filter, "new-id")
fmt.Println(*filter.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetSpamFilterV1Alpha2Dataset ¶ added in v1.28.0
func SetSpamFilterV1Alpha2Dataset(filter *SpamFilterV1Alpha2, dataset string)
SetSpamFilterV1Alpha2Dataset sets the dash0.com/dataset label on a v1alpha2 spam filter, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{}
dash0.SetSpamFilterV1Alpha2Dataset(filter, "production")
fmt.Println(*filter.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetSpamFilterV1Alpha2ID ¶ added in v1.28.0
func SetSpamFilterV1Alpha2ID(filter *SpamFilterV1Alpha2, id string)
SetSpamFilterV1Alpha2ID sets the dash0.com/id label on a v1alpha2 spam filter, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{}
dash0.SetSpamFilterV1Alpha2ID(filter, "sf-456")
fmt.Println(*filter.Metadata.Labels.Dash0Comid)
}
Output: sf-456
func SetSpamFilterV1Alpha2IDIfAbsent ¶ added in v1.28.0
func SetSpamFilterV1Alpha2IDIfAbsent(filter *SpamFilterV1Alpha2, id string)
SetSpamFilterV1Alpha2IDIfAbsent sets the dash0.com/id label on a v1alpha2 spam filter only if it is not already set. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{
Labels: &dash0.SpamFilterLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetSpamFilterV1Alpha2IDIfAbsent(filter, "new-id")
fmt.Println(*filter.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetSyntheticCheckDataset ¶ added in v1.6.0
func SetSyntheticCheckDataset(check *SyntheticCheckDefinition, dataset string)
SetSyntheticCheckDataset sets the dataset on a synthetic check definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
check := &dash0.SyntheticCheckDefinition{}
dash0.SetSyntheticCheckDataset(check, "production")
fmt.Println(*check.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetSyntheticCheckID ¶ added in v1.6.0
func SetSyntheticCheckID(check *SyntheticCheckDefinition, id string)
SetSyntheticCheckID sets the dash0.com/id label on a synthetic check definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
check := &dash0.SyntheticCheckDefinition{}
dash0.SetSyntheticCheckID(check, "sc-7")
fmt.Println(*check.Metadata.Labels.Dash0Comid)
}
Output: sc-7
func SetSyntheticCheckIDIfAbsent ¶ added in v1.6.0
func SetSyntheticCheckIDIfAbsent(check *SyntheticCheckDefinition, id string)
SetSyntheticCheckIDIfAbsent sets the dash0.com/id label on a synthetic check definition only if it is not already set, initializing the labels struct if needed.
func SetTeamID ¶ added in v1.17.0
func SetTeamID(team *TeamDefinitionV1Alpha1, id string)
SetTeamID sets the dash0.com/id label on a team definition, initializing the labels struct if needed. No-op when the team is nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{Name: "backend-team"},
}
dash0.SetTeamID(team, "00000000-0000-0000-0000-000000000001")
fmt.Println(*team.Metadata.Labels.Dash0Comid)
}
Output: 00000000-0000-0000-0000-000000000001
func SetTeamIDIfAbsent ¶ added in v1.17.0
func SetTeamIDIfAbsent(team *TeamDefinitionV1Alpha1, id string)
SetTeamIDIfAbsent sets the dash0.com/id label on a team definition only when it is not already set. No-op when the team is nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{
Labels: &dash0.TeamLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetTeamIDIfAbsent(team, "new-id")
fmt.Println(*team.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetTimeSeriesAggregationDataset ¶ added in v1.22.0
func SetTimeSeriesAggregationDataset(aggregation *TimeSeriesAggregationDefinition, dataset string)
SetTimeSeriesAggregationDataset sets the dash0.com/dataset label on a time series aggregation definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{}
dash0.SetTimeSeriesAggregationDataset(aggregation, "production")
fmt.Println(*aggregation.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetTimeSeriesAggregationID ¶ added in v1.22.0
func SetTimeSeriesAggregationID(aggregation *TimeSeriesAggregationDefinition, id string)
SetTimeSeriesAggregationID sets the dash0.com/id label on a time series aggregation definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{}
dash0.SetTimeSeriesAggregationID(aggregation, "tsa-456")
fmt.Println(*aggregation.Metadata.Labels.Dash0Comid)
}
Output: tsa-456
func SetTimeSeriesAggregationIDIfAbsent ¶ added in v1.22.0
func SetTimeSeriesAggregationIDIfAbsent(aggregation *TimeSeriesAggregationDefinition, id string)
SetTimeSeriesAggregationIDIfAbsent sets the dash0.com/id label on a time series aggregation definition only if it is not already set. It initializes the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{
Labels: &dash0.TimeSeriesAggregationLabels{Dash0Comid: dash0.Ptr("existing")},
},
}
// Does not overwrite an existing ID.
dash0.SetTimeSeriesAggregationIDIfAbsent(aggregation, "tsa-456")
fmt.Println(*aggregation.Metadata.Labels.Dash0Comid)
}
Output: existing
func SetViewDataset ¶ added in v1.6.0
func SetViewDataset(view *ViewDefinition, dataset string)
SetViewDataset sets the dataset on a view definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
view := &dash0.ViewDefinition{}
dash0.SetViewDataset(view, "production")
fmt.Println(*view.Metadata.Labels.Dash0Comdataset)
}
Output: production
func SetViewID ¶ added in v1.6.0
func SetViewID(view *ViewDefinition, id string)
SetViewID sets the dash0.com/id label on a view definition, initializing the labels struct if needed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
view := &dash0.ViewDefinition{}
dash0.SetViewID(view, "v-99")
fmt.Println(*view.Metadata.Labels.Dash0Comid)
}
Output: v-99
func SetViewIDIfAbsent ¶ added in v1.6.0
func SetViewIDIfAbsent(view *ViewDefinition, id string)
SetViewIDIfAbsent sets the dash0.com/id label on a view definition only if it is not already set, initializing the labels struct if needed.
func SpansExplorerURL ¶ added in v1.13.0
func SpansExplorerURL(apiURL string, filters []DeeplinkFilter, from, to string, dataset *string) string
SpansExplorerURL builds a deep link to the Dash0 traces explorer. The URL includes optional filter criteria, time range, and optional dataset as query parameters. It returns an empty string if the API URL is empty or cannot be parsed.
func String ¶
String returns a pointer to the given string value. This is a convenience wrapper around Ptr for the common case of string pointers.
Example:
client.ListDashboards(ctx, dash0.String("default"))
func StringValue ¶
StringValue returns the value of a string pointer, or empty string if nil.
func StripAuthTokenServerFields ¶ added in v1.25.0
func StripAuthTokenServerFields(token *AuthTokenDefinition)
StripAuthTokenServerFields removes server-generated fields from an auth token definition. It clears the annotations and the dash0.com/id and dash0.com/source labels. It keeps dash0.com/origin, which is client-settable and identifies the auth token on update, so a copy created in the same organization needs a new origin.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
token := &dash0.AuthTokenDefinition{
Metadata: dash0.AuthTokenMetadata{Labels: &dash0.AuthTokenLabels{Dash0Comorigin: dash0.Ptr("ci"), Dash0Comsource: dash0.Ptr(dash0.Api)}},
}
dash0.StripAuthTokenServerFields(token)
fmt.Println(*token.Metadata.Labels.Dash0Comorigin, token.Metadata.Labels.Dash0Comsource == nil)
}
Output: ci true
func StripAwsMetricScrapeConfigServerFields ¶ added in v1.28.0
func StripAwsMetricScrapeConfigServerFields(cfg *AwsMetricScrapeConfigDefinition)
StripAwsMetricScrapeConfigServerFields removes server-managed fields from an AWS metric scrape config. It removes metadata.name, the dash0.com/id, dash0.com/dataset, and dash0.com/source labels, and the created-at and updated-at annotations. The dash0.com/origin label is kept, because clients may set it.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
cfg := &dash0.AwsMetricScrapeConfigDefinition{
ApiVersion: dash0.AwsMetricScrapeConfigApiVersionDash0Comv1alpha1,
Kind: dash0.Dash0AwsMetricScrapeConfig,
Metadata: dash0.AwsMetricScrapeConfigMetadata{
Labels: &dash0.AwsMetricScrapeConfigLabels{
Dash0Comid: dash0.Ptr("491cb653-954b-4d0b-a84c-4b426b562938"),
Dash0Comdataset: dash0.Ptr("default"),
Dash0Comorigin: dash0.Ptr("tf_my-config"),
},
},
Spec: dash0.AwsMetricScrapeConfigSpec{
Namespaces: []dash0.AwsMetricScrapeConfigNamespace{
{Namespace: "AWS/Lambda", Metrics: []string{"Errors", "Invocations"}},
},
},
}
// Strip a fetched config before comparing it with the desired one or sending it back.
dash0.StripAwsMetricScrapeConfigServerFields(cfg)
fmt.Println(dash0.GetAwsMetricScrapeConfigOrigin(cfg), cfg.Metadata.Labels.Dash0Comid == nil)
}
Output: tf_my-config true
func StripCheckRuleServerFields ¶ added in v1.6.0
func StripCheckRuleServerFields(rule *PrometheusAlertRule)
StripCheckRuleServerFields removes server-generated fields from a check rule definition. When this leaves Metadata.Annotations or Metadata empty, it sets them to nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.PrometheusAlertRule{
Name: "HighErrorRate",
Dataset: dash0.Ptr("prod"),
}
dash0.StripCheckRuleServerFields(rule)
fmt.Println(rule.Dataset == nil)
}
Output: true
func StripCustomSkillServerFields ¶ added in v1.29.0
func StripCustomSkillServerFields(skill *SkillDefinition)
StripCustomSkillServerFields removes the fields the server sets or derives from a custom skill, so the result can be sent back on a write. It keeps dash0.com/id and dash0.com/origin, which address the skill on an update, and the user-defined spec.files and spec.permissions. It removes spec.source, because a skill managed with an origin cannot carry one, and dash0.com/enabled, because it is per-user state. It drops the admin grant the server always adds, unless that grant turns the skill off by default.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
skill := &dash0.SkillDefinition{
Metadata: dash0.SkillMetadata{
Name: dash0.Ptr("incident-response"),
Labels: &dash0.SkillLabels{Dash0Comorigin: dash0.Ptr("tf_incident-response"), Dash0Comversion: dash0.Ptr("3")},
},
Spec: dash0.SkillSpec{
Permissions: &[]dash0.SkillPermission{
{Role: dash0.Ptr("admin"), Actions: []dash0.CustomSkillAction{dash0.CustomSkillRead, dash0.CustomSkillDelete}},
{Role: dash0.Ptr("basic_member"), Actions: []dash0.CustomSkillAction{dash0.CustomSkillRead}},
},
},
}
dash0.StripCustomSkillServerFields(skill)
fmt.Println(dash0.GetCustomSkillOrigin(skill), skill.Metadata.Labels.Dash0Comversion == nil, len(*skill.Spec.Permissions))
}
Output: tf_incident-response true 1
func StripDashboardServerFields ¶ added in v1.6.0
func StripDashboardServerFields(dashboard *DashboardDefinition)
StripDashboardServerFields removes server-generated metadata fields from a dashboard definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dashboard := &dash0.DashboardDefinition{
Metadata: dash0.DashboardMetadata{
Version: dash0.Ptr(int64(3)),
},
}
dash0.StripDashboardServerFields(dashboard)
fmt.Println(dashboard.Metadata.Version == nil)
}
Output: true
func StripDatasetServerFields ¶ added in v1.24.0
func StripDatasetServerFields(dataset *DatasetDefinition)
StripDatasetServerFields removes server-generated fields from a dataset definition. It also clears the dash0.com/version label, so a stripped copy sent to Client.UpdateDataset skips the version check. It keeps dash0.com/origin, which is client-settable and identifies the dataset on update, so a copy created in the same organization needs a new origin.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
dataset := &dash0.DatasetDefinition{
Metadata: dash0.DatasetMetadata{
Labels: &dash0.DatasetLabels{Dash0Comid: dash0.String("staging"), Dash0Comversion: dash0.Ptr("3")},
},
}
dash0.StripDatasetServerFields(dataset)
fmt.Println(dash0.GetDatasetID(dataset), dataset.Metadata.Labels.Dash0Comversion == nil)
}
Output: staging true
func StripNotificationChannelServerFields ¶ added in v1.9.0
func StripNotificationChannelServerFields(channel *NotificationChannelDefinition)
StripNotificationChannelServerFields removes server-generated fields from a notification channel definition. It clears the created-at/updated-at annotations, the dash0.com/id label, and spec.routing.assets. The assets list is a read-only back-reference the server derives from the check rules and synthetic checks bound to the channel — the API silently ignores any value supplied on write, so stripping it keeps write payloads honest and stops derived server state from churning IaC diffs. Bindings are managed on the other resource: the check rule's dash0.com/notification-channel-ids annotation, or the synthetic check's spec.notifications.channels. spec.routing.filters is user-managed and preserved.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
channel := &dash0.NotificationChannelDefinition{
Metadata: dash0.NotificationChannelMetadata{Name: "Slack Alerts"},
}
dash0.SetNotificationChannelID(channel, "nc-123")
dash0.StripNotificationChannelServerFields(channel)
fmt.Println(channel.Metadata.Labels.Dash0Comid == nil)
}
Output: true
func StripRecordingRuleServerFields ¶ added in v1.10.0
func StripRecordingRuleServerFields(rule *RecordingRule)
StripRecordingRuleServerFields removes server-generated fields from a recording rule definition.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
labels := map[string]string{
"dash0.com/id": "rr-42",
"dash0.com/origin": "terraform",
}
rule := &dash0.RecordingRule{
Metadata: dash0.PrometheusRuleMetadata{Labels: &labels},
}
dash0.StripRecordingRuleServerFields(rule)
_, hasID := (*rule.Metadata.Labels)["dash0.com/id"]
fmt.Println(hasID)
}
Output: false
func StripSLOServerFields ¶ added in v1.18.0
func StripSLOServerFields(slo *SloDefinition)
StripSLOServerFields removes server-generated fields from an SLO definition.
This includes dash0.com/id: unlike dashboards, views, check rules, and synthetic checks — whose ids are client-settable upsert keys and therefore user intent — SLO ids are assigned by the server (`slo_<ulid>`) and cannot be chosen by a caller. The id is server-managed metadata, so it is stripped here alongside version/origin/dataset/source, matching StripSpamFilterServerFields, StripNotificationChannelServerFields, StripRecordingRuleServerFields, and StripTeamServerFields, which all clear their (likewise non-client-settable) ids.
Note that dash0.com/origin is stripped here even though StripTeamServerFields deliberately preserves a team's origin. The two are not equivalent: a team's origin is client-settable on create, so it must survive into the request body, whereas every reserved dash0.com/* label on an SLO — origin included — is ignored when supplied by a caller (an SLO's origin is populated through the internal API used by the operator and the Terraform provider, which carry it in the request path rather than the body). Stripping it is therefore a no-op for public writes, not a loss of user intent.
User-defined (non-dash0.com/*) labels and annotations are preserved.
Callers that need the id must read it (via GetSLOID) before calling this.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
slo := &dash0.SloDefinition{
Metadata: dash0.SloMetadata{
Labels: &dash0.SloLabels{
Dash0Comid: dash0.Ptr("slo_01k5vpx97efdnrkqan15b41k84"),
Dash0Comversion: dash0.Ptr("2"),
Dash0Comdataset: dash0.Ptr("default"),
Dash0Comorigin: dash0.Ptr("my-origin"),
},
},
}
// Read any identifier you still need before stripping — the id is
// server-assigned for SLOs, so it is removed along with the other
// server-managed labels.
id := dash0.GetSLOID(slo)
dash0.StripSLOServerFields(slo)
fmt.Println(id, dash0.GetSLOID(slo) == "", slo.Metadata.Labels.Dash0Comversion == nil)
}
Output: slo_01k5vpx97efdnrkqan15b41k84 true true
func StripSamplingRuleServerFields ¶ added in v1.28.0
func StripSamplingRuleServerFields(rule *SamplingDefinition)
StripSamplingRuleServerFields removes server-generated fields from a sampling rule.
Sampling rules carry no annotations, so only the server-managed labels are cleared. The dash0.com/id label is preserved, so a stripped rule still addresses the same rule on update. User-set fields such as spec.enabled and the custom labels are left untouched. Callers that want a definition suitable for creating a new rule should also call ClearSamplingRuleID.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SamplingDefinition{
Metadata: dash0.SamplingMetadata{
Name: "keep-errors",
Labels: &dash0.SamplingLabels{
Dash0Comid: dash0.Ptr("sr-123"),
Dash0Comversion: dash0.Ptr("2"),
},
},
Spec: dash0.SamplingSpec{Enabled: true},
}
dash0.StripSamplingRuleServerFields(rule)
// The version is server-assigned and is cleared.
// The ID and the user-set enabled flag are preserved, so the rule round-trips unchanged on update.
fmt.Println(rule.Metadata.Labels.Dash0Comversion == nil)
fmt.Println(dash0.GetSamplingRuleID(rule))
fmt.Println(rule.Spec.Enabled)
}
Output: true sr-123 true
func StripSignalToMetricsServerFields ¶ added in v1.23.0
func StripSignalToMetricsServerFields(rule *SignalToMetricsDefinition)
StripSignalToMetricsServerFields removes server-generated fields from a signal-to-metrics rule.
All three annotation timestamps are server-assigned and are cleared. The dash0.com/id label is preserved, so a stripped rule still addresses the same rule on update. Callers that want a definition suitable for creating a new rule should also call ClearSignalToMetricsID.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
rule := &dash0.SignalToMetricsDefinition{
Metadata: dash0.SignalToMetricsMetadata{
Name: "checkout-span-count",
Labels: &dash0.SignalToMetricsLabels{
Dash0Comid: dash0.Ptr("s2m-123"),
Dash0Comversion: dash0.Ptr("2"),
},
},
}
dash0.StripSignalToMetricsServerFields(rule)
// The version is server-assigned and is cleared; the ID is preserved so the
// definition still addresses the same rule on update.
fmt.Println(rule.Metadata.Labels.Dash0Comversion == nil)
fmt.Println(dash0.GetSignalToMetricsID(rule))
}
Output: true s2m-123
func StripSpamFilterServerFields ¶ added in v1.12.0
func StripSpamFilterServerFields(filter *SpamFilter)
StripSpamFilterServerFields removes the server-managed fields from a v1alpha1 spam filter, so that it can be sent in a create or update request. It clears the dash0.com/id and dash0.com/source labels. It keeps the dash0.com/enabled annotation, the dash0.com/origin and dash0.com/dataset labels, and the custom labels.
The origin is the filter's identity for an upsert by origin, so a filter recreated from a stripped copy keeps it and a later upsert by that origin finds it. A caller that updates the filter by ID must read the ID before stripping.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilter{
Metadata: dash0.SpamFilterMetadata{
Name: "Drop noisy health checks",
Annotations: &dash0.SpamFilterAnnotations{Dash0Comenabled: dash0.Ptr(dash0.False)},
Labels: &dash0.SpamFilterLabels{
Dash0Comid: dash0.Ptr("sf-123"),
Dash0Comorigin: dash0.Ptr("tf_health"),
},
},
}
dash0.StripSpamFilterServerFields(filter)
// The ID is gone, while the origin and the disabled state stay.
fmt.Println(filter.Metadata.Labels.Dash0Comid == nil, *filter.Metadata.Labels.Dash0Comorigin)
fmt.Println(*filter.Metadata.Annotations.Dash0Comenabled)
}
Output: true tf_health false
func StripSpamFilterV1Alpha2ServerFields ¶ added in v1.28.0
func StripSpamFilterV1Alpha2ServerFields(filter *SpamFilterV1Alpha2)
StripSpamFilterV1Alpha2ServerFields removes the server-managed fields from a v1alpha2 spam filter, so that it can be sent in a create or update request. It clears and keeps the same fields as StripSpamFilterServerFields.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
filter := &dash0.SpamFilterV1Alpha2{
Metadata: dash0.SpamFilterMetadata{
Name: "Drop noisy health checks",
Annotations: &dash0.SpamFilterAnnotations{Dash0Comenabled: dash0.Ptr(dash0.False)},
Labels: &dash0.SpamFilterLabels{
Dash0Comid: dash0.Ptr("sf-123"),
Dash0Comdataset: dash0.Ptr("production"),
},
},
}
dash0.StripSpamFilterV1Alpha2ServerFields(filter)
// The ID is gone, while the dataset and the disabled state stay.
fmt.Println(filter.Metadata.Labels.Dash0Comid == nil, *filter.Metadata.Labels.Dash0Comdataset, *filter.Metadata.Annotations.Dash0Comenabled)
}
Output: true production false
func StripSyntheticCheckServerFields ¶ added in v1.6.0
func StripSyntheticCheckServerFields(check *SyntheticCheckDefinition)
StripSyntheticCheckServerFields removes server-generated fields from a synthetic check definition.
func StripTeamServerFields ¶ added in v1.17.0
func StripTeamServerFields(team *TeamDefinitionV1Alpha1)
StripTeamServerFields clears the server-managed fields from a team definition so callers can round-trip a team through a write endpoint without accidentally shipping a stale server-set ID, origin, or source. Cleared fields are:
- metadata.labels["dash0.com/id"], [".../origin"], [".../source"].
Arbitrary user-supplied labels are preserved. No-op when the team is nil.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
team := &dash0.TeamDefinitionV1Alpha1{
Metadata: dash0.TeamMetadata{
Name: "backend-team",
Labels: &dash0.TeamLabels{
Dash0Comid: dash0.Ptr("00000000-0000-0000-0000-000000000001"),
Dash0Comorigin: dash0.Ptr("00000000-0000-0000-0000-000000000001"),
},
},
}
dash0.StripTeamServerFields(team)
// dash0.com/origin is preserved because it is client-settable on create
// and immutable after; IaC callers rely on it for PUT-by-origin idempotency.
fmt.Println(team.Metadata.Labels.Dash0Comid == nil)
fmt.Println(*team.Metadata.Labels.Dash0Comorigin)
fmt.Println(team.Metadata.Name)
}
Output: true 00000000-0000-0000-0000-000000000001 backend-team
func StripTimeSeriesAggregationServerFields ¶ added in v1.22.0
func StripTimeSeriesAggregationServerFields(aggregation *TimeSeriesAggregationDefinition)
StripTimeSeriesAggregationServerFields removes server-generated fields from a time series aggregation definition.
All three annotation timestamps are server-assigned and are cleared. The dash0.com/id label is preserved, so a stripped definition still addresses the same aggregation on update. Callers that want a definition suitable for creating a new aggregation should also call ClearTimeSeriesAggregationID.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
aggregation := &dash0.TimeSeriesAggregationDefinition{
Metadata: dash0.TimeSeriesAggregationMetadata{
Name: "http-request-duration-rollup",
Labels: &dash0.TimeSeriesAggregationLabels{
Dash0Comid: dash0.Ptr("tsa-123"),
Dash0Comversion: dash0.Ptr("2"),
},
},
}
dash0.StripTimeSeriesAggregationServerFields(aggregation)
// The version is server-assigned and is cleared; the ID is preserved so the
// definition still addresses the same aggregation on update.
fmt.Println(aggregation.Metadata.Labels.Dash0Comversion == nil)
fmt.Println(dash0.GetTimeSeriesAggregationID(aggregation))
}
Output: true tsa-123
func StripViewServerFields ¶ added in v1.6.0
func StripViewServerFields(view *ViewDefinition)
StripViewServerFields removes server-generated fields from a view definition.
func TracesExplorerURL ¶ added in v1.13.0
TracesExplorerURL builds a deep link to the Dash0 traces explorer for a specific trace. The URL includes the trace ID and optional dataset as query parameters. It returns an empty string if the API URL is empty or cannot be parsed.
func ViewDeeplinkURL ¶ added in v1.13.0
ViewDeeplinkURL constructs a Dash0 web app deep link for a view, using the view's type to select the correct page (for example "/goto/traces/explorer" for span views, "/goto/logs" for log views).
When dataset is non-nil and non-empty, a `dataset=<dataset>` query parameter is appended so the web app opens the view scoped to that dataset.
It returns an empty string if the API URL cannot be parsed or the view type has no associated page.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
fmt.Println(dash0.ViewDeeplinkURL("https://api.us-west-2.aws.dash0.com", dash0.ViewTypeSpans, "view-7", dash0.Ptr("production")))
}
Output: https://app.dash0.com/goto/traces/explorer?dataset=production&view_id=view-7
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) generatedClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
Types ¶
type APIError ¶
type APIError struct {
// StatusCode is the HTTP status code.
StatusCode int
// Status is the HTTP status text.
Status string
// Body is the raw response body.
Body string
// Message is the error message extracted from the response.
Message string
// TraceID is the trace ID from the x-trace-id header if available.
TraceID string
}
APIError represents an error response from the Dash0 API.
func NewAPIError ¶
NewAPIError creates an APIError from an HTTP response. Note: This function tries to read the response body. If the body has already been read (e.g., by oapi-codegen), use newAPIErrorWithBody instead.
type AccessibleAsset ¶ added in v1.4.0
type AccessibleAsset struct {
// CreatedAt A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
CreatedAt FixedTime `json:"createdAt"`
Creator *MemberDefinition `json:"creator,omitempty"`
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset Dataset `json:"dataset"`
// HasAccess returns the information if the logged-in user has access to this asset
HasAccess bool `json:"hasAccess"`
Id string `json:"id"`
Name string `json:"name"`
PermittedActions []Action `json:"permittedActions"`
// Type returns for views the information which type of view it is
Type *string `json:"type,omitempty"`
}
AccessibleAsset defines model for AccessibleAsset.
type Action ¶ added in v1.4.0
type Action = string
Action Not defined as an enum, because we will eventually support wildcards like `ingest:*`.
type AddTeamMembersRequest ¶ added in v1.4.0
type AddTeamMembersRequest struct {
// MemberIds Add an existing organization member to this team.
MemberIds []string `json:"memberIds"`
}
AddTeamMembersRequest defines model for AddTeamMembersRequest.
type Agent0ModelClassPreference ¶ added in v1.23.0
type Agent0ModelClassPreference string
Agent0ModelClassPreference A capability/cost tier for Agent0 investigations. The concrete model each tier resolves to is a deployment-internal implementation detail and is never exposed here. - `light`: Trivial or high-volume questions where speed and cost matter more than depth. - `standard`: Everyday questions and single-signal analysis. - `advanced`: Failed checks and slow services where the cause spans more than one signal. - `premium`: Live incidents and post-mortems, where being right matters more than being fast.
const ( Agent0ModelClassPreferenceAdvanced Agent0ModelClassPreference = "advanced" Agent0ModelClassPreferenceLight Agent0ModelClassPreference = "light" Agent0ModelClassPreferencePremium Agent0ModelClassPreference = "premium" Agent0ModelClassPreferenceStandard Agent0ModelClassPreference = "standard" )
Defines values for Agent0ModelClassPreference.
func (Agent0ModelClassPreference) Valid ¶ added in v1.29.0
func (e Agent0ModelClassPreference) Valid() bool
Valid indicates whether the value is a known member of the Agent0ModelClassPreference enum.
type Agent0ModelMaker ¶ added in v1.23.0
type Agent0ModelMaker string
Agent0ModelMaker Who trains and owns the model an Agent0 model class runs, independent of the `Agent0ModelProvider` serving it — Claude is made by Anthropic whether Anthropic's own API, Amazon Bedrock, or Google Vertex AI serves it. - `alibaba`: A Qwen model. - `amazon`: An Amazon Nova model. - `anthropic`: A Claude model. - `cohere`: A Cohere Command model. - `deepseek`: A DeepSeek model. - `google`: A Gemini or Gemma model. - `meta`: A Llama model. - `microsoft`: A Phi model. - `mistral`: A Mistral model. - `moonshot`: A Kimi model. - `nvidia`: A Nemotron model. - `openai`: A GPT or o-series model. - `together`: A Together AI Tev1 decision model. - `typesafe`: A TypeSafe Jev decision model. - `xai`: A Grok model. - `zhipu`: A GLM model.
const ( Alibaba Agent0ModelMaker = "alibaba" Amazon Agent0ModelMaker = "amazon" Anthropic Agent0ModelMaker = "anthropic" Cohere Agent0ModelMaker = "cohere" Deepseek Agent0ModelMaker = "deepseek" Google Agent0ModelMaker = "google" Meta Agent0ModelMaker = "meta" Microsoft Agent0ModelMaker = "microsoft" Mistral Agent0ModelMaker = "mistral" Moonshot Agent0ModelMaker = "moonshot" Nvidia Agent0ModelMaker = "nvidia" Openai Agent0ModelMaker = "openai" Together Agent0ModelMaker = "together" Typesafe Agent0ModelMaker = "typesafe" Xai Agent0ModelMaker = "xai" Zhipu Agent0ModelMaker = "zhipu" )
Defines values for Agent0ModelMaker.
func (Agent0ModelMaker) Valid ¶ added in v1.29.0
func (e Agent0ModelMaker) Valid() bool
Valid indicates whether the value is a known member of the Agent0ModelMaker enum.
type Agent0ModelSelection ¶ added in v1.24.0
type Agent0ModelSelection struct {
// Model The `Agent0Model.id` of the picked model, sent back as listed.
Model string `json:"model"`
// ReasoningEffort Omitted means no override at this level; falls through to the next level in the
// user > organization > deployment precedence chain. An effort the model does not offer
// is dropped rather than rejected.
ReasoningEffort *Agent0ReasoningEffort `json:"reasoningEffort,omitempty"`
}
Agent0ModelSelection A pick from an organization's `GetAgent0ModelsResponse.models`: the model it names and the reasoning effort it asks for. The deployment resolves it to what runs. An organization that no longer routes by model ID runs the class the named model belongs to.
type Agent0ModelSpec ¶ added in v1.23.0
type Agent0ModelSpec struct {
// Adaptive Lets the model dynamically decide its own reasoning depth instead of following a fixed
// `reasoningEffort` level.
Adaptive *bool `json:"adaptive,omitempty"`
// BudgetTokens An explicit token budget for extended thinking, passed straight through to providers
// that support one. Meaningless when `thinking` is `false`. A region declares a ceiling —
// a deployment fact, so not expressible here as a `maximum`; a stored spec above it is
// rejected on save, while a per-invocation override is clamped to it.
BudgetTokens *int `json:"budgetTokens,omitempty"`
// ModelClass Omitted means no override at this level; falls through to the next level in the
// user > organization > deployment precedence chain.
ModelClass *Agent0ModelClassPreference `json:"modelClass,omitempty"`
// ModelId Agent0's own ID for one specific model, as an `Agent0SupportedModelSpecs.modelId` in the
// region's catalog lists it (e.g. `claude-5.5-sonnet`, `gpt-6.1-sol`). The model's class
// and maker follow from it. Invalid together with `modelClass` or `modelMaker` at the
// same level, and invalid when the region's catalog does not list it as selectable. An
// organization without model routing runs the class this model belongs to instead.
ModelId *string `json:"modelId,omitempty"`
// ModelMaker The maker pinned with `modelClass`, cascading through the same
// user > organization > deployment precedence chain. Omitted resolves to the maker the
// region serves the selected class from. A maker supplied without `modelClass` at the
// same level, or one the region does not offer for that class, is invalid. Superseded by
// `modelId`, which names the model and therefore its maker.
ModelMaker *Agent0ModelMaker `json:"modelMaker,omitempty"`
// ReasoningEffort Omitted means no override at this level; falls through to the next level in the
// user > organization > deployment precedence chain. Checked against the efforts the
// resolved model offers when the spec names a `modelId`, and against its class otherwise.
ReasoningEffort *Agent0ReasoningEffort `json:"reasoningEffort,omitempty"`
// ReasoningSummary Requests a reasoning summary from providers that support one. Only `auto` is defined
// today.
ReasoningSummary *Agent0ModelSpecReasoningSummary `json:"reasoningSummary,omitempty"`
// Speed A latency-optimized processing mode a provider may offer, independent of `modelClass`.
// `fast` is the only mode defined today; the field stays an enum so a deployment- or
// provider-specific mode can be added later without a breaking shape change.
Speed *Agent0ModelSpeed `json:"speed,omitempty"`
// Thinking Explicitly forces extended thinking on (`true`) or off (`false`), overriding whatever
// `reasoningEffort` and the model's own defaults would otherwise do. Omitted leaves
// thinking behavior to `reasoningEffort` and the model's own defaults.
Thinking *bool `json:"thinking,omitempty"`
}
Agent0ModelSpec What a caller asks a model to be: either a model class or one specific model, a reasoning effort, and per-invocation knobs. Where the call actually runs is never part of a submitted or stored spec: `provider` and `credentialSource` are resolved fresh at invocation and never written to storage. `modelId` and `modelClass` are alternatives on one axis: a level names at most one of them, and whichever the winning level names replaces the other wholesale rather than combining with it. Model class and maker travel together through the same precedence chain as an inseparable pair: maker cannot be specified without a model class, and when a level names a class without a maker, it resolves from that class's deployment catalog entry rather than inheriting a maker some other level happened to set. On an invocation that chain is request > thread > user > organization > deployment; a stored default (organization, user) or an automation has no request or thread level and so resolves through the last three alone. Reasoning effort cascades independently of class and maker through the same chain, and is not independent of them at the end of it, though — a model class supports only some reasoning-effort levels (e.g. `light` supports none), so an effort the resolved class does not offer is dropped rather than rejected, and the pair that runs is always a combination the class actually serves. The remaining fields are optional, per-invocation-only knobs: they are never resolved through the user > organization > deployment cascade or validated against per-model-class availability today. They are set wherever an `Agent0ModelSpec` is accepted as an override — a single request, or a persisted automation spec that is then resolved on every run of it — and passed straight through (where a target provider understands them) without further interpretation.
type Agent0ModelSpecReasoningSummary ¶ added in v1.23.0
type Agent0ModelSpecReasoningSummary string
Agent0ModelSpecReasoningSummary Requests a reasoning summary from providers that support one. Only `auto` is defined today.
const (
Auto Agent0ModelSpecReasoningSummary = "auto"
)
Defines values for Agent0ModelSpecReasoningSummary.
func (Agent0ModelSpecReasoningSummary) Valid ¶ added in v1.29.0
func (e Agent0ModelSpecReasoningSummary) Valid() bool
Valid indicates whether the value is a known member of the Agent0ModelSpecReasoningSummary enum.
type Agent0ModelSpeed ¶ added in v1.23.0
type Agent0ModelSpeed string
Agent0ModelSpeed A latency-optimized processing mode a provider may offer, independent of `modelClass`. `fast` is the only mode defined today; the field stays an enum so a deployment- or provider-specific mode can be added later without a breaking shape change.
const (
Fast Agent0ModelSpeed = "fast"
)
Defines values for Agent0ModelSpeed.
func (Agent0ModelSpeed) Valid ¶ added in v1.29.0
func (e Agent0ModelSpeed) Valid() bool
Valid indicates whether the value is a known member of the Agent0ModelSpeed enum.
type Agent0ReasoningEffort ¶ added in v1.23.0
type Agent0ReasoningEffort string
Agent0ReasoningEffort A reasoning-effort preference for Agent0 investigations, passed straight through to the underlying model's own reasoning-effort parameter where the model supports one. Not every model class supports every level (a light-tier model, for example, supports none of them), so a level is only meaningful paired with a model class; see Agent0ModelSpec.
- `low`: Minimal reasoning — fastest responses, lowest cost.
- `medium`: The default balance of reasoning depth against latency and cost.
- `high`: Deeper reasoning for problems the default balance underserves.
- `xhigh`: Substantially more reasoning for complex, multi-step problems.
- `max`: The deepest reasoning tier, for problems where correctness matters more than speed or cost.
const ( High Agent0ReasoningEffort = "high" Low Agent0ReasoningEffort = "low" Max Agent0ReasoningEffort = "max" Medium Agent0ReasoningEffort = "medium" Xhigh Agent0ReasoningEffort = "xhigh" )
Defines values for Agent0ReasoningEffort.
func (Agent0ReasoningEffort) Valid ¶ added in v1.29.0
func (e Agent0ReasoningEffort) Valid() bool
Valid indicates whether the value is a known member of the Agent0ReasoningEffort enum.
type Agent0SandboxProfile ¶ added in v1.23.0
type Agent0SandboxProfile struct {
// CpuLimit Hard limit on physical CPU cores, applied when the sandbox provider supports one. The
// sandbox bursts above `cpus` up to this. Never below `cpus`.
CpuLimit *float32 `json:"cpuLimit,omitempty"`
// Cpus Virtual CPUs reserved for the sandbox.
Cpus *float32 `json:"cpus,omitempty"`
// DisplayName Human-readable catalog profile name. Filled by the control plane on write.
DisplayName *string `json:"displayName,omitempty"`
// Id The catalog profile to resolve. Only valid when `type` is `catalog`.
Id *string `json:"id,omitempty"`
// IsWarmPooled Whether a sandbox on this catalog profile is normally served from the deployment's
// warm pool and so starts without waiting for one to be provisioned. This is a catalog-only
// hint, not a promise. The field is returned by `GET /api/agent0/sandbox-profiles`, omitted
// from stored snapshots, and ignored on writes.
IsWarmPooled *bool `json:"isWarmPooled,omitempty"`
// MemoryLimitMiB Hard memory limit in MiB, applied when the sandbox provider supports one. This is the
// OOM guard the sandbox bursts up to. Never below `memoryMiB`.
MemoryLimitMiB *int `json:"memoryLimitMiB,omitempty"`
// MemoryMiB Memory reservation (request) for the sandbox, in MiB.
MemoryMiB *int `json:"memoryMiB,omitempty"`
// Type Selects where an Agent0 sandbox gets its resources.
// - `default`: Use the agents deployment's configured resources.
// - `custom`: Use the four resource values supplied on this object.
// - `catalog`: Resolve `id` through the sandbox profile catalog.
Type *Agent0SandboxProfileType `json:"type,omitempty"`
}
Agent0SandboxProfile The resource source for an Agent0 sandbox. `type` is the discriminator: `default` carries no id and may carry the deployment resources resolved for a specific thread, `custom` carries all four resource fields and no id, and `catalog` carries an id that the control plane resolves to its resource snapshot. For a catalog profile, resource values sent by a client are ignored and replaced with the current catalog values.
The resource fields are a snapshot, not a reference. Whatever selects a profile stores the whole object, so a thread keeps creating the sandbox it was created with even after the catalog entry behind it changes.
`type` is temporarily optional for migration. A profile that omits it must carry `id` and is interpreted as `catalog`. New clients should always send `type`.
type Agent0SandboxProfileType ¶ added in v1.23.0
type Agent0SandboxProfileType string
Agent0SandboxProfileType Selects where an Agent0 sandbox gets its resources. - `default`: Use the agents deployment's configured resources. - `custom`: Use the four resource values supplied on this object. - `catalog`: Resolve `id` through the sandbox profile catalog.
const ( Catalog Agent0SandboxProfileType = "catalog" Custom Agent0SandboxProfileType = "custom" Default Agent0SandboxProfileType = "default" )
Defines values for Agent0SandboxProfileType.
func (Agent0SandboxProfileType) Valid ¶ added in v1.29.0
func (e Agent0SandboxProfileType) Valid() bool
Valid indicates whether the value is a known member of the Agent0SandboxProfileType enum.
type Agent0SandboxResources ¶ added in v1.23.0
type Agent0SandboxResources struct {
// CpuLimit Hard limit on physical CPU cores, applied when the sandbox provider supports one. The
// sandbox bursts above `cpus` up to this. Never below `cpus`.
CpuLimit *float32 `json:"cpuLimit,omitempty"`
// Cpus Virtual CPUs reserved for the sandbox.
Cpus *float32 `json:"cpus,omitempty"`
// MemoryLimitMiB Hard memory limit in MiB, applied when the sandbox provider supports one. This is the
// OOM guard the sandbox bursts up to. Never below `memoryMiB`.
MemoryLimitMiB *int `json:"memoryLimitMiB,omitempty"`
// MemoryMiB Memory reservation (request) for the sandbox, in MiB.
MemoryMiB *int `json:"memoryMiB,omitempty"`
}
Agent0SandboxResources The resource shape one Agent0 sandbox is created with. Omitted fields fall back to the agents deployment's own configured defaults.
type AgenticWorkflowAction ¶ added in v1.17.0
type AgenticWorkflowAction string
AgenticWorkflowAction defines model for AgenticWorkflowAction.
const ( AgenticWorkflowDelete AgenticWorkflowAction = "agentic_workflow:delete" AgenticWorkflowRead AgenticWorkflowAction = "agentic_workflow:read" AgenticWorkflowWrite AgenticWorkflowAction = "agentic_workflow:write" )
Defines values for AgenticWorkflowAction.
func (AgenticWorkflowAction) Valid ¶ added in v1.29.0
func (e AgenticWorkflowAction) Valid() bool
Valid indicates whether the value is a known member of the AgenticWorkflowAction enum.
type AgenticWorkflowAnnotations ¶ added in v1.17.0
type AgenticWorkflowAnnotations struct {
// Dash0ComcreatedAt The time at which this automation was originally created.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComcreatedBy The member ID of the user who originally created this automation.
Dash0ComcreatedBy *string `json:"dash0.com/created-by,omitempty"`
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0ComlastUpdatedAt The time at which the current version of this automation was created.
Dash0ComlastUpdatedAt *time.Time `json:"dash0.com/last-updated-at,omitempty"`
// Dash0ComlastUpdatedBy The member ID of the user who created the current version of this automation.
Dash0ComlastUpdatedBy *string `json:"dash0.com/last-updated-by,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on assets that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on an asset that declares no dash0.com/origin is rejected with a 400 — manage that asset's access via the UI share dialog instead.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
// Dash0ComwebhookSecret The plaintext webhook secret, returned exactly once: immediately after the backend
// auto-provisions it on create or update (the first time a webhook trigger is added).
// Absent on every other response, including subsequent reads of the same workflow — it
// is stored only as an encrypted value and cannot be retrieved again. Use
// `POST .../webhook` (regenerate) to obtain a new one if this value was missed.
Dash0ComwebhookSecret *string `json:"dash0.com/webhook-secret,omitempty"`
// Dash0ComwebhookTriggerEnabled Webhook-trigger-scoped feature flag, independent of the workflow's own `spec.enabled`.
// Client-settable on write (via PUT/upsert), defaults to `"true"`. `"true"` if the
// webhook trigger is active, `"false"` if it is paused. Pausing keeps the secret and
// webhook id intact; incoming requests are silently accepted but not forwarded.
Dash0ComwebhookTriggerEnabled *string `json:"dash0.com/webhook-trigger-enabled,omitempty"`
}
AgenticWorkflowAnnotations defines model for AgenticWorkflowAnnotations.
type AgenticWorkflowConcurrency ¶ added in v1.17.0
type AgenticWorkflowConcurrency struct {
// MaxParallel The maximum number of parallel executions allowed. Only meaningful when `policy` is set to `parallel`.
// Defaults to `50`.
MaxParallel *int `json:"maxParallel,omitempty"`
// Policy Defaults to `parallel`.
Policy AgenticWorkflowConcurrencyPolicy `json:"policy"`
}
AgenticWorkflowConcurrency defines model for AgenticWorkflowConcurrency.
type AgenticWorkflowConcurrencyPolicy ¶ added in v1.17.0
type AgenticWorkflowConcurrencyPolicy string
AgenticWorkflowConcurrencyPolicy The concurrency policy to apply when an automation is triggered while a previous execution is still running.
- `queue`: Queue the new execution and run it after the current one completes. - `skip`: Skip the new execution entirely. - `supersede`: Cancel the current execution and start the new one. - `parallel`: Run executions in parallel, up to `maxParallel`.
const ( Parallel AgenticWorkflowConcurrencyPolicy = "parallel" Queue AgenticWorkflowConcurrencyPolicy = "queue" Skip AgenticWorkflowConcurrencyPolicy = "skip" Supersede AgenticWorkflowConcurrencyPolicy = "supersede" )
Defines values for AgenticWorkflowConcurrencyPolicy.
func (AgenticWorkflowConcurrencyPolicy) Valid ¶ added in v1.29.0
func (e AgenticWorkflowConcurrencyPolicy) Valid() bool
Valid indicates whether the value is a known member of the AgenticWorkflowConcurrencyPolicy enum.
type AgenticWorkflowCreateRequest ¶ added in v1.17.0
type AgenticWorkflowCreateRequest = AgenticWorkflowDefinition
AgenticWorkflowCreateRequest defines model for AgenticWorkflowCreateRequest.
type AgenticWorkflowCreditBudget ¶ added in v1.17.0
type AgenticWorkflowCreditBudget struct {
// Credits The maximum number of credits this workflow may consume within the rolling window.
Credits float32 `json:"credits"`
// WarningThreshold Optional warning threshold, as a percentage (0-100) of `credits`. A `budget_warning`
// notification is dispatched once, to `notifications.onBudgetWarningChannels`, the first time
// a completed run pushes rolling spend across this percentage of the budget. Leave unset to
// disable budget warnings.
WarningThreshold *float32 `json:"warningThreshold,omitempty"`
// Window The rolling time window over which credit spend is summed (e.g. `24h`, `7d`, `4w`).
Window Duration `json:"window"`
}
AgenticWorkflowCreditBudget defines model for AgenticWorkflowCreditBudget.
type AgenticWorkflowDefinition ¶ added in v1.17.0
type AgenticWorkflowDefinition struct {
Kind AgenticWorkflowDefinitionKind `json:"kind"`
Metadata AgenticWorkflowMetadata `json:"metadata"`
Spec AgenticWorkflowSpec `json:"spec"`
}
AgenticWorkflowDefinition defines model for AgenticWorkflowDefinition.
type AgenticWorkflowDefinitionKind ¶ added in v1.17.0
type AgenticWorkflowDefinitionKind string
AgenticWorkflowDefinitionKind defines model for AgenticWorkflowDefinition.Kind.
const (
Dash0AgenticWorkflow AgenticWorkflowDefinitionKind = "Dash0AgenticWorkflow"
)
Defines values for AgenticWorkflowDefinitionKind.
func (AgenticWorkflowDefinitionKind) Valid ¶ added in v1.29.0
func (e AgenticWorkflowDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the AgenticWorkflowDefinitionKind enum.
type AgenticWorkflowDisplay ¶ added in v1.17.0
type AgenticWorkflowDisplay struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
}
AgenticWorkflowDisplay defines model for AgenticWorkflowDisplay.
type AgenticWorkflowGuardrails ¶ added in v1.17.0
type AgenticWorkflowGuardrails struct {
// AllowedSkills The custom (organization-authored) skills this automation may use, by skill name (lowercase
// alphanumerics separated by single hyphens, e.g. `cost-report`). A run can only list and load
// the custom skills named here, and still only those the automation's creator may read. When
// absent or empty, the automation uses no custom skills. Dash0's built-in skills are not
// affected. Naming a skill as `/name` in the prompt does not add it to this list.
AllowedSkills *[]string `json:"allowedSkills,omitempty"`
// AllowedTools Optionally restrict which tools are allowed. By default, all tools are allowed to be used. You can use the
// `*` character to allow all tools matching a pattern.
AllowedTools *[]string `json:"allowedTools,omitempty"`
Concurrency *AgenticWorkflowConcurrency `json:"concurrency,omitempty"`
// CreditBudgetWindow Optional rolling-window credit budget across all runs of this workflow. Checked before
// each run starts: a new run is not started when the budget is already exhausted. A run
// already in flight is not aborted when the budget is crossed, so spend can exceed the
// budget. Leave unset for no budget.
CreditBudgetWindow *AgenticWorkflowCreditBudget `json:"creditBudgetWindow,omitempty"`
// Debounce How long to wait before firing if the same trigger fires repeatedly. This is useful to avoid redundant
// automation executions when triggers fire in rapid succession. Defaults to 10s, which is also the
// minimum: a shorter non-zero value is raised to 10s. Set to "0s" to disable debouncing.
Debounce *Duration `json:"debounce,omitempty"`
// McpTools Per-automation overrides for MCP server tools. Each entry sets whether a specific MCP
// tool is available to this automation, overriding the tool's enabled/disabled state in
// the organization's MCP integration settings. Tools not listed here fall back to their
// integration-settings default. This lets an automation enable a tool that is disabled in
// settings, or disable a tool that is enabled there, scoped to this automation only.
McpTools *[]AgenticWorkflowMcpTool `json:"mcpTools,omitempty"`
// RequiredToolCalls Optionally enforce that the Agent0 automation has executed these tool calls. If the agent is concluding is
// automation, but hasn't called these tools, the agent receives a follow-up prompt to call these tools. This
// auto-correction of the LLM behavior is only attempted once.
//
// This is useful if you wanna ensure that the agent makes specific tool calls to external systems, e.g., to
// leave a message on Slack or GitHub.
RequiredToolCalls *[]string `json:"requiredToolCalls,omitempty"`
// Timeout Optional timeout after which the Agent0 automation will be aborted. Defaults to ten minutes.
Timeout *Duration `json:"timeout,omitempty"`
// ToolParameterOverrides Pre-configure tool parameters that are enforced at invocation time. When a listed
// tool is called by the agent, these parameters are merged into the tool's arguments,
// overriding any values the LLM may have provided.
// Keys can be either fully qualified with namespace (e.g., "dash0.slackSendMessage")
// or bare tool names without namespace (e.g., "slackSendMessage"). Namespaced keys
// take precedence and allow disambiguation when multiple integrations expose tools
// with the same name.
// Values are objects of key-value pairs merged into tool arguments.
// Values support {{variable}} substitution using built-in variables, constants,
// and trigger variables.
ToolParameterOverrides *map[string]AgenticWorkflowToolParameterOverride `json:"toolParameterOverrides,omitempty"`
}
AgenticWorkflowGuardrails defines model for AgenticWorkflowGuardrails.
type AgenticWorkflowLabels ¶ added in v1.17.0
type AgenticWorkflowLabels struct {
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
Dash0ComwebhookId *string `json:"dash0.com/webhook-id,omitempty"`
}
AgenticWorkflowLabels defines model for AgenticWorkflowLabels.
type AgenticWorkflowMcpTool ¶ added in v1.17.0
type AgenticWorkflowMcpTool struct {
// Enabled Whether this MCP tool is available to this automation, overriding the integration-settings default.
Enabled bool `json:"enabled"`
// Server The MCP server (integration) display name, kebab-cased — matches the name agent0 uses for the server.
Server string `json:"server"`
// Tool The tool name as reported by the MCP server.
Tool string `json:"tool"`
}
AgenticWorkflowMcpTool defines model for AgenticWorkflowMcpTool.
type AgenticWorkflowMetadata ¶ added in v1.17.0
type AgenticWorkflowMetadata struct {
Annotations *AgenticWorkflowAnnotations `json:"annotations,omitempty"`
Labels *AgenticWorkflowLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
AgenticWorkflowMetadata defines model for AgenticWorkflowMetadata.
type AgenticWorkflowNotifications ¶ added in v1.17.0
type AgenticWorkflowNotifications struct {
// OnBudgetWarningChannels Notification channels to notify when this workflow's rolling credit budget crosses its
// warning threshold (`guardrails.creditBudgetWindow.warningThreshold`). Each value is an opaque channel
// identifier: either the channel's UUID or its origin. An empty or absent list notifies no
// channels on budget warnings.
OnBudgetWarningChannels *[]string `json:"onBudgetWarningChannels,omitempty"`
// OnFailureChannels Notification channels to notify when an automation run fails. Each value is an opaque channel
// identifier: either the channel's UUID or its origin. An empty or absent list notifies no
// channels on failure.
OnFailureChannels *[]string `json:"onFailureChannels,omitempty"`
// OnSuccessChannels Notification channels to notify when an automation run completes successfully. Each value is an
// opaque channel identifier: either the channel's UUID or its origin (the stable identifier
// infrastructure-as-code tooling assigns). Identifiers are resolved at dispatch time, so an
// automation authored via Terraform or the operator can reference channels without knowing their
// per-environment UUID. An empty or absent list notifies no channels on success.
OnSuccessChannels *[]string `json:"onSuccessChannels,omitempty"`
}
AgenticWorkflowNotifications Notification channels to notify when an automation run completes, grouped by outcome. Both lists are optional; omit one to skip notifying on that outcome.
type AgenticWorkflowParent ¶ added in v1.17.0
type AgenticWorkflowParent struct {
RunId string `json:"runId"`
Version string `json:"version"`
// WorkflowId The parent automation's ID.
WorkflowId string `json:"workflowId"`
}
AgenticWorkflowParent Establish as a parent-child hierarchy between automations. You will not want to set this explicitly; instead, this is going to be set by the automation engine when one automation is deciding to create another.
type AgenticWorkflowPermission ¶ added in v1.17.0
type AgenticWorkflowPermission struct {
Actions []AgenticWorkflowAction `json:"actions"`
Role *string `json:"role,omitempty"`
TeamId *string `json:"teamId,omitempty"`
UserId *string `json:"userId,omitempty"`
}
AgenticWorkflowPermission defines model for AgenticWorkflowPermission.
type AgenticWorkflowPrompt ¶ added in v1.17.0
type AgenticWorkflowPrompt struct {
User string `json:"user"`
}
AgenticWorkflowPrompt defines model for AgenticWorkflowPrompt.
type AgenticWorkflowResponse ¶ added in v1.17.0
type AgenticWorkflowResponse = AgenticWorkflowDefinition
AgenticWorkflowResponse defines model for AgenticWorkflowResponse.
type AgenticWorkflowSandbox ¶ added in v1.23.0
type AgenticWorkflowSandbox struct {
// EnvVars Environment variables passed to the setup script's own process only, and surfaced in the
// UI as "Setup variables". Not secret storage: the values live in this definition as plain
// text, so every retained version keeps them, a duplicate or a share carries them, and
// getAutomation returns them verbatim to the agent. Use the deployment's Agent0
// environment-variable settings for a credential. Only key names enter the setup cache
// hash, never values — but declaring any key makes the setup source permanently ineligible
// for a shared warm standby, because the seeding path runs org-blind with no env injected.
// The values do not reach the agent's own shell; a setup script that wants to hand one on
// must export it to $DASH0_AGENT_ENV, which is visible to the agent and the model.
EnvVars *map[string]string `json:"envVars,omitempty"`
// EnvironmentId The sandbox environment the automation's runs start from: its setup script, variables and
// secrets. Accepts an environment's id or origin and is stored as the id. Omitted on a
// write, the stored value is kept; an empty string clears it.
//
// An environment named here wins over `setupScript` and `envVars`, which are then dropped
// from the stored definition.
EnvironmentId *string `json:"environmentId,omitempty"`
// NetworkLevel Controls outbound network access for the sandbox running the automation.
NetworkLevel NetworkLevel `json:"networkLevel"`
// Profile Sandbox resources for an automation run's thread. A `default` profile uses the agents
// deployment's configured resources, `custom` carries all four resource fields, and
// `catalog` names an entry from `GET /api/agent0/sandbox-profiles`. A catalog selection is
// resolved to its resource snapshot on write; custom resources are stored unchanged.
// Omitted, this behaves like `{"type":"default"}`.
//
// This is the default for the *threads this automation starts* — a sandbox profile is a
// thread invariant, so editing it leaves running threads on the profile they were created
// with and applies only to new ones.
Profile *Agent0SandboxProfile `json:"profile,omitempty"`
// SetupScript Optional sandbox preparation: a shell script run once in a claimed sandbox
// before the worker attaches OpenCode, e.g. to install a CLI the run's prompt or tool calls
// need. Executed via the sandbox's exec facility; absent or empty runs nothing. A failed
// setup script degrades (recorded on telemetry) rather than failing the claim. Only takes
// effect when `featureFlags.enableAutomationSetupScripts` is enabled.
SetupScript *string `json:"setupScript,omitempty"`
}
AgenticWorkflowSandbox The sandbox an automation's runs execute in: what it may reach, and what it is built from.
type AgenticWorkflowSpec ¶ added in v1.17.0
type AgenticWorkflowSpec struct {
// Constants Static key-value pairs the automation's author defines, available by name as
// {{theKeyName}} in the prompt and in tool parameter overrides. Surfaced in the UI as
// "Parameters". Always available regardless of trigger type. On a name conflict a
// constant WINS over a caller-supplied variable (a trigger payload value or a test-run
// variable) and LOSES to a built-in such as dash0.dataset — see resolveVariables in
// components/agents/src/server/routes/agentic-workflows/prompt.ts, whose merge order is
// caller < constants < builtIns.
Constants *map[string]string `json:"constants,omitempty"`
Display AgenticWorkflowDisplay `json:"display"`
Enabled bool `json:"enabled"`
Guardrails AgenticWorkflowGuardrails `json:"guardrails"`
// ModelSelection Optional model selection, the routing counterpart of `modelSpec`. Resolved on every run
// the same way. Invalid together with `modelSpec`.
ModelSelection *Agent0ModelSelection `json:"modelSelection,omitempty"`
// ModelSpec Optional model spec override, resolved on every run of this automation the same way a
// per-invocation override is: `modelClass` and `reasoningEffort` take precedence over the
// `automations` surface's user/organization default, each resolving independently; the
// remaining fields (`thinking`, `budgetTokens`, `speed`, `adaptive`, `reasoningSummary`)
// are passed straight through. When absent, runs resolve through the surface default as
// usual. The resolved value is stamped on run telemetry; it does not yet steer which
// model actually answers the turn. See Agent0ModelSpec.
ModelSpec *Agent0ModelSpec `json:"modelSpec,omitempty"`
// Notifications Optional notification channels to notify when an automation run completes. Channels are
// grouped by outcome, so a run can notify different channels on success and on failure.
Notifications *AgenticWorkflowNotifications `json:"notifications,omitempty"`
// Parent Establish as a parent-child hierarchy between automations. You will not want to set this explicitly; instead,
// this is going to be set by the automation engine when one automation is deciding to create another.
Parent *AgenticWorkflowParent `json:"parent,omitempty"`
// Permissions The explicit grants on this automation.
//
// On a write, three cases are distinguished:
//
// - **Omitted**: the stored grants are left untouched. Use this when the request carries
// no opinion about access, for example a content-only update.
// - **Empty array**: the grants are reset to the ones a newly created automation
// receives. This is how a declarative caller removes grants it previously declared —
// omitting the field would be a silent no-op.
// - **Non-empty array**: the stored grants are replaced by exactly this set.
Permissions *[]AgenticWorkflowPermission `json:"permissions,omitempty"`
// PermittedActions Computed, read-only. The set of actions the requesting user is permitted to perform on this automation, derived from their org role, dataset permissions, team memberships, and explicit permission entries. Ignored on write.
PermittedActions *[]AgenticWorkflowAction `json:"permittedActions,omitempty"`
Prompt AgenticWorkflowPrompt `json:"prompt"`
// Sandbox The sandbox an automation's runs execute in: what it may reach, and what it is built from.
Sandbox AgenticWorkflowSandbox `json:"sandbox"`
// Starred Computed, read-only. Whether the requesting user has starred this automation. Stars are per-user state held outside the versioned definition, so a value supplied on write is ignored. Absent for machine-token callers, which have no user whose stars could be read.
Starred *bool `json:"starred,omitempty"`
Triggers []AgenticWorkflowTrigger `json:"triggers"`
}
AgenticWorkflowSpec defines model for AgenticWorkflowSpec.
type AgenticWorkflowToolParameterOverride ¶ added in v1.17.0
AgenticWorkflowToolParameterOverride Key-value pairs merged into tool arguments at invocation time. Keys are parameter names (use dot notation for nested parameters, e.g. "timeframe.from"), values are the enforced parameter values. Values can contain {{variables}} resolved from built-in variables, constants, and trigger variables.
type AgenticWorkflowTrigger ¶ added in v1.17.0
type AgenticWorkflowTrigger struct {
// contains filtered or unexported fields
}
AgenticWorkflowTrigger defines model for AgenticWorkflowTrigger.
func (AgenticWorkflowTrigger) AsDarkplanePullRequestEvaluationAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsDarkplanePullRequestEvaluationAgenticWorkflowTrigger() (DarkplanePullRequestEvaluationAgenticWorkflowTrigger, error)
AsDarkplanePullRequestEvaluationAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a DarkplanePullRequestEvaluationAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsFailedCheckAgenticWorkflowTrigger() (FailedCheckAgenticWorkflowTrigger, error)
AsFailedCheckAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a FailedCheckAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubCheckRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitHubCheckRunAgenticWorkflowTrigger() (GitHubCheckRunAgenticWorkflowTrigger, error)
AsGitHubCheckRunAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubCheckRunAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubCheckSuiteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitHubCheckSuiteAgenticWorkflowTrigger() (GitHubCheckSuiteAgenticWorkflowTrigger, error)
AsGitHubCheckSuiteAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubCheckSuiteAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubDeploymentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubDeploymentAgenticWorkflowTrigger() (GitHubDeploymentAgenticWorkflowTrigger, error)
AsGitHubDeploymentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubDeploymentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubDeploymentStatusAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubDeploymentStatusAgenticWorkflowTrigger() (GitHubDeploymentStatusAgenticWorkflowTrigger, error)
AsGitHubDeploymentStatusAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubDeploymentStatusAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubIssueCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubIssueCommentAgenticWorkflowTrigger() (GitHubIssueCommentAgenticWorkflowTrigger, error)
AsGitHubIssueCommentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubIssueCommentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubPullRequestAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubPullRequestAgenticWorkflowTrigger() (GitHubPullRequestAgenticWorkflowTrigger, error)
AsGitHubPullRequestAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubPullRequestAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubPullRequestReviewAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubPullRequestReviewAgenticWorkflowTrigger() (GitHubPullRequestReviewAgenticWorkflowTrigger, error)
AsGitHubPullRequestReviewAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubPullRequestReviewAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubPullRequestReviewCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubPullRequestReviewCommentAgenticWorkflowTrigger() (GitHubPullRequestReviewCommentAgenticWorkflowTrigger, error)
AsGitHubPullRequestReviewCommentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubPullRequestReviewCommentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubPushAgenticWorkflowTrigger ¶ added in v1.26.0
func (t AgenticWorkflowTrigger) AsGitHubPushAgenticWorkflowTrigger() (GitHubPushAgenticWorkflowTrigger, error)
AsGitHubPushAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubPushAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubReleaseAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsGitHubReleaseAgenticWorkflowTrigger() (GitHubReleaseAgenticWorkflowTrigger, error)
AsGitHubReleaseAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubReleaseAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubWorkflowDispatchAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitHubWorkflowDispatchAgenticWorkflowTrigger() (GitHubWorkflowDispatchAgenticWorkflowTrigger, error)
AsGitHubWorkflowDispatchAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubWorkflowDispatchAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubWorkflowJobAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitHubWorkflowJobAgenticWorkflowTrigger() (GitHubWorkflowJobAgenticWorkflowTrigger, error)
AsGitHubWorkflowJobAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubWorkflowJobAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitHubWorkflowRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitHubWorkflowRunAgenticWorkflowTrigger() (GitHubWorkflowRunAgenticWorkflowTrigger, error)
AsGitHubWorkflowRunAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitHubWorkflowRunAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitLabMergeRequestAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitLabMergeRequestAgenticWorkflowTrigger() (GitLabMergeRequestAgenticWorkflowTrigger, error)
AsGitLabMergeRequestAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitLabMergeRequestAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsGitLabNoteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t AgenticWorkflowTrigger) AsGitLabNoteAgenticWorkflowTrigger() (GitLabNoteAgenticWorkflowTrigger, error)
AsGitLabNoteAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a GitLabNoteAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsLinearCommentAgenticWorkflowTrigger() (LinearCommentAgenticWorkflowTrigger, error)
AsLinearCommentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearCommentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearCommentReactionAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearCommentReactionAgenticWorkflowTrigger() (LinearCommentReactionAgenticWorkflowTrigger, error)
AsLinearCommentReactionAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearCommentReactionAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearInitiativeAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearInitiativeAgenticWorkflowTrigger() (LinearInitiativeAgenticWorkflowTrigger, error)
AsLinearInitiativeAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearInitiativeAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearInitiativeUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearInitiativeUpdateAgenticWorkflowTrigger() (LinearInitiativeUpdateAgenticWorkflowTrigger, error)
AsLinearInitiativeUpdateAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearInitiativeUpdateAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearIssueAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearIssueAgenticWorkflowTrigger() (LinearIssueAgenticWorkflowTrigger, error)
AsLinearIssueAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearIssueAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearIssueAttachmentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearIssueAttachmentAgenticWorkflowTrigger() (LinearIssueAttachmentAgenticWorkflowTrigger, error)
AsLinearIssueAttachmentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearIssueAttachmentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearIssueCommentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearIssueCommentAgenticWorkflowTrigger() (LinearIssueCommentAgenticWorkflowTrigger, error)
AsLinearIssueCommentAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearIssueCommentAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearProjectAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearProjectAgenticWorkflowTrigger() (LinearProjectAgenticWorkflowTrigger, error)
AsLinearProjectAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearProjectAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsLinearProjectUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t AgenticWorkflowTrigger) AsLinearProjectUpdateAgenticWorkflowTrigger() (LinearProjectUpdateAgenticWorkflowTrigger, error)
AsLinearProjectUpdateAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a LinearProjectUpdateAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsManualAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsManualAgenticWorkflowTrigger() (ManualAgenticWorkflowTrigger, error)
AsManualAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a ManualAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsScheduledAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsScheduledAgenticWorkflowTrigger() (ScheduledAgenticWorkflowTrigger, error)
AsScheduledAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a ScheduledAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsSlackBotFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsSlackBotFailedCheckAgenticWorkflowTrigger() (SlackBotFailedCheckAgenticWorkflowTrigger, error)
AsSlackBotFailedCheckAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a SlackBotFailedCheckAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsSlackBotMessageAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsSlackBotMessageAgenticWorkflowTrigger() (SlackBotMessageAgenticWorkflowTrigger, error)
AsSlackBotMessageAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a SlackBotMessageAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsSlackBotReactionAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsSlackBotReactionAgenticWorkflowTrigger() (SlackBotReactionAgenticWorkflowTrigger, error)
AsSlackBotReactionAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a SlackBotReactionAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) AsWebhookAgenticWorkflowTrigger ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) AsWebhookAgenticWorkflowTrigger() (WebhookAgenticWorkflowTrigger, error)
AsWebhookAgenticWorkflowTrigger returns the union data inside the AgenticWorkflowTrigger as a WebhookAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromDarkplanePullRequestEvaluationAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromDarkplanePullRequestEvaluationAgenticWorkflowTrigger(v DarkplanePullRequestEvaluationAgenticWorkflowTrigger) error
FromDarkplanePullRequestEvaluationAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided DarkplanePullRequestEvaluationAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromFailedCheckAgenticWorkflowTrigger(v FailedCheckAgenticWorkflowTrigger) error
FromFailedCheckAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided FailedCheckAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubCheckRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitHubCheckRunAgenticWorkflowTrigger(v GitHubCheckRunAgenticWorkflowTrigger) error
FromGitHubCheckRunAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubCheckRunAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubCheckSuiteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitHubCheckSuiteAgenticWorkflowTrigger(v GitHubCheckSuiteAgenticWorkflowTrigger) error
FromGitHubCheckSuiteAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubCheckSuiteAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubDeploymentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubDeploymentAgenticWorkflowTrigger(v GitHubDeploymentAgenticWorkflowTrigger) error
FromGitHubDeploymentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubDeploymentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubDeploymentStatusAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubDeploymentStatusAgenticWorkflowTrigger(v GitHubDeploymentStatusAgenticWorkflowTrigger) error
FromGitHubDeploymentStatusAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubDeploymentStatusAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubIssueCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubIssueCommentAgenticWorkflowTrigger(v GitHubIssueCommentAgenticWorkflowTrigger) error
FromGitHubIssueCommentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubIssueCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubPullRequestAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubPullRequestAgenticWorkflowTrigger(v GitHubPullRequestAgenticWorkflowTrigger) error
FromGitHubPullRequestAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubPullRequestAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubPullRequestReviewAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubPullRequestReviewAgenticWorkflowTrigger(v GitHubPullRequestReviewAgenticWorkflowTrigger) error
FromGitHubPullRequestReviewAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubPullRequestReviewAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubPullRequestReviewCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubPullRequestReviewCommentAgenticWorkflowTrigger(v GitHubPullRequestReviewCommentAgenticWorkflowTrigger) error
FromGitHubPullRequestReviewCommentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubPullRequestReviewCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubPushAgenticWorkflowTrigger ¶ added in v1.26.0
func (t *AgenticWorkflowTrigger) FromGitHubPushAgenticWorkflowTrigger(v GitHubPushAgenticWorkflowTrigger) error
FromGitHubPushAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubPushAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubReleaseAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromGitHubReleaseAgenticWorkflowTrigger(v GitHubReleaseAgenticWorkflowTrigger) error
FromGitHubReleaseAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubReleaseAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubWorkflowDispatchAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitHubWorkflowDispatchAgenticWorkflowTrigger(v GitHubWorkflowDispatchAgenticWorkflowTrigger) error
FromGitHubWorkflowDispatchAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubWorkflowDispatchAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubWorkflowJobAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitHubWorkflowJobAgenticWorkflowTrigger(v GitHubWorkflowJobAgenticWorkflowTrigger) error
FromGitHubWorkflowJobAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubWorkflowJobAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitHubWorkflowRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitHubWorkflowRunAgenticWorkflowTrigger(v GitHubWorkflowRunAgenticWorkflowTrigger) error
FromGitHubWorkflowRunAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitHubWorkflowRunAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitLabMergeRequestAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitLabMergeRequestAgenticWorkflowTrigger(v GitLabMergeRequestAgenticWorkflowTrigger) error
FromGitLabMergeRequestAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitLabMergeRequestAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromGitLabNoteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) FromGitLabNoteAgenticWorkflowTrigger(v GitLabNoteAgenticWorkflowTrigger) error
FromGitLabNoteAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided GitLabNoteAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromLinearCommentAgenticWorkflowTrigger(v LinearCommentAgenticWorkflowTrigger) error
FromLinearCommentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearCommentReactionAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearCommentReactionAgenticWorkflowTrigger(v LinearCommentReactionAgenticWorkflowTrigger) error
FromLinearCommentReactionAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearCommentReactionAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearInitiativeAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearInitiativeAgenticWorkflowTrigger(v LinearInitiativeAgenticWorkflowTrigger) error
FromLinearInitiativeAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearInitiativeAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearInitiativeUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearInitiativeUpdateAgenticWorkflowTrigger(v LinearInitiativeUpdateAgenticWorkflowTrigger) error
FromLinearInitiativeUpdateAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearInitiativeUpdateAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearIssueAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearIssueAgenticWorkflowTrigger(v LinearIssueAgenticWorkflowTrigger) error
FromLinearIssueAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearIssueAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearIssueAttachmentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearIssueAttachmentAgenticWorkflowTrigger(v LinearIssueAttachmentAgenticWorkflowTrigger) error
FromLinearIssueAttachmentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearIssueAttachmentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearIssueCommentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearIssueCommentAgenticWorkflowTrigger(v LinearIssueCommentAgenticWorkflowTrigger) error
FromLinearIssueCommentAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearIssueCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearProjectAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearProjectAgenticWorkflowTrigger(v LinearProjectAgenticWorkflowTrigger) error
FromLinearProjectAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearProjectAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromLinearProjectUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) FromLinearProjectUpdateAgenticWorkflowTrigger(v LinearProjectUpdateAgenticWorkflowTrigger) error
FromLinearProjectUpdateAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided LinearProjectUpdateAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromManualAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromManualAgenticWorkflowTrigger(v ManualAgenticWorkflowTrigger) error
FromManualAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided ManualAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromScheduledAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromScheduledAgenticWorkflowTrigger(v ScheduledAgenticWorkflowTrigger) error
FromScheduledAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided ScheduledAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromSlackBotFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromSlackBotFailedCheckAgenticWorkflowTrigger(v SlackBotFailedCheckAgenticWorkflowTrigger) error
FromSlackBotFailedCheckAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided SlackBotFailedCheckAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromSlackBotMessageAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromSlackBotMessageAgenticWorkflowTrigger(v SlackBotMessageAgenticWorkflowTrigger) error
FromSlackBotMessageAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided SlackBotMessageAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromSlackBotReactionAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromSlackBotReactionAgenticWorkflowTrigger(v SlackBotReactionAgenticWorkflowTrigger) error
FromSlackBotReactionAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided SlackBotReactionAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) FromWebhookAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) FromWebhookAgenticWorkflowTrigger(v WebhookAgenticWorkflowTrigger) error
FromWebhookAgenticWorkflowTrigger overwrites any union data inside the AgenticWorkflowTrigger as the provided WebhookAgenticWorkflowTrigger
func (AgenticWorkflowTrigger) MarshalJSON ¶ added in v1.17.0
func (t AgenticWorkflowTrigger) MarshalJSON() ([]byte, error)
func (*AgenticWorkflowTrigger) MergeDarkplanePullRequestEvaluationAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeDarkplanePullRequestEvaluationAgenticWorkflowTrigger(v DarkplanePullRequestEvaluationAgenticWorkflowTrigger) error
MergeDarkplanePullRequestEvaluationAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided DarkplanePullRequestEvaluationAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeFailedCheckAgenticWorkflowTrigger(v FailedCheckAgenticWorkflowTrigger) error
MergeFailedCheckAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided FailedCheckAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubCheckRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitHubCheckRunAgenticWorkflowTrigger(v GitHubCheckRunAgenticWorkflowTrigger) error
MergeGitHubCheckRunAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubCheckRunAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubCheckSuiteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitHubCheckSuiteAgenticWorkflowTrigger(v GitHubCheckSuiteAgenticWorkflowTrigger) error
MergeGitHubCheckSuiteAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubCheckSuiteAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubDeploymentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubDeploymentAgenticWorkflowTrigger(v GitHubDeploymentAgenticWorkflowTrigger) error
MergeGitHubDeploymentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubDeploymentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubDeploymentStatusAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubDeploymentStatusAgenticWorkflowTrigger(v GitHubDeploymentStatusAgenticWorkflowTrigger) error
MergeGitHubDeploymentStatusAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubDeploymentStatusAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubIssueCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubIssueCommentAgenticWorkflowTrigger(v GitHubIssueCommentAgenticWorkflowTrigger) error
MergeGitHubIssueCommentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubIssueCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubPullRequestAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestAgenticWorkflowTrigger(v GitHubPullRequestAgenticWorkflowTrigger) error
MergeGitHubPullRequestAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubPullRequestAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubPullRequestReviewAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestReviewAgenticWorkflowTrigger(v GitHubPullRequestReviewAgenticWorkflowTrigger) error
MergeGitHubPullRequestReviewAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubPullRequestReviewAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubPullRequestReviewCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubPullRequestReviewCommentAgenticWorkflowTrigger(v GitHubPullRequestReviewCommentAgenticWorkflowTrigger) error
MergeGitHubPullRequestReviewCommentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubPullRequestReviewCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubPushAgenticWorkflowTrigger ¶ added in v1.26.0
func (t *AgenticWorkflowTrigger) MergeGitHubPushAgenticWorkflowTrigger(v GitHubPushAgenticWorkflowTrigger) error
MergeGitHubPushAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubPushAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubReleaseAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeGitHubReleaseAgenticWorkflowTrigger(v GitHubReleaseAgenticWorkflowTrigger) error
MergeGitHubReleaseAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubReleaseAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubWorkflowDispatchAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowDispatchAgenticWorkflowTrigger(v GitHubWorkflowDispatchAgenticWorkflowTrigger) error
MergeGitHubWorkflowDispatchAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubWorkflowDispatchAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubWorkflowJobAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowJobAgenticWorkflowTrigger(v GitHubWorkflowJobAgenticWorkflowTrigger) error
MergeGitHubWorkflowJobAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubWorkflowJobAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitHubWorkflowRunAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitHubWorkflowRunAgenticWorkflowTrigger(v GitHubWorkflowRunAgenticWorkflowTrigger) error
MergeGitHubWorkflowRunAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitHubWorkflowRunAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitLabMergeRequestAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitLabMergeRequestAgenticWorkflowTrigger(v GitLabMergeRequestAgenticWorkflowTrigger) error
MergeGitLabMergeRequestAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitLabMergeRequestAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeGitLabNoteAgenticWorkflowTrigger ¶ added in v1.23.0
func (t *AgenticWorkflowTrigger) MergeGitLabNoteAgenticWorkflowTrigger(v GitLabNoteAgenticWorkflowTrigger) error
MergeGitLabNoteAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided GitLabNoteAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearCommentAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeLinearCommentAgenticWorkflowTrigger(v LinearCommentAgenticWorkflowTrigger) error
MergeLinearCommentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearCommentReactionAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearCommentReactionAgenticWorkflowTrigger(v LinearCommentReactionAgenticWorkflowTrigger) error
MergeLinearCommentReactionAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearCommentReactionAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearInitiativeAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearInitiativeAgenticWorkflowTrigger(v LinearInitiativeAgenticWorkflowTrigger) error
MergeLinearInitiativeAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearInitiativeAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearInitiativeUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearInitiativeUpdateAgenticWorkflowTrigger(v LinearInitiativeUpdateAgenticWorkflowTrigger) error
MergeLinearInitiativeUpdateAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearInitiativeUpdateAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearIssueAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearIssueAgenticWorkflowTrigger(v LinearIssueAgenticWorkflowTrigger) error
MergeLinearIssueAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearIssueAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearIssueAttachmentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearIssueAttachmentAgenticWorkflowTrigger(v LinearIssueAttachmentAgenticWorkflowTrigger) error
MergeLinearIssueAttachmentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearIssueAttachmentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearIssueCommentAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearIssueCommentAgenticWorkflowTrigger(v LinearIssueCommentAgenticWorkflowTrigger) error
MergeLinearIssueCommentAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearIssueCommentAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearProjectAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearProjectAgenticWorkflowTrigger(v LinearProjectAgenticWorkflowTrigger) error
MergeLinearProjectAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearProjectAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeLinearProjectUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
func (t *AgenticWorkflowTrigger) MergeLinearProjectUpdateAgenticWorkflowTrigger(v LinearProjectUpdateAgenticWorkflowTrigger) error
MergeLinearProjectUpdateAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided LinearProjectUpdateAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeManualAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeManualAgenticWorkflowTrigger(v ManualAgenticWorkflowTrigger) error
MergeManualAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided ManualAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeScheduledAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeScheduledAgenticWorkflowTrigger(v ScheduledAgenticWorkflowTrigger) error
MergeScheduledAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided ScheduledAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeSlackBotFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeSlackBotFailedCheckAgenticWorkflowTrigger(v SlackBotFailedCheckAgenticWorkflowTrigger) error
MergeSlackBotFailedCheckAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided SlackBotFailedCheckAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeSlackBotMessageAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeSlackBotMessageAgenticWorkflowTrigger(v SlackBotMessageAgenticWorkflowTrigger) error
MergeSlackBotMessageAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided SlackBotMessageAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeSlackBotReactionAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeSlackBotReactionAgenticWorkflowTrigger(v SlackBotReactionAgenticWorkflowTrigger) error
MergeSlackBotReactionAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided SlackBotReactionAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) MergeWebhookAgenticWorkflowTrigger ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) MergeWebhookAgenticWorkflowTrigger(v WebhookAgenticWorkflowTrigger) error
MergeWebhookAgenticWorkflowTrigger performs a merge with any union data inside the AgenticWorkflowTrigger, using the provided WebhookAgenticWorkflowTrigger
func (*AgenticWorkflowTrigger) UnmarshalJSON ¶ added in v1.17.0
func (t *AgenticWorkflowTrigger) UnmarshalJSON(b []byte) error
type AgenticWorkflowTriggerDelivery ¶ added in v1.17.0
type AgenticWorkflowTriggerDelivery string
AgenticWorkflowTriggerDelivery How a trigger delivers its event to an agent. An automation is the agent definition; triggers are the pipes into it, and each pipe is configured independently.
- `spawn`: Start a new agent thread for this event. This is today's behavior.
- `continue`: Route the event into the existing agent thread that owns the matching entity, falling back to spawning a fresh thread when none is active (resume-or-spawn). Only valid on continuation-capable triggers that carry an entity ref to route by; spawn-only triggers (e.g. `schedule`, `webhook`, `failed_check.new`) must not set it.
const ( AgenticWorkflowTriggerDeliveryContinue AgenticWorkflowTriggerDelivery = "continue" AgenticWorkflowTriggerDeliverySpawn AgenticWorkflowTriggerDelivery = "spawn" )
Defines values for AgenticWorkflowTriggerDelivery.
func (AgenticWorkflowTriggerDelivery) Valid ¶ added in v1.29.0
func (e AgenticWorkflowTriggerDelivery) Valid() bool
Valid indicates whether the value is a known member of the AgenticWorkflowTriggerDelivery enum.
type AgenticWorkflowTriggerKind ¶ added in v1.17.0
type AgenticWorkflowTriggerKind string
AgenticWorkflowTriggerKind The kind of event that triggers the Agent0 automation.
- `schedule`: Cron-based scheduled trigger. - `failed_check.new`: Triggered directly when a new check failure is detected, without requiring Slack configuration. - `slack_bot.failed_check.new`: Triggered when a new failed check is detected via Slack bot. - `slack_bot.message`: Triggered when a Slack message matches a pattern. - `slack_bot.reaction`: Triggered when a specific emoji reaction is added in Slack. - `github.deployment`: Triggered when a GitHub deployment event occurs. - `github.deployment_status`: Triggered when a GitHub deployment status changes. - `github.pull_request`: Triggered when a GitHub pull request event occurs. - `github.pull_request_review`: Triggered when a GitHub pull request review event occurs. - `github.pull_request_review_comment`: Triggered when a GitHub pull request review comment event occurs. - `github.issue_comment`: Triggered when a comment is created, edited, or deleted on a GitHub pull request or issue. - `github.release`: Triggered when a GitHub release event occurs. - `github.push`: Triggered when commits are pushed to a GitHub repository. - `github.workflow_run`: Triggered when a GitHub Actions workflow run completes (or is requested / in progress). - `github.workflow_job`: Triggered when a job within a GitHub Actions workflow run is queued, waiting, started, or completed. - `github.workflow_dispatch`: Triggered when a GitHub Actions workflow is manually dispatched via the UI, API, or CLI. - `github.check_run`: Triggered when a GitHub check run (a single check, from any CI system connected via the Checks API) is created, completed, or rerequested. - `github.check_suite`: Triggered when a GitHub check suite (the group of check runs GitHub associates with one commit) is requested, rerequested, or completed. - `gitlab.merge_request`: Triggered when a GitLab merge request event occurs. - `gitlab.note`: Triggered when a comment is created on a GitLab merge request, issue, commit, or snippet. - `darkplane.pull_request.evaluation`: Triggered after a successful terminal, non-experiment Darkplane AutoMerge evaluation run. - `linear.comment`: Triggered when the Dash0 agent is @mentioned or delegated in a Linear comment whose text contains the configured keyword. - `linear.issue_comment`: Triggered when a comment is created, updated, or removed on a Linear issue, in the configured teams. - `linear.issue`: Triggered when a Linear issue is created, updated or removed in the selected teams. `actions` narrows which; omitted, every action matches. - `linear.issue_attachment`: Triggered when an attachment (for example a GitHub pull request, Sentry issue, or Slack thread link) is added to, changed on or removed from a Linear issue in the selected teams. - `linear.comment_reaction`: Triggered when an emoji reaction is added to or removed from a comment on a Linear issue in the selected teams. `actions` narrows which; omitted, both match. - `linear.project`: Triggered when a Linear project is created, updated, or removed. - `linear.project_update`: Triggered when a Linear project update (status post) is created, updated, or removed. - `linear.initiative`: Triggered when a Linear initiative is created, updated, or removed. - `linear.initiative_update`: Triggered when a Linear initiative update (status post) is created, updated, or removed. - `webhook`: Triggered via an external webhook call. - `manual`: Triggered manually via the UI. Runtime-only — not valid in `spec.triggers[]`.
const ( AgenticWorkflowTriggerKindDarkplanePullRequestEvaluation AgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" AgenticWorkflowTriggerKindFailedCheckNew AgenticWorkflowTriggerKind = "failed_check.new" AgenticWorkflowTriggerKindGithubCheckRun AgenticWorkflowTriggerKind = "github.check_run" AgenticWorkflowTriggerKindGithubCheckSuite AgenticWorkflowTriggerKind = "github.check_suite" AgenticWorkflowTriggerKindGithubDeployment AgenticWorkflowTriggerKind = "github.deployment" AgenticWorkflowTriggerKindGithubDeploymentStatus AgenticWorkflowTriggerKind = "github.deployment_status" AgenticWorkflowTriggerKindGithubIssueComment AgenticWorkflowTriggerKind = "github.issue_comment" AgenticWorkflowTriggerKindGithubPullRequest AgenticWorkflowTriggerKind = "github.pull_request" AgenticWorkflowTriggerKindGithubPullRequestReview AgenticWorkflowTriggerKind = "github.pull_request_review" AgenticWorkflowTriggerKindGithubPullRequestReviewComment AgenticWorkflowTriggerKind = "github.pull_request_review_comment" AgenticWorkflowTriggerKindGithubPush AgenticWorkflowTriggerKind = "github.push" AgenticWorkflowTriggerKindGithubRelease AgenticWorkflowTriggerKind = "github.release" AgenticWorkflowTriggerKindGithubWorkflowDispatch AgenticWorkflowTriggerKind = "github.workflow_dispatch" AgenticWorkflowTriggerKindGithubWorkflowJob AgenticWorkflowTriggerKind = "github.workflow_job" AgenticWorkflowTriggerKindGithubWorkflowRun AgenticWorkflowTriggerKind = "github.workflow_run" AgenticWorkflowTriggerKindGitlabMergeRequest AgenticWorkflowTriggerKind = "gitlab.merge_request" AgenticWorkflowTriggerKindGitlabNote AgenticWorkflowTriggerKind = "gitlab.note" AgenticWorkflowTriggerKindLinearComment AgenticWorkflowTriggerKind = "linear.comment" AgenticWorkflowTriggerKindLinearCommentReaction AgenticWorkflowTriggerKind = "linear.comment_reaction" AgenticWorkflowTriggerKindLinearInitiative AgenticWorkflowTriggerKind = "linear.initiative" AgenticWorkflowTriggerKindLinearInitiativeUpdate AgenticWorkflowTriggerKind = "linear.initiative_update" AgenticWorkflowTriggerKindLinearIssue AgenticWorkflowTriggerKind = "linear.issue" AgenticWorkflowTriggerKindLinearIssueAttachment AgenticWorkflowTriggerKind = "linear.issue_attachment" AgenticWorkflowTriggerKindLinearIssueComment AgenticWorkflowTriggerKind = "linear.issue_comment" AgenticWorkflowTriggerKindLinearProject AgenticWorkflowTriggerKind = "linear.project" AgenticWorkflowTriggerKindLinearProjectUpdate AgenticWorkflowTriggerKind = "linear.project_update" AgenticWorkflowTriggerKindManual AgenticWorkflowTriggerKind = "manual" AgenticWorkflowTriggerKindSchedule AgenticWorkflowTriggerKind = "schedule" AgenticWorkflowTriggerKindSlackBotFailedCheckNew AgenticWorkflowTriggerKind = "slack_bot.failed_check.new" AgenticWorkflowTriggerKindSlackBotMessage AgenticWorkflowTriggerKind = "slack_bot.message" AgenticWorkflowTriggerKindSlackBotReaction AgenticWorkflowTriggerKind = "slack_bot.reaction" AgenticWorkflowTriggerKindWebhook AgenticWorkflowTriggerKind = "webhook" )
Defines values for AgenticWorkflowTriggerKind.
func (AgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e AgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the AgenticWorkflowTriggerKind enum.
type AgenticWorkflowTriggerTask ¶ added in v1.17.0
type AgenticWorkflowTriggerTask = string
AgenticWorkflowTriggerTask Optional per-trigger task/instruction prompt. When set, it is rendered with the same `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for invocations from this trigger: the kickoff framing when the trigger spawns a new agent, or the event framing when it continues an existing one. When omitted, the automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on continue) is used instead. The automation-level standing prompt is injected only once, on spawn, and is not re-sent on continue.
type AllQuietConfig ¶ added in v1.9.0
type AllQuietConfig struct {
Url string `json:"url"`
}
AllQuietConfig defines model for AllQuietConfig.
type AnomalyDirection ¶ added in v1.23.0
type AnomalyDirection string
AnomalyDirection Which deviations from the prediction are treated as anomalous.
- `both`: Deviations in either direction are anomalous. - `above`: Only values above the prediction are anomalous. - `below`: Only values below the prediction are anomalous.
const ( AnomalyDirectionAbove AnomalyDirection = "above" AnomalyDirectionBelow AnomalyDirection = "below" AnomalyDirectionBoth AnomalyDirection = "both" )
Defines values for AnomalyDirection.
func (AnomalyDirection) Valid ¶ added in v1.29.0
func (e AnomalyDirection) Valid() bool
Valid indicates whether the value is a known member of the AnomalyDirection enum.
type AnyValue ¶
type AnyValue struct {
// ArrayValue ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields.
ArrayValue *ArrayValue `json:"arrayValue,omitempty"`
BoolValue *bool `json:"boolValue,omitempty"`
BytesValue *[]byte `json:"bytesValue,omitempty"`
DoubleValue *float64 `json:"doubleValue,omitempty"`
IntValue *string `json:"intValue,omitempty"`
// KvlistValue KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.
KvlistValue *KeyValueList `json:"kvlistValue,omitempty"`
StringValue *string `json:"stringValue,omitempty"`
}
AnyValue AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.
type ArrayValue ¶ added in v1.29.0
type ArrayValue struct {
// Values Array of values. The array may be empty (contain 0 elements).
Values []AnyValue `json:"values"`
}
ArrayValue ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields.
type AttributeFilter ¶
type AttributeFilter struct {
// Key The attribute key to be filtered.
Key AttributeFilterKey `json:"key"`
// Operator The match operation for filtering attributes.
//
// #### Equality Operators
// - `is` - equals (attribute exists and has a matching value)
// - `is_not` - not equals (attribute exists and has a different value)
//
// #### Existence Operators
// - `is_set` - is set (attribute exists)
// - `is_not_set` - is not set (attribute does not exist)
//
// #### Multiple Value Operators
// - `is_one_of` - is any of (attribute exists and has a value that is in the specified values)
// - `is_not_one_of` - is not any of (attribute exists and has a value that is not in the specified values)
//
// #### Comparison Operators
// - `gt` - greater than
// - `lt` - less than
// - `gte` - greater than or equal
// - `lte` - less than or equal
//
// #### Pattern Matching Operators
// - `matches` - match regex expression (attribute exists and matches the regular expression)
// - `does_not_match` - does not match regex expression (attribute exists and does not match the regular expression)
//
// #### String Operators
// - `contains` - contains (attribute exists and contains the specified value)
// - `does_not_contain` - does not contain (attribute exists and does not contain the specified value)
// - `starts_with` - starts with (attribute exists and starts with the specified value)
// - `does_not_start_with` - does not start with (attribute exists and does not start with the specified value)
// - `ends_with` - ends with (attribute exists and ends with the specified value)
// - `does_not_end_with` - does not end with (attribute exists and does not end with the specified value)
//
// #### Special Operators
// - `is_any` - matches any value, ignoring whether the key exists or not
Operator AttributeFilterOperator `json:"operator"`
Value *AttributeFilter_Value `json:"value,omitempty"`
// Values List of values to match against. This parameter is mandatory for the is_one_of and is_not_one_of operators.
Values *[]AttributeFilter_Values_Item `json:"values,omitempty"`
}
AttributeFilter defines model for AttributeFilter.
type AttributeFilterAnyValue ¶
type AttributeFilterAnyValue = AnyValue
AttributeFilterAnyValue AttributeFilterAnyValue may contain any AnyValue value.
type AttributeFilterKey ¶
type AttributeFilterKey = string
AttributeFilterKey The attribute key to be filtered.
type AttributeFilterOperator ¶
type AttributeFilterOperator string
AttributeFilterOperator The match operation for filtering attributes.
#### Equality Operators - `is` - equals (attribute exists and has a matching value) - `is_not` - not equals (attribute exists and has a different value)
#### Existence Operators - `is_set` - is set (attribute exists) - `is_not_set` - is not set (attribute does not exist)
#### Multiple Value Operators - `is_one_of` - is any of (attribute exists and has a value that is in the specified values) - `is_not_one_of` - is not any of (attribute exists and has a value that is not in the specified values)
#### Comparison Operators - `gt` - greater than - `lt` - less than - `gte` - greater than or equal - `lte` - less than or equal
#### Pattern Matching Operators - `matches` - match regex expression (attribute exists and matches the regular expression) - `does_not_match` - does not match regex expression (attribute exists and does not match the regular expression)
#### String Operators - `contains` - contains (attribute exists and contains the specified value) - `does_not_contain` - does not contain (attribute exists and does not contain the specified value) - `starts_with` - starts with (attribute exists and starts with the specified value) - `does_not_start_with` - does not start with (attribute exists and does not start with the specified value) - `ends_with` - ends with (attribute exists and ends with the specified value) - `does_not_end_with` - does not end with (attribute exists and does not end with the specified value)
#### Special Operators - `is_any` - matches any value, ignoring whether the key exists or not
const ( AttributeFilterOperatorContains AttributeFilterOperator = "contains" AttributeFilterOperatorDoesNotContain AttributeFilterOperator = "does_not_contain" AttributeFilterOperatorDoesNotEndWith AttributeFilterOperator = "does_not_end_with" AttributeFilterOperatorDoesNotMatch AttributeFilterOperator = "does_not_match" AttributeFilterOperatorDoesNotStartWith AttributeFilterOperator = "does_not_start_with" AttributeFilterOperatorEndsWith AttributeFilterOperator = "ends_with" AttributeFilterOperatorGt AttributeFilterOperator = "gt" AttributeFilterOperatorGte AttributeFilterOperator = "gte" AttributeFilterOperatorIs AttributeFilterOperator = "is" AttributeFilterOperatorIsAny AttributeFilterOperator = "is_any" AttributeFilterOperatorIsNot AttributeFilterOperator = "is_not" AttributeFilterOperatorIsNotOneOf AttributeFilterOperator = "is_not_one_of" AttributeFilterOperatorIsNotSet AttributeFilterOperator = "is_not_set" AttributeFilterOperatorIsOneOf AttributeFilterOperator = "is_one_of" AttributeFilterOperatorIsSet AttributeFilterOperator = "is_set" AttributeFilterOperatorLt AttributeFilterOperator = "lt" AttributeFilterOperatorLte AttributeFilterOperator = "lte" AttributeFilterOperatorMatches AttributeFilterOperator = "matches" AttributeFilterOperatorStartsWith AttributeFilterOperator = "starts_with" )
Defines values for AttributeFilterOperator.
func (AttributeFilterOperator) Valid ¶ added in v1.29.0
func (e AttributeFilterOperator) Valid() bool
Valid indicates whether the value is a known member of the AttributeFilterOperator enum.
type AttributeFilterStringValue ¶
type AttributeFilterStringValue = string
AttributeFilterStringValue AttributeFilterStringValue may contain a primitive value such as a regex pattern or string.
type AttributeFilter_Value ¶
type AttributeFilter_Value struct {
// contains filtered or unexported fields
}
AttributeFilter_Value defines model for AttributeFilter.Value.
func (AttributeFilter_Value) AsAttributeFilterAnyValue ¶
func (t AttributeFilter_Value) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
AsAttributeFilterAnyValue returns the union data inside the AttributeFilter_Value as a AttributeFilterAnyValue
func (AttributeFilter_Value) AsAttributeFilterStringValue ¶
func (t AttributeFilter_Value) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
AsAttributeFilterStringValue returns the union data inside the AttributeFilter_Value as a AttributeFilterStringValue
func (*AttributeFilter_Value) FromAttributeFilterAnyValue ¶
func (t *AttributeFilter_Value) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
FromAttributeFilterAnyValue overwrites any union data inside the AttributeFilter_Value as the provided AttributeFilterAnyValue
func (*AttributeFilter_Value) FromAttributeFilterStringValue ¶
func (t *AttributeFilter_Value) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
FromAttributeFilterStringValue overwrites any union data inside the AttributeFilter_Value as the provided AttributeFilterStringValue
func (AttributeFilter_Value) MarshalJSON ¶
func (t AttributeFilter_Value) MarshalJSON() ([]byte, error)
func (*AttributeFilter_Value) MergeAttributeFilterAnyValue ¶
func (t *AttributeFilter_Value) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
MergeAttributeFilterAnyValue performs a merge with any union data inside the AttributeFilter_Value, using the provided AttributeFilterAnyValue
func (*AttributeFilter_Value) MergeAttributeFilterStringValue ¶
func (t *AttributeFilter_Value) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
MergeAttributeFilterStringValue performs a merge with any union data inside the AttributeFilter_Value, using the provided AttributeFilterStringValue
func (*AttributeFilter_Value) UnmarshalJSON ¶
func (t *AttributeFilter_Value) UnmarshalJSON(b []byte) error
type AttributeFilter_Values_Item ¶
type AttributeFilter_Values_Item struct {
// contains filtered or unexported fields
}
AttributeFilter_Values_Item defines model for AttributeFilter.values.Item.
func (AttributeFilter_Values_Item) AsAttributeFilterAnyValue ¶
func (t AttributeFilter_Values_Item) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
AsAttributeFilterAnyValue returns the union data inside the AttributeFilter_Values_Item as a AttributeFilterAnyValue
func (AttributeFilter_Values_Item) AsAttributeFilterStringValue ¶
func (t AttributeFilter_Values_Item) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
AsAttributeFilterStringValue returns the union data inside the AttributeFilter_Values_Item as a AttributeFilterStringValue
func (*AttributeFilter_Values_Item) FromAttributeFilterAnyValue ¶
func (t *AttributeFilter_Values_Item) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
FromAttributeFilterAnyValue overwrites any union data inside the AttributeFilter_Values_Item as the provided AttributeFilterAnyValue
func (*AttributeFilter_Values_Item) FromAttributeFilterStringValue ¶
func (t *AttributeFilter_Values_Item) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
FromAttributeFilterStringValue overwrites any union data inside the AttributeFilter_Values_Item as the provided AttributeFilterStringValue
func (AttributeFilter_Values_Item) MarshalJSON ¶
func (t AttributeFilter_Values_Item) MarshalJSON() ([]byte, error)
func (*AttributeFilter_Values_Item) MergeAttributeFilterAnyValue ¶
func (t *AttributeFilter_Values_Item) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
MergeAttributeFilterAnyValue performs a merge with any union data inside the AttributeFilter_Values_Item, using the provided AttributeFilterAnyValue
func (*AttributeFilter_Values_Item) MergeAttributeFilterStringValue ¶
func (t *AttributeFilter_Values_Item) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
MergeAttributeFilterStringValue performs a merge with any union data inside the AttributeFilter_Values_Item, using the provided AttributeFilterStringValue
func (*AttributeFilter_Values_Item) UnmarshalJSON ¶
func (t *AttributeFilter_Values_Item) UnmarshalJSON(b []byte) error
type AuthTokenAction ¶ added in v1.26.0
type AuthTokenAction string
AuthTokenAction An action an auth token can hold.
- `*`: all actions. - `*:read`: read-only API access. - `ingest:*`: send all signal types. - `ingest:logs`, `ingest:metrics`, `ingest:spans`, `ingest:profiles`: send one signal type. - `ingest:debuginfo`: upload debug information for profiles. - `edge-settings:read`: read Signal Control edge settings.
const ( Asterisk AuthTokenAction = "*" AsteriskRead AuthTokenAction = "*:read" EdgeSettingsRead AuthTokenAction = "edge-settings:read" Ingest AuthTokenAction = "ingest:*" IngestDebuginfo AuthTokenAction = "ingest:debuginfo" IngestLogs AuthTokenAction = "ingest:logs" IngestMetrics AuthTokenAction = "ingest:metrics" IngestProfiles AuthTokenAction = "ingest:profiles" IngestSpans AuthTokenAction = "ingest:spans" )
Defines values for AuthTokenAction.
func (AuthTokenAction) Valid ¶ added in v1.29.0
func (e AuthTokenAction) Valid() bool
Valid indicates whether the value is a known member of the AuthTokenAction enum.
type AuthTokenAnnotations ¶ added in v1.25.0
type AuthTokenAnnotations struct {
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
}
AuthTokenAnnotations defines model for AuthTokenAnnotations.
type AuthTokenCreateRequest ¶ added in v1.25.0
type AuthTokenCreateRequest = AuthTokenDefinition
AuthTokenCreateRequest defines model for AuthTokenCreateRequest.
type AuthTokenDatasetScope ¶ added in v1.25.0
type AuthTokenDatasetScope struct {
// Restriction Whether `slugs` limits the datasets this token can send data to.
Restriction *DatasetRestriction `json:"restriction,omitempty"`
// Slugs The existing datasets the token may use when `restriction` is `restricted`.
Slugs *[]Dataset `json:"slugs,omitempty"`
}
AuthTokenDatasetScope defines model for AuthTokenDatasetScope.
type AuthTokenDefinition ¶ added in v1.25.0
type AuthTokenDefinition struct {
// ApiVersion Version of the auth token document format. Required on create and update; the only
// supported value is `dash0.com/v1alpha1`, and any other value returns 400. Returned on
// every read.
ApiVersion string `json:"apiVersion"`
Kind AuthTokenDefinitionKind `json:"kind"`
Metadata AuthTokenMetadata `json:"metadata"`
// Spec A field omitted on create takes its default, except `actions`, which create requires. A field
// omitted on update keeps its stored value. Clients must accept enum values they do not
// recognize.
Spec AuthTokenSpec `json:"spec"`
}
AuthTokenDefinition defines model for AuthTokenDefinition.
func ConvertAuthTokenResponseToDefinition ¶ added in v1.25.0
func ConvertAuthTokenResponseToDefinition(token *AuthTokenResponseDefinition) *AuthTokenDefinition
ConvertAuthTokenResponseToDefinition copies an auth token response into a request document. The copy carries no secret, so it is safe to send to Client.UpdateAuthToken. It keeps the server-set metadata, so call StripAuthTokenServerFields to drop it before a create.
Example ¶
package main
import (
"encoding/json"
"fmt"
"strings"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
response := &dash0.AuthTokenResponseDefinition{
ApiVersion: "dash0.com/v1alpha1",
Metadata: dash0.AuthTokenMetadata{Name: "ci"},
Spec: dash0.AuthTokenResponseSpec{Token: dash0.Ptr("auth_secret")},
}
request := dash0.ConvertAuthTokenResponseToDefinition(response)
body, _ := json.Marshal(request)
fmt.Println(strings.Contains(string(body), "auth_secret"), request.Metadata.Name)
}
Output: false ci
type AuthTokenDefinitionKind ¶ added in v1.25.0
type AuthTokenDefinitionKind string
AuthTokenDefinitionKind defines model for AuthTokenDefinition.Kind.
const (
AuthTokenDefinitionKindDash0AuthToken AuthTokenDefinitionKind = "Dash0AuthToken"
)
Defines values for AuthTokenDefinitionKind.
func (AuthTokenDefinitionKind) Valid ¶ added in v1.29.0
func (e AuthTokenDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the AuthTokenDefinitionKind enum.
type AuthTokenIngestion ¶ added in v1.25.0
type AuthTokenIngestion struct {
// DefaultDataset The existing dataset that receives telemetry when a request does not name one. Omitted
// on create, it is `default`.
DefaultDataset *Dataset `json:"defaultDataset,omitempty"`
}
AuthTokenIngestion defines model for AuthTokenIngestion.
type AuthTokenLabels ¶ added in v1.25.0
type AuthTokenLabels struct {
// Dash0Comid The auth token UUID. Server-set; not accepted on create.
Dash0Comid *openapi_types.UUID `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for this auth token. Must be unique per organization and must not be a
// UUID. Used by Infrastructure-as-Code tools (Terraform, Kubernetes operator).
// Auto-generated as `api-<uuid>` for machine tokens that have no user. Immutable once set.
// A PUT to an origin that does not exist yet creates the token.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
AuthTokenLabels defines model for AuthTokenLabels.
type AuthTokenListResponse ¶ added in v1.25.0
type AuthTokenListResponse = []AuthTokenResponse
AuthTokenListResponse defines model for AuthTokenListResponse.
type AuthTokenMetadata ¶ added in v1.25.0
type AuthTokenMetadata struct {
Annotations *AuthTokenAnnotations `json:"annotations,omitempty"`
Labels *AuthTokenLabels `json:"labels,omitempty"`
// Name Human-readable name for the auth token.
Name string `json:"name"`
}
AuthTokenMetadata defines model for AuthTokenMetadata.
type AuthTokenProvider ¶ added in v1.21.0
type AuthTokenProvider interface {
// AuthToken returns the bearer token to authenticate the next request.
// The returned token must start with "auth_" or "dash0_at_"; the client
// rejects anything else before the request leaves the process.
AuthToken(ctx context.Context) (string, error)
}
AuthTokenProvider supplies the bearer token used to authenticate a Dash0 API request. The client calls AuthTokenProvider.AuthToken once per request rather than caching a token for the client's lifetime, so a provider backed by a short-lived credential can renew it without the caller rebuilding the client.
Implementations must be safe for concurrent use: the client issues up to MaxConcurrentRequests requests in parallel, and each one asks for a token.
func StaticAuthTokenProvider ¶ added in v1.21.0
func StaticAuthTokenProvider(authToken string) AuthTokenProvider
StaticAuthTokenProvider adapts a fixed auth token to AuthTokenProvider. It exists so the request path has a single code path for authentication regardless of whether the caller supplied a static token or a renewing one.
The returned provider deliberately does not implement RefreshingAuthTokenProvider: a static token cannot be refreshed, so a 401 is surfaced to the caller instead of being retried.
Example ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
provider := dash0.StaticAuthTokenProvider("auth_yourtoken")
authToken, err := provider.AuthToken(context.Background())
if err != nil {
log.Fatal(err)
}
fmt.Println(authToken)
}
Output: auth_yourtoken
type AuthTokenResponse ¶ added in v1.25.0
type AuthTokenResponse = AuthTokenResponseDefinition
AuthTokenResponse defines model for AuthTokenResponse.
type AuthTokenResponseDefinition ¶ added in v1.25.0
type AuthTokenResponseDefinition struct {
ApiVersion string `json:"apiVersion"`
Kind AuthTokenResponseDefinitionKind `json:"kind"`
Metadata AuthTokenMetadata `json:"metadata"`
Spec AuthTokenResponseSpec `json:"spec"`
}
AuthTokenResponseDefinition defines model for AuthTokenResponseDefinition.
func (AuthTokenResponseDefinition) LogValue ¶ added in v1.25.0
func (d AuthTokenResponseDefinition) LogValue() slog.Value
LogValue implements slog.LogValuer. Without it, a JSON log handler marshals the definition directly and bypasses AuthTokenResponseSpec.LogValue, which leaks the secret.
type AuthTokenResponseDefinitionKind ¶ added in v1.25.0
type AuthTokenResponseDefinitionKind string
AuthTokenResponseDefinitionKind defines model for AuthTokenResponseDefinition.Kind.
const (
AuthTokenResponseDefinitionKindDash0AuthToken AuthTokenResponseDefinitionKind = "Dash0AuthToken"
)
Defines values for AuthTokenResponseDefinitionKind.
func (AuthTokenResponseDefinitionKind) Valid ¶ added in v1.29.0
func (e AuthTokenResponseDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the AuthTokenResponseDefinitionKind enum.
type AuthTokenResponseSpec ¶ added in v1.25.0
type AuthTokenResponseSpec struct {
// Actions The actions this token can perform. To limit the signals a token can send, use the
// per-signal actions, or `ingest:*` with `scope.signals`. For the matching permissions in
// the Dash0 UI, see
// [Auth tokens](https://www.dash0.com/docs/dash0/miscellaneous/glossary/auth-tokens).
Actions *[]AuthTokenAction `json:"actions,omitempty"`
Ingestion *AuthTokenIngestion `json:"ingestion,omitempty"`
// Scope What data the token can reach.
Scope *AuthTokenScope `json:"scope,omitempty"`
// Token The secret customers use as a Bearer token to send telemetry to Dash0. Generated by
// Dash0 and returned only in the response that creates the token (POST, or a PUT that
// creates). Never part of a request: a request that carries `spec.token` returns 400.
Token *string `json:"token,omitempty"`
}
AuthTokenResponseSpec defines model for AuthTokenResponseSpec.
func (AuthTokenResponseSpec) Format ¶ added in v1.25.0
func (s AuthTokenResponseSpec) Format(f fmt.State, verb rune)
Format implements fmt.Formatter. It prints the spec with the secret in spec.token replaced by "[REDACTED]" for every verb. This covers a spec printed through a pointer or nested in an AuthTokenResponseDefinition. JSON encoding is not affected and still carries the secret.
Example ¶
package main
import (
"fmt"
"strings"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
token := &dash0.AuthTokenResponseDefinition{
Metadata: dash0.AuthTokenMetadata{Name: "ci"},
Spec: dash0.AuthTokenResponseSpec{Token: dash0.Ptr("auth_secret")},
}
fmt.Printf("%v\n", token.Spec)
fmt.Println(strings.Contains(fmt.Sprintf("%v %+v %#v", token, &token.Spec, token), "auth_secret"))
}
Output: {<nil> <nil> <nil> [REDACTED]} false
func (AuthTokenResponseSpec) LogValue ¶ added in v1.25.0
func (s AuthTokenResponseSpec) LogValue() slog.Value
LogValue implements slog.LogValuer. It logs the spec as a group, keyed like the JSON form, with the secret in spec.token replaced by "[REDACTED]".
Example ¶
package main
import (
"log/slog"
"os"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
spec := dash0.AuthTokenResponseSpec{Token: dash0.Ptr("auth_secret")}
logger := slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
if len(groups) == 0 && a.Key == slog.TimeKey {
return slog.Attr{}
}
return a
},
}))
logger.Info("created", "spec", spec)
}
Output: level=INFO msg=created spec.token=[REDACTED]
type AuthTokenScope ¶ added in v1.25.0
type AuthTokenScope struct {
Datasets *AuthTokenDatasetScope `json:"datasets,omitempty"`
Signals *AuthTokenSignalScope `json:"signals,omitempty"`
}
AuthTokenScope What data the token can reach.
type AuthTokenSignalScope ¶ added in v1.25.0
type AuthTokenSignalScope struct {
// Restriction Whether `types` limits the signal types this token can send.
Restriction *SignalRestriction `json:"restriction,omitempty"`
// Types The signal types the token may send when `restriction` is `restricted`.
Types *[]SignalType `json:"types,omitempty"`
}
AuthTokenSignalScope defines model for AuthTokenSignalScope.
type AuthTokenSpec ¶ added in v1.25.0
type AuthTokenSpec struct {
// Actions The actions this token can perform. To limit the signals a token can send, use the
// per-signal actions, or `ingest:*` with `scope.signals`. For the matching permissions in
// the Dash0 UI, see
// [Auth tokens](https://www.dash0.com/docs/dash0/miscellaneous/glossary/auth-tokens).
Actions *[]AuthTokenAction `json:"actions,omitempty"`
Ingestion *AuthTokenIngestion `json:"ingestion,omitempty"`
// Scope What data the token can reach.
Scope *AuthTokenScope `json:"scope,omitempty"`
}
AuthTokenSpec A field omitted on create takes its default, except `actions`, which create requires. A field omitted on update keeps its stored value. Clients must accept enum values they do not recognize.
type AuthTokenUpdateRequest ¶ added in v1.25.0
type AuthTokenUpdateRequest = AuthTokenDefinition
AuthTokenUpdateRequest defines model for AuthTokenUpdateRequest.
type AuthorizeURLParams ¶ added in v1.15.0
type AuthorizeURLParams struct {
// ResponseType must be [OAuthResponseTypeCode].
// Defaults to [OAuthResponseTypeCode] when empty.
ResponseType OAuthResponseType
// ClientID is the client identifier obtained during registration.
ClientID string
// RedirectURI must match one of the client's registered redirect URIs.
RedirectURI string
// Scope is an optional space-separated list of requested scopes.
Scope *string
// State is an opaque value bound to the request for CSRF protection
// (RFC 6749 §10.12); the authorization server returns it unchanged in
// the redirect.
// State is mandatory: use [GenerateOAuthState] to produce a fresh value.
State string
// CodeChallenge is the PKCE code challenge (RFC 7636).
CodeChallenge string
// CodeChallengeMethod must be [OAuthCodeChallengeMethodS256].
// Defaults to [OAuthCodeChallengeMethodS256] when empty.
CodeChallengeMethod OAuthCodeChallengeMethod
// Prompt is an optional space-separated list of prompt directives.
// Supported value: "consent".
Prompt *string
}
AuthorizeURLParams contains the parameters for building an OAuth 2.0 authorization URL.
type AwsMetricScrapeConfigAnnotations ¶ added in v1.28.0
type AwsMetricScrapeConfigAnnotations struct {
// Dash0ComcreatedAt When the config was first written after being unconfigured or cleared. Set by the server.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComupdatedAt When the config last changed; writing an identical config leaves it unchanged. Set by the server.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
AwsMetricScrapeConfigAnnotations Server-managed and ignored on write. Absent for an integration whose config was never written or has been cleared.
type AwsMetricScrapeConfigApiVersion ¶ added in v1.28.0
type AwsMetricScrapeConfigApiVersion string
AwsMetricScrapeConfigApiVersion Version of the document format. Required on write; a missing or unknown value is rejected.
const (
AwsMetricScrapeConfigApiVersionDash0Comv1alpha1 AwsMetricScrapeConfigApiVersion = "dash0.com/v1alpha1"
)
Defines values for AwsMetricScrapeConfigApiVersion.
func (AwsMetricScrapeConfigApiVersion) Valid ¶ added in v1.29.0
func (e AwsMetricScrapeConfigApiVersion) Valid() bool
Valid indicates whether the value is a known member of the AwsMetricScrapeConfigApiVersion enum.
type AwsMetricScrapeConfigDefinition ¶ added in v1.28.0
type AwsMetricScrapeConfigDefinition struct {
// ApiVersion Version of the document format. Required on write; a missing or unknown value is rejected.
ApiVersion AwsMetricScrapeConfigApiVersion `json:"apiVersion"`
Kind AwsMetricScrapeConfigKind `json:"kind"`
Metadata AwsMetricScrapeConfigMetadata `json:"metadata"`
Spec AwsMetricScrapeConfigSpec `json:"spec"`
}
AwsMetricScrapeConfigDefinition The CloudWatch metric scrape configuration of one AWS integration. There is exactly one document per integration, and a write replaces it as a whole.
type AwsMetricScrapeConfigKind ¶ added in v1.28.0
type AwsMetricScrapeConfigKind string
AwsMetricScrapeConfigKind defines model for AwsMetricScrapeConfigKind.
const (
Dash0AwsMetricScrapeConfig AwsMetricScrapeConfigKind = "Dash0AwsMetricScrapeConfig"
)
Defines values for AwsMetricScrapeConfigKind.
func (AwsMetricScrapeConfigKind) Valid ¶ added in v1.29.0
func (e AwsMetricScrapeConfigKind) Valid() bool
Valid indicates whether the value is a known member of the AwsMetricScrapeConfigKind enum.
type AwsMetricScrapeConfigLabels ¶ added in v1.28.0
type AwsMetricScrapeConfigLabels struct {
// Dash0Comdataset The dataset the AWS integration belongs to.
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
// Dash0Comid The AWS integration's `dash0.com/id`, the same id as in the request path.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier of the client managing this config, such as a Terraform resource id.
// Stored by the first write that sets it and immutable afterwards: a later write with a
// different value keeps the stored one. Cleared when the config is cleared. Recorded for
// ownership only; it locks nothing yet. Unlike on most resources, the origin is not an
// address: the config is looked up by the integration id alone. Origins starting with
// `slo_` or `check_rule_` are reserved for Dash0 and rejected. When an API token without
// a user omits it, the server stores `api-<uuid>`.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Derived by the server from `dash0.com/origin` on read; ignored on write.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
AwsMetricScrapeConfigLabels `dash0.com/origin` may be set on write; every other label is server-managed and ignored on write.
type AwsMetricScrapeConfigMetadata ¶ added in v1.28.0
type AwsMetricScrapeConfigMetadata struct {
// Annotations Server-managed and ignored on write. Absent for an integration whose config was never written
// or has been cleared.
Annotations *AwsMetricScrapeConfigAnnotations `json:"annotations,omitempty"`
// Labels `dash0.com/origin` may be set on write; every other label is server-managed and ignored on
// write.
Labels *AwsMetricScrapeConfigLabels `json:"labels,omitempty"`
// Name The AWS integration's name. Read-only and ignored on write.
Name *string `json:"name,omitempty"`
}
AwsMetricScrapeConfigMetadata defines model for AwsMetricScrapeConfigMetadata.
type AwsMetricScrapeConfigNamespace ¶ added in v1.28.0
type AwsMetricScrapeConfigNamespace struct {
// Filter Conditions for this namespace only, restricted to tags (`dash0.cloud.tags.<tag name>`) and
// `cloud.region`. An empty array means the same as an absent key, and neither is returned.
// Scraping ignores tag conditions unless the namespace supports both resource discovery
// and metric-to-resource association. Region conditions are supported for every namespace.
Filter *FilterCriteria `json:"filter,omitempty"`
// Metrics CloudWatch metric names collected from the namespace. Returned sorted ascending, in byte
// order. A name with leading or trailing whitespace, or one listed twice, is rejected.
Metrics []string `json:"metrics"`
// Namespace CloudWatch namespace, such as `AWS/EC2`. Each namespace may appear once. A name with leading
// or trailing whitespace is rejected.
Namespace string `json:"namespace"`
}
AwsMetricScrapeConfigNamespace defines model for AwsMetricScrapeConfigNamespace.
type AwsMetricScrapeConfigSpec ¶ added in v1.28.0
type AwsMetricScrapeConfigSpec struct {
// IntegrationFilter Conditions restricted to tags (`dash0.cloud.tags.<tag name>`) and `cloud.region`.
// Region conditions apply to every namespace. Tag conditions apply only to namespaces
// that support both resource discovery and metric-to-resource association.
// Other namespaces, including custom namespaces and CWAgent, ignore integration-wide tag conditions.
// An empty array means the same as an absent key, and neither is returned.
IntegrationFilter *FilterCriteria `json:"integrationFilter,omitempty"`
// Namespaces The complete set of namespaces to scrape. A namespace absent from this list is not scraped,
// and an empty array stops all scraping. Returned sorted by namespace, in byte order.
Namespaces []AwsMetricScrapeConfigNamespace `json:"namespaces"`
}
AwsMetricScrapeConfigSpec defines model for AwsMetricScrapeConfigSpec.
type AxisScale ¶
type AxisScale string
AxisScale defines model for AxisScale.
Defines values for AxisScale.
type CardholderDataRedactionSettings ¶ added in v1.23.0
type CardholderDataRedactionSettings struct {
// Enabled Whether cardholder-data redaction is enabled for this dataset.
Enabled bool `json:"enabled"`
}
CardholderDataRedactionSettings Opt-in detection and redaction of payment card numbers and related sensitive data in ingested telemetry, applied before Dash0 persists the signal. Matching values are masked or replaced in place; signals are never dropped. Detection is pattern-based and cannot catch encoded, encrypted, or split card numbers, so filtering at the source remains the primary mechanism. Absent means disabled.
type ChangeGateComparison ¶ added in v1.23.0
type ChangeGateComparison string
ChangeGateComparison How the change gate's `value` is compared against the observed quantity's recent level.
- `absolute_delta`: The observed quantity must differ from its recent level by at least `value`, in the unit of the observed quantity itself and in the worsening direction defined by the rule's absolute threshold comparator.
- `relative_factor`: The observed quantity must differ from its recent level by at least `value` times in the worsening direction defined by the rule's absolute threshold comparator.
const ( AbsoluteDelta ChangeGateComparison = "absolute_delta" RelativeFactor ChangeGateComparison = "relative_factor" )
Defines values for ChangeGateComparison.
func (ChangeGateComparison) Valid ¶ added in v1.29.0
func (e ChangeGateComparison) Valid() bool
Valid indicates whether the value is a known member of the ChangeGateComparison enum.
type CheckThresholdBaseline ¶ added in v1.23.0
type CheckThresholdBaseline struct {
// Direction Which deviations from the prediction fail the check. For a hand-written expression there
// is no `parsedExpression` and therefore no `thresholdComparator`, so this is the sole
// source of truth for directionality.
Direction AnomalyDirection `json:"direction"`
// SpreadFloor Optional minimum seasonal spread, expressed as a fraction of the prediction. The server
// default is used when omitted. For example, `0.05` makes a sensitivity cutoff of `3`
// require at least a 15% deviation when the measured spread is smaller.
SpreadFloor *float64 `json:"spreadFloor,omitempty"`
// VolumeFloor Optional minimum traffic rate required for the detector to evaluate. Supported only
// for Services Metrics and Spans Metrics queries, in requests/second and spans/second
// respectively. Traffic is derived from the query's authored selections, filters,
// grouping, and rate window and evaluated ad hoc at the detector timestamp. Dashboard
// variable placeholders are omitted, as in the observed check query.
// Other query types, including hand-written PromQL, cannot configure this floor.
// Export compiles this floor into a PromQL enablement condition with the authored filters
// and service namespace/name matching. Import retains the condition rather than a typed floor.
// No traffic query or volume gate is applied when omitted.
VolumeFloor *float64 `json:"volumeFloor,omitempty"`
}
CheckThresholdBaseline Adaptive baseline detector configuration. Its presence on `CheckThresholds` re-interprets `degraded` and `failed` as z-score cutoffs against the check rule's own predicted value and typical spread.
type CheckThresholdChangeGate ¶ added in v1.23.0
type CheckThresholdChangeGate struct {
// BaselineWindow The window the observed quantity's recent level is derived from.
BaselineWindow Duration `json:"baselineWindow"`
// Comparison How the change gate's `value` is compared against the observed quantity's recent level.
//
// - `absolute_delta`: The observed quantity must differ from its recent level by at least
// `value`, in the unit of the observed quantity itself and in the worsening direction defined
// by the rule's absolute threshold comparator.
// - `relative_factor`: The observed quantity must differ from its recent level by at least
// `value` times in the worsening direction defined by the rule's absolute threshold comparator.
Comparison ChangeGateComparison `json:"comparison"`
// Value The minimum change required, interpreted according to `comparison`.
Value float64 `json:"value"`
// VolumeFloor Optional minimum average traffic rate over `baselineWindow` required for the detector
// to evaluate. Supported only for Services Metrics and Spans Metrics queries, in
// requests/second and spans/second respectively. Traffic is derived from the query's
// authored selections, filters, grouping, and rate window and evaluated ad hoc. Dashboard
// variable placeholders are omitted, as in the observed check query.
// Other query types, including hand-written PromQL, cannot configure this floor.
// Export compiles this floor into a PromQL enablement condition with the authored filters
// and service namespace/name matching. Import retains the condition rather than a typed floor.
// No traffic query or volume gate is applied when omitted.
VolumeFloor *float64 `json:"volumeFloor,omitempty"`
}
CheckThresholdChangeGate Change gate configuration. Its presence on `CheckThresholds` leaves `degraded` and `failed` absolute, but additionally requires the observed quantity to be materially worse than it was over `baselineWindow` before the check fails. The check rule expression must provide the absolute threshold comparator through its parsed expression or a hand-written top-level comparison; otherwise the write is rejected.
type CheckThresholds ¶
type CheckThresholds struct {
// Baseline Compare the check rule's observed quantity against its own past instead of against an
// absolute value. Setting this re-interprets `degraded` and `failed` as z-score cutoffs.
//
// Mutually exclusive with `changeGate`.
Baseline *CheckThresholdBaseline `json:"baseline,omitempty"`
// ChangeGate Require the observed quantity to have changed materially compared to a recent window
// before the absolute `degraded` / `failed` thresholds are allowed to fail the check.
// `degraded` and `failed` remain absolute values.
//
// Mutually exclusive with `baseline`.
ChangeGate *CheckThresholdChangeGate `json:"changeGate,omitempty"`
// Degraded The threshold value that defines when the check is in a degraded state. The value will be
// interpolated into the expression field as `$__threshold`.
//
// Interpreted as a z-score cutoff rather than an absolute value when `baseline` is set.
Degraded *float64 `json:"degraded,omitempty"`
// Failed The threshold value that defines when the check is in a failed state. The value will be
// interpolated into the expression field as `$__threshold`.
//
// Interpreted as a z-score cutoff rather than an absolute value when `baseline` is set.
Failed *float64 `json:"failed,omitempty"`
}
CheckThresholds Thresholds to use for the `$__threshold` variable in the expression field.
By default `degraded` and `failed` are absolute values. The optional `baseline` and `changeGate` sub-objects are detector configuration: **the presence of one of them is the discriminator** that changes how `degraded` and `failed` are interpreted.
- Neither present: `degraded` and `failed` are absolute values compared against the expression's own value, as they always have been.
- `baseline` present: `degraded` and `failed` are re-interpreted as z-score cutoffs — multiples of the watched entity's own typical spread away from its prediction — rather than as absolute values. Each configured cutoff must be greater than `0` and less than `1000000`, the detector score cap.
- `changeGate` present: `degraded` and `failed` stay absolute, but the check additionally requires the value to have become materially worse than it recently was before it fails.
At most one of `baseline` and `changeGate` may be set. A request setting both is rejected with a `400`; the mutual exclusion is enforced by the server rather than by this schema, matching the existing treatment of `metric` versus `servicesMetricQuery`.
type Client ¶
type Client interface {
// Dashboards
ListDashboards(ctx context.Context, dataset *string) ([]*DashboardApiListItem, error)
GetDashboard(ctx context.Context, originOrID string, dataset *string) (*DashboardDefinition, error)
CreateDashboard(ctx context.Context, dashboard *DashboardDefinition, dataset *string) (*DashboardDefinition, error)
UpdateDashboard(ctx context.Context, originOrID string, dashboard *DashboardDefinition, dataset *string) (*DashboardDefinition, error)
DeleteDashboard(ctx context.Context, originOrID string, dataset *string) error
ListDashboardsIter(ctx context.Context, dataset *string) *Iter[DashboardApiListItem]
// Check Rules
ListCheckRules(ctx context.Context, dataset *string, opts ...ListOption) ([]*PrometheusAlertRuleApiListItem, error)
GetCheckRule(ctx context.Context, originOrID string, dataset *string) (*PrometheusAlertRule, error)
CreateCheckRule(ctx context.Context, rule *PrometheusAlertRule, dataset *string) (*PrometheusAlertRule, error)
UpdateCheckRule(ctx context.Context, originOrID string, rule *PrometheusAlertRule, dataset *string) (*PrometheusAlertRule, error)
DeleteCheckRule(ctx context.Context, originOrID string, dataset *string) error
ListCheckRulesIter(ctx context.Context, dataset *string, opts ...ListOption) *Iter[PrometheusAlertRuleApiListItem]
// Synthetic Checks
ListSyntheticChecks(ctx context.Context, dataset *string) ([]*SyntheticChecksApiListItem, error)
GetSyntheticCheck(ctx context.Context, originOrID string, dataset *string) (*SyntheticCheckDefinition, error)
CreateSyntheticCheck(ctx context.Context, check *SyntheticCheckDefinition, dataset *string) (*SyntheticCheckDefinition, error)
UpdateSyntheticCheck(ctx context.Context, originOrID string, check *SyntheticCheckDefinition, dataset *string) (*SyntheticCheckDefinition, error)
DeleteSyntheticCheck(ctx context.Context, originOrID string, dataset *string) error
ListSyntheticChecksIter(ctx context.Context, dataset *string) *Iter[SyntheticChecksApiListItem]
// SLOs
ListSLOs(ctx context.Context, dataset *string, opts ...ListOption) ([]*SloDefinition, error)
GetSLO(ctx context.Context, originOrID string, dataset *string) (*SloDefinition, error)
CreateSLO(ctx context.Context, slo *SloDefinition, dataset *string) (*SloDefinition, error)
UpdateSLO(ctx context.Context, originOrID string, slo *SloDefinition, dataset *string) (*SloDefinition, error)
DeleteSLO(ctx context.Context, originOrID string, dataset *string) error
ListSLOsIter(ctx context.Context, dataset *string, opts ...ListOption) *Iter[SloDefinition]
// Datasets
ListDatasets(ctx context.Context) ([]*DatasetDefinition, error)
GetDataset(ctx context.Context, originOrID string) (*DatasetDefinition, error)
CreateDataset(ctx context.Context, dataset *DatasetDefinition) (*DatasetDefinition, error)
UpdateDataset(ctx context.Context, originOrID string, dataset *DatasetDefinition) (*DatasetDefinition, error)
DeleteDataset(ctx context.Context, originOrID string) error
ListDatasetsIter(ctx context.Context) *Iter[DatasetDefinition]
// Auth tokens
ListAuthTokens(ctx context.Context) ([]*AuthTokenResponseDefinition, error)
GetAuthToken(ctx context.Context, originOrID string) (*AuthTokenResponseDefinition, error)
CreateAuthToken(ctx context.Context, token *AuthTokenDefinition) (*AuthTokenResponseDefinition, error)
UpdateAuthToken(ctx context.Context, originOrID string, token *AuthTokenDefinition) (*AuthTokenResponseDefinition, error)
DeleteAuthToken(ctx context.Context, originOrID string) error
ListAuthTokensIter(ctx context.Context) *Iter[AuthTokenResponseDefinition]
// AWS metric scrape configs
GetAwsMetricScrapeConfig(ctx context.Context, integrationID string) (*AwsMetricScrapeConfigDefinition, error)
UpdateAwsMetricScrapeConfig(ctx context.Context, integrationID string, cfg *AwsMetricScrapeConfigDefinition) (*AwsMetricScrapeConfigDefinition, error)
DeleteAwsMetricScrapeConfig(ctx context.Context, integrationID string) error
// Views
ListViews(ctx context.Context, dataset *string) ([]*ViewApiListItem, error)
GetView(ctx context.Context, originOrID string, dataset *string) (*ViewDefinition, error)
CreateView(ctx context.Context, view *ViewDefinition, dataset *string) (*ViewDefinition, error)
UpdateView(ctx context.Context, originOrID string, view *ViewDefinition, dataset *string) (*ViewDefinition, error)
DeleteView(ctx context.Context, originOrID string, dataset *string) error
ListViewsIter(ctx context.Context, dataset *string) *Iter[ViewApiListItem]
// Sampling Rules
ListSamplingRules(ctx context.Context, dataset *string) ([]*SamplingDefinition, error)
GetSamplingRule(ctx context.Context, originOrID string, dataset *string) (*SamplingDefinition, error)
CreateSamplingRule(ctx context.Context, rule *SamplingDefinition, dataset *string) (*SamplingDefinition, error)
UpdateSamplingRule(ctx context.Context, originOrID string, rule *SamplingDefinition, dataset *string) (*SamplingDefinition, error)
DeleteSamplingRule(ctx context.Context, originOrID string, dataset *string) error
ListSamplingRulesIter(ctx context.Context, dataset *string) *Iter[SamplingDefinition]
// Time Series Aggregations
ListTimeSeriesAggregations(ctx context.Context, dataset *string) ([]*TimeSeriesAggregationDefinition, error)
GetTimeSeriesAggregation(ctx context.Context, originOrID string, dataset *string) (*TimeSeriesAggregationDefinition, error)
CreateTimeSeriesAggregation(ctx context.Context, aggregation *TimeSeriesAggregationDefinition, dataset *string) (*TimeSeriesAggregationDefinition, error)
UpdateTimeSeriesAggregation(ctx context.Context, originOrID string, aggregation *TimeSeriesAggregationDefinition, dataset *string) (*TimeSeriesAggregationDefinition, error)
DeleteTimeSeriesAggregation(ctx context.Context, originOrID string, dataset *string) error
ListTimeSeriesAggregationsIter(ctx context.Context, dataset *string) *Iter[TimeSeriesAggregationDefinition]
// Signal-to-Metrics
ListSignalToMetrics(ctx context.Context, dataset *string, opts ...ListOption) ([]*SignalToMetricsDefinition, error)
GetSignalToMetrics(ctx context.Context, originOrID string, dataset *string) (*SignalToMetricsDefinition, error)
CreateSignalToMetrics(ctx context.Context, rule *SignalToMetricsDefinition, dataset *string) (*SignalToMetricsDefinition, error)
UpdateSignalToMetrics(ctx context.Context, originOrID string, rule *SignalToMetricsDefinition, dataset *string) (*SignalToMetricsDefinition, error)
DeleteSignalToMetrics(ctx context.Context, originOrID string, dataset *string) error
ListSignalToMetricsIter(ctx context.Context, dataset *string, opts ...ListOption) *Iter[SignalToMetricsDefinition]
CountSignalToMetrics(ctx context.Context, dataset *string, opts ...ListOption) (*SignalToMetricsCounts, error)
TestSignalToMetrics(ctx context.Context, request *SignalToMetricsTestRequest, dataset *string) (*SignalToMetricsTestResponse, error)
// Members
ListMembers(ctx context.Context) ([]*MemberDefinition, error)
InviteMember(ctx context.Context, request *InviteMemberRequest) error
DeleteMember(ctx context.Context, memberID string) error
ListMembersIter(ctx context.Context) *Iter[MemberDefinition]
// Teams
ListTeams(ctx context.Context) ([]*TeamsListItem, error)
CreateTeam(ctx context.Context, team *TeamDefinitionV1Alpha1) (*TeamDefinitionV1Alpha1, error)
UpsertTeam(ctx context.Context, originOrID string, team *TeamDefinitionV1Alpha1) (*TeamDefinitionV1Alpha1, error)
GetTeam(ctx context.Context, originOrID string) (*TeamDefinitionV1Alpha1, error)
GetTeamWithAssets(ctx context.Context, originOrID string) (*GetTeamResponse, error)
DeleteTeam(ctx context.Context, originOrID string) error
UpdateTeamDisplay(ctx context.Context, originOrID string, display *TeamDisplay) error
AddTeamMembers(ctx context.Context, originOrID string, request *AddTeamMembersRequest) error
RemoveTeamMember(ctx context.Context, originOrID string, memberID string) error
ListTeamsIter(ctx context.Context) *Iter[TeamsListItem]
ResolveMemberIDsToEmails(ctx context.Context, ids []string) ([]string, error)
// Recording Rules
ListRecordingRules(ctx context.Context, dataset *string, opts ...ListOption) ([]*RecordingRule, error)
GetRecordingRule(ctx context.Context, originOrID string, dataset *string) (*RecordingRule, error)
CreateRecordingRule(ctx context.Context, rule *RecordingRule, dataset *string) (*RecordingRule, error)
UpdateRecordingRule(ctx context.Context, originOrID string, rule *RecordingRule, dataset *string) (*RecordingRule, error)
DeleteRecordingRule(ctx context.Context, originOrID string, dataset *string) error
ListRecordingRulesIter(ctx context.Context, dataset *string, opts ...ListOption) *Iter[RecordingRule]
// Agent0 Custom Skills
ListCustomSkills(ctx context.Context, opts ...ListOption) ([]*SkillDefinition, error)
GetCustomSkill(ctx context.Context, originOrID string) (*SkillDefinition, error)
CreateCustomSkill(ctx context.Context, skill *SkillDefinition) (*SkillDefinition, error)
UpdateCustomSkill(ctx context.Context, originOrID string, skill *SkillDefinition) (*SkillDefinition, error)
DeleteCustomSkill(ctx context.Context, originOrID string) error
ListCustomSkillsIter(ctx context.Context, opts ...ListOption) *Iter[SkillDefinition]
// Notification Channels
ListNotificationChannels(ctx context.Context) ([]*NotificationChannelDefinition, error)
GetNotificationChannel(ctx context.Context, originOrID string) (*NotificationChannelDefinition, error)
CreateNotificationChannel(ctx context.Context, channel *NotificationChannelDefinition) (*NotificationChannelDefinition, error)
UpdateNotificationChannel(ctx context.Context, originOrID string, channel *NotificationChannelDefinition) (*NotificationChannelDefinition, error)
DeleteNotificationChannel(ctx context.Context, originOrID string) error
ListNotificationChannelsIter(ctx context.Context) *Iter[NotificationChannelDefinition]
// Spam Filters. The read endpoint returns whichever version is stored, so
// GetSpamFilter exposes the result through the SpamFilterObject marker for
// the caller to type-switch on. The list endpoint returns items in the
// same native shape; ListSpamFilters keeps the v1alpha1 shape for backward
// compatibility (v1alpha2 entries lose their spec.context scalar), while
// ListSpamFilterObjects exposes the union. The version sent on
// Create/Update is a caller choice, so v1alpha1 and v1alpha2 are exposed
// as typed sibling methods. Delete is version-agnostic.
ListSpamFilters(ctx context.Context, dataset *string) ([]*SpamFilter, error)
ListSpamFilterObjects(ctx context.Context, dataset *string) ([]SpamFilterObject, error)
GetSpamFilter(ctx context.Context, originOrID string, dataset *string) (SpamFilterObject, error)
CreateSpamFilter(ctx context.Context, filter *SpamFilter, dataset *string) (*SpamFilter, error)
UpdateSpamFilter(ctx context.Context, originOrID string, filter *SpamFilter, dataset *string) (*SpamFilter, error)
CreateSpamFilterV1Alpha2(ctx context.Context, filter *SpamFilterV1Alpha2, dataset *string) (*SpamFilterV1Alpha2, error)
UpdateSpamFilterV1Alpha2(ctx context.Context, originOrID string, filter *SpamFilterV1Alpha2, dataset *string) (*SpamFilterV1Alpha2, error)
DeleteSpamFilter(ctx context.Context, originOrID string, dataset *string) error
ListSpamFiltersIter(ctx context.Context, dataset *string) *Iter[SpamFilter]
// Spans
GetSpans(ctx context.Context, request *GetSpansRequest) (*GetSpansResponse, error)
GetSpansIter(ctx context.Context, request *GetSpansRequest) *Iter[ResourceSpans]
// Logs
GetLogRecords(ctx context.Context, request *GetLogRecordsRequest) (*GetLogRecordsResponse, error)
GetLogRecordsIter(ctx context.Context, request *GetLogRecordsRequest) *Iter[ResourceLogs]
// Failed Checks
GetFailedChecks(ctx context.Context, request *GetFailedChecksRequest) (*GetFailedChecksResponse, error)
GetFailedChecksIter(ctx context.Context, request *GetFailedChecksRequest) *Iter[Issue]
// Import
ImportCheckRule(ctx context.Context, rule *PrometheusAlertRule, dataset *string) (*PrometheusAlertRule, error)
ImportDashboard(ctx context.Context, dashboard *DashboardDefinition, dataset *string) (*DashboardDefinition, error)
ImportSyntheticCheck(ctx context.Context, check *SyntheticCheckDefinition, dataset *string) (*SyntheticCheckDefinition, error)
ImportView(ctx context.Context, view *ViewDefinition, dataset *string) (*ViewDefinition, error)
ImportSignalToMetrics(ctx context.Context, rules []*SignalToMetricsDefinition, dataset string) (*SignalToMetricsBulkUpsertResponse, error)
// OTLP
SendLogs(ctx context.Context, logs plog.Logs, dataset *string) error
SendMetrics(ctx context.Context, metrics pmetric.Metrics, dataset *string) error
SendTraces(ctx context.Context, traces ptrace.Traces, dataset *string) error
// Close releases resources associated with the client. Callers should
// call Close when the client is no longer needed.
Close(ctx context.Context) error
// Inner returns the underlying generated client for advanced use cases.
Inner() *ClientWithResponses
}
Client defines the Dash0 API client interface. Use NewClient to create a concrete implementation.
func NewClient ¶
func NewClient(opts ...ClientOption) (Client, error)
NewClient creates a new Dash0 API client.
Required options:
- WithAuthToken: The auth token for authentication
- At least one of WithApiUrl or WithOtlpEndpoint
Example:
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("your-auth-token"),
)
Example (ApiAndOtlp) ¶
package main
import (
"context"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithOtlpEndpoint(dash0.OtlpEncodingJson, "https://ingress.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
_ = client
}
Output:
Example (ApiOnly) ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
dashboards, err := client.ListDashboards(context.Background(), nil)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d dashboards\n", len(dashboards))
}
Output:
Example (FromProfile) ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
"github.com/dash0hq/dash0-api-client-go/profiles"
)
func main() {
cfg, err := profiles.ResolveConfiguration("", "")
if err != nil {
log.Fatal(err)
}
opts := append(cfg.ClientOptions(), dash0.WithUserAgent("my-tool/1.0"))
client, err := dash0.NewClient(opts...)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
dashboards, err := client.ListDashboards(context.Background(), cfg.DatasetPtr())
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d dashboards\n", len(dashboards))
}
Output:
type ClientInterface ¶
type ClientInterface interface {
// GetWellKnownOauthAuthorizationServer OAuth 2.0 Authorization Server Metadata
//
// Returns the OAuth 2.0 Authorization Server Metadata document (RFC 8414).
// Clients use this endpoint to discover authorization server capabilities
// and endpoint locations.
//
// Corresponds with GET /.well-known/oauth-authorization-server (the `GetWellKnownOauthAuthorizationServer` operationId).
GetWellKnownOauthAuthorizationServer(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWellKnownOauthProtectedResource OAuth 2.0 Protected Resource Metadata
//
// Returns the OAuth 2.0 Protected Resource Metadata document (RFC 9728).
// MCP clients use this endpoint to discover which authorization server(s)
// can issue tokens accepted by this resource server.
//
// Corresponds with GET /.well-known/oauth-protected-resource (the `GetWellKnownOauthProtectedResource` operationId).
GetWellKnownOauthProtectedResource(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAgent0CustomSkills List Agent0 custom skills
//
// Returns the organization's custom skills that the caller may read. Custom skills belong to the organization, not to a dataset. Whether a skill is on is per user, so `dash0.com/enabled` and the `enabled` filter describe the calling user; for an API token every readable skill is on.
//
// Corresponds with GET /api/agent0/custom-skills (the `GetApiAgent0CustomSkills` operationId).
GetApiAgent0CustomSkills(ctx context.Context, params *GetApiAgent0CustomSkillsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAgent0CustomSkillsWithBody Create an Agent0 custom skill
//
// Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
PostApiAgent0CustomSkillsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAgent0CustomSkills Create an Agent0 custom skill
//
// Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
PostApiAgent0CustomSkills(ctx context.Context, body PostApiAgent0CustomSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiAgent0CustomSkillsOriginOrId Delete an Agent0 custom skill
//
// Soft-deletes the skill. Automations whose prompts name it keep running and treat the name as plain prompt text.
//
// Corresponds with DELETE /api/agent0/custom-skills/{originOrId} (the `DeleteApiAgent0CustomSkillsOriginOrId` operationId).
DeleteApiAgent0CustomSkillsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAgent0CustomSkillsOriginOrId Retrieve an Agent0 custom skill
//
// Corresponds with GET /api/agent0/custom-skills/{originOrId} (the `GetApiAgent0CustomSkillsOriginOrId` operationId).
GetApiAgent0CustomSkillsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAgent0CustomSkillsOriginOrIdWithBody Update or insert an Agent0 custom skill
//
// Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
PutApiAgent0CustomSkillsOriginOrIdWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAgent0CustomSkillsOriginOrId Update or insert an Agent0 custom skill
//
// Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
PutApiAgent0CustomSkillsOriginOrId(ctx context.Context, originOrId string, body PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAgenticWorkflows List all automations for the organization
//
// Returns all automations configured for your organization.
//
// Corresponds with GET /api/agentic-workflows (the `GetApiAgenticWorkflows` operationId).
GetApiAgenticWorkflows(ctx context.Context, params *GetApiAgenticWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAgenticWorkflowsWithBody Create a new automation
//
// Create a new automation for your organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
PostApiAgenticWorkflowsWithBody(ctx context.Context, params *PostApiAgenticWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAgenticWorkflows Create a new automation
//
// Create a new automation for your organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
PostApiAgenticWorkflows(ctx context.Context, params *PostApiAgenticWorkflowsParams, body PostApiAgenticWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiAgenticWorkflowsOriginOrId Delete an automation by origin or ID
//
// Deletes a specific automation identified by its origin label or UUID.
//
// Corresponds with DELETE /api/agentic-workflows/{originOrId} (the `DeleteApiAgenticWorkflowsOriginOrId` operationId).
DeleteApiAgenticWorkflowsOriginOrId(ctx context.Context, originOrId string, params *DeleteApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAgenticWorkflowsOriginOrId Get a specific automation by origin or ID
//
// Returns a specific automation identified by its origin label or UUID.
//
// Corresponds with GET /api/agentic-workflows/{originOrId} (the `GetApiAgenticWorkflowsOriginOrId` operationId).
GetApiAgenticWorkflowsOriginOrId(ctx context.Context, originOrId string, params *GetApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAgenticWorkflowsOriginOrIdWithBody Update or create an automation by origin or ID
//
// Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
PutApiAgenticWorkflowsOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAgenticWorkflowsOriginOrId Update or create an automation by origin or ID
//
// Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
PutApiAgenticWorkflowsOriginOrId(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, body PutApiAgenticWorkflowsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAlertingCheckRules Retrieve a list of check rule ids
//
// Corresponds with GET /api/alerting/check-rules (the `GetApiAlertingCheckRules` operationId).
GetApiAlertingCheckRules(ctx context.Context, params *GetApiAlertingCheckRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAlertingCheckRulesWithBody Create a new check rule
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
PostApiAlertingCheckRulesWithBody(ctx context.Context, params *PostApiAlertingCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAlertingCheckRules Create a new check rule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
PostApiAlertingCheckRules(ctx context.Context, params *PostApiAlertingCheckRulesParams, body PostApiAlertingCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAlertingCheckRulesBulkWithBody Bulk create check rules
//
// Atomically create up to 1000 Prometheus alert rules in a single request.
// Create-only — every item produces a brand-new check rule. The public
// schema uses `id` as the user-defined origin; each item resolves it the
// same way `POST /api/alerting/check-rules` does (`id` if given, otherwise
// a server-generated UUID with an "api-" prefix). Any item whose resolved
// origin or id collides with an existing rule (including deleted rules,
// whose origin stays reserved) is rejected with a per-item diagnostic.
//
// If any item fails validation (PromQL, intervals, summary length,
// template functions, origin/id collision, etc.) the whole batch is
// rejected with a 400 that carries per-item diagnostics in the message;
// nothing is written. On a server-side failure the entire batch is rolled
// back and 500 is returned. The endpoint is not idempotent — a successful
// batch retried verbatim will 400 on every item the second time.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default
// for other endpoints) to accommodate batched payloads of up to 1000
// rules per request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
PostApiAlertingCheckRulesBulkWithBody(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAlertingCheckRulesBulk Bulk create check rules
//
// Atomically create up to 1000 Prometheus alert rules in a single request.
// Create-only — every item produces a brand-new check rule. The public
// schema uses `id` as the user-defined origin; each item resolves it the
// same way `POST /api/alerting/check-rules` does (`id` if given, otherwise
// a server-generated UUID with an "api-" prefix). Any item whose resolved
// origin or id collides with an existing rule (including deleted rules,
// whose origin stays reserved) is rejected with a per-item diagnostic.
//
// If any item fails validation (PromQL, intervals, summary length,
// template functions, origin/id collision, etc.) the whole batch is
// rejected with a 400 that carries per-item diagnostics in the message;
// nothing is written. On a server-side failure the entire batch is rolled
// back and 500 is returned. The endpoint is not idempotent — a successful
// batch retried verbatim will 400 on every item the second time.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default
// for other endpoints) to accommodate batched payloads of up to 1000
// rules per request.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
PostApiAlertingCheckRulesBulk(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, body PostApiAlertingCheckRulesBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiAlertingCheckRulesOriginOrId Delete a specific check rule (Prometheus alert rule) by origin or id
//
// Corresponds with DELETE /api/alerting/check-rules/{originOrId} (the `DeleteApiAlertingCheckRulesOriginOrId` operationId).
DeleteApiAlertingCheckRulesOriginOrId(ctx context.Context, originOrId string, params *DeleteApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAlertingCheckRulesOriginOrId Retrieve a specific check rule (Prometheus alert rule) by its origin or id
//
// Corresponds with GET /api/alerting/check-rules/{originOrId} (the `GetApiAlertingCheckRulesOriginOrId` operationId).
GetApiAlertingCheckRulesOriginOrId(ctx context.Context, originOrId string, params *GetApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAlertingCheckRulesOriginOrIdWithBody Update or insert a specific check rule (Prometheus alert rule) by origin or id
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
PutApiAlertingCheckRulesOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAlertingCheckRulesOriginOrId Update or insert a specific check rule (Prometheus alert rule) by origin or id
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
PutApiAlertingCheckRulesOriginOrId(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, body PutApiAlertingCheckRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAuthTokens List all auth tokens for the organization
//
// Returns all auth tokens in your organization. The secret is not returned: `spec.token` is
// only in the response that creates a token.
//
// Corresponds with GET /api/auth-tokens (the `GetApiAuthTokens` operationId).
GetApiAuthTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAuthTokensWithBody Create an auth token
//
// Creates an auth token. The secret is generated by the server and returned in `spec.token`
// in this response only; store it, because no later read returns it. The request must not
// carry `spec.token`: a request that sends one returns `400`.
// `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be
// unique in your organization and must not be a UUID; a machine token that has no user gets an
// `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is
// required; a missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
PostApiAuthTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiAuthTokens Create an auth token
//
// Creates an auth token. The secret is generated by the server and returned in `spec.token`
// in this response only; store it, because no later read returns it. The request must not
// carry `spec.token`: a request that sends one returns `400`.
// `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be
// unique in your organization and must not be a UUID; a machine token that has no user gets an
// `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is
// required; a missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
PostApiAuthTokens(ctx context.Context, body PostApiAuthTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiAuthTokensOriginOrId Delete a specific auth token
//
// Deletes the auth token. Deleting the last remaining auth token of your organization is refused
// with `400`.
//
// Corresponds with DELETE /api/auth-tokens/{originOrId} (the `DeleteApiAuthTokensOriginOrId` operationId).
DeleteApiAuthTokensOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAuthTokensOriginOrId Retrieve a specific auth token
//
// Returns the auth token with the given origin or ID. The secret is not returned: `spec.token`
// is only in the response that creates a token.
//
// Corresponds with GET /api/auth-tokens/{originOrId} (the `GetApiAuthTokensOriginOrId` operationId).
GetApiAuthTokensOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAuthTokensOriginOrIdWithBody Update a specific auth token
//
// Updates an auth token, or creates it when no token has the given origin (upsert by origin).
// The request must not carry `spec.token`: the secret is generated by Dash0 and a request that
// sends one returns `400`. Changing the origin is rejected with `400`. The response includes
// `spec.token` only when this request created the token.
// Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing
// or unsupported value returns `400`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
PutApiAuthTokensOriginOrIdWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAuthTokensOriginOrId Update a specific auth token
//
// Updates an auth token, or creates it when no token has the given origin (upsert by origin).
// The request must not carry `spec.token`: the secret is generated by Dash0 and a request that
// sends one returns `400`. Changing the origin is rejected with `400`. The response includes
// `spec.token` only when this request created the token.
// Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing
// or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
PutApiAuthTokensOriginOrId(ctx context.Context, originOrId string, body PutApiAuthTokensOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiAwsMetricScrapeConfigsIntegrationId Clear the CloudWatch metric scrape config of an AWS integration
//
// Removes every namespace and the integration filter, which stops all scraping for the
// integration. The integration itself is not deleted. Deleting an already empty config succeeds,
// so the call is idempotent, and it succeeds even when the integration's read-only role is not
// active.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Corresponds with DELETE /api/aws-metric-scrape-configs/{integrationId} (the `DeleteApiAwsMetricScrapeConfigsIntegrationId` operationId).
DeleteApiAwsMetricScrapeConfigsIntegrationId(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiAwsMetricScrapeConfigsIntegrationId Get the CloudWatch metric scrape config of an AWS integration
//
// Returns the integration's scrape config document. Every AWS integration has exactly one, so
// an integration that was never configured returns 200 with an empty `namespaces` array, which
// means nothing is scraped.
//
// Namespaces and the metrics within each namespace are sorted ascending. An empty filter is
// never returned. `metadata.name` is the integration's name, and the labels `dash0.com/id`
// (the integration id), `dash0.com/dataset` and `dash0.com/source` are set by the server.
// `dash0.com/origin` and the `dash0.com/created-at` and `dash0.com/updated-at` annotations
// are returned only once the integration has a stored config.
//
// There is no `dataset` query parameter: the dataset is resolved from the integration itself.
//
// Corresponds with GET /api/aws-metric-scrape-configs/{integrationId} (the `GetApiAwsMetricScrapeConfigsIntegrationId` operationId).
GetApiAwsMetricScrapeConfigsIntegrationId(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAwsMetricScrapeConfigsIntegrationIdWithBody Replace the CloudWatch metric scrape config of an AWS integration
//
// Replaces the integration's whole scrape config with the body. A namespace absent from
// `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An
// empty `integrationFilter` or `filter` array means the same as an absent one and is not
// returned.
//
// The whole request is validated, and the integration's metrics-pull schedule asserted, before
// anything is written, so a 400 or 412 response means nothing was stored. Invalid input is
// rejected rather than corrected: a namespace listed twice, a metric listed twice in a
// namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
//
// `metadata.name` is the integration's name; it is read-only and ignored on write. The
// `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards;
// a value longer than 255 characters, with non-printable characters, or starting with a
// reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits
// it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write.
// Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset`
// query parameter: the dataset is resolved from the integration itself, so a caller cannot
// write into a dataset the integration does not belong to.
//
// The response is the document a following `GET` returns, with namespaces and metrics sorted
// ascending.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
PutApiAwsMetricScrapeConfigsIntegrationIdWithBody(ctx context.Context, integrationId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiAwsMetricScrapeConfigsIntegrationId Replace the CloudWatch metric scrape config of an AWS integration
//
// Replaces the integration's whole scrape config with the body. A namespace absent from
// `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An
// empty `integrationFilter` or `filter` array means the same as an absent one and is not
// returned.
//
// The whole request is validated, and the integration's metrics-pull schedule asserted, before
// anything is written, so a 400 or 412 response means nothing was stored. Invalid input is
// rejected rather than corrected: a namespace listed twice, a metric listed twice in a
// namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
//
// `metadata.name` is the integration's name; it is read-only and ignored on write. The
// `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards;
// a value longer than 255 characters, with non-printable characters, or starting with a
// reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits
// it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write.
// Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset`
// query parameter: the dataset is resolved from the integration itself, so a caller cannot
// write into a dataset the integration does not belong to.
//
// The response is the document a following `GET` returns, with namespaces and metrics sorted
// ascending.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
PutApiAwsMetricScrapeConfigsIntegrationId(ctx context.Context, integrationId openapi_types.UUID, body PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiDashboards Receive a list of dashboards
//
// Receive a list of your organization dashboards.
//
// Corresponds with GET /api/dashboards (the `GetApiDashboards` operationId).
GetApiDashboards(ctx context.Context, params *GetApiDashboardsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiDashboardsWithBody Create a dashboard
//
// Create a dashboard.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
PostApiDashboardsWithBody(ctx context.Context, params *PostApiDashboardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiDashboards Create a dashboard
//
// Create a dashboard.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
PostApiDashboards(ctx context.Context, params *PostApiDashboardsParams, body PostApiDashboardsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiDashboardsOriginOrId Delete a specific dashboard by its origin or id
//
// Delete a specific dashboard by its **origin** or **id**.
//
// Corresponds with DELETE /api/dashboards/{originOrId} (the `DeleteApiDashboardsOriginOrId` operationId).
DeleteApiDashboardsOriginOrId(ctx context.Context, originOrId string, params *DeleteApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiDashboardsOriginOrId Receive a specific dashboard by its origin or id
//
// Receive a specific dashboard by its **origin** or **id**.
//
// Corresponds with GET /api/dashboards/{originOrId} (the `GetApiDashboardsOriginOrId` operationId).
GetApiDashboardsOriginOrId(ctx context.Context, originOrId string, params *GetApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiDashboardsOriginOrIdWithBody Update or insert a specific dashboard by its origin or id
//
// Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
PutApiDashboardsOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiDashboardsOriginOrId Update or insert a specific dashboard by its origin or id
//
// Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
PutApiDashboardsOriginOrId(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, body PutApiDashboardsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiDatasets List all datasets for the organization
//
// Returns all datasets in your organization.
//
// Corresponds with GET /api/datasets (the `GetApiDatasets` operationId).
GetApiDatasets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiDatasetsWithBody Create a dataset
//
// Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's
// permanent identifier and cannot be changed afterwards. A slug or origin that is already in
// use, as a slug or as an origin, in your organization is rejected with `400`.
//
// Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the
// origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine
// token that has no user; else none, and the old origin is dropped.
//
// `spec.permissions` sets the dataset's grants. Without it, the organization's members get
// `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants;
// without it, they come back as they were.
//
// `apiVersion` is required. A missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
PostApiDatasetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiDatasets Create a dataset
//
// Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's
// permanent identifier and cannot be changed afterwards. A slug or origin that is already in
// use, as a slug or as an origin, in your organization is rejected with `400`.
//
// Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the
// origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine
// token that has no user; else none, and the old origin is dropped.
//
// `spec.permissions` sets the dataset's grants. Without it, the organization's members get
// `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants;
// without it, they come back as they were.
//
// `apiVersion` is required. A missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
PostApiDatasets(ctx context.Context, body PostApiDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiDatasetsOriginOrId Delete a specific dataset
//
// Deletes the dataset. It can be restored, 30 days by default, by creating a dataset with the same
// slug; after that it is gone for good. Deleting the default dataset returns 400. Deleting a
// dataset that does not exist, or is already deleted, returns 200.
//
// A deleted dataset keeps its origin reserved until it is purged. Creating a dataset with that
// origin under another slug returns `400`.
//
// Corresponds with DELETE /api/datasets/{originOrId} (the `DeleteApiDatasetsOriginOrId` operationId).
DeleteApiDatasetsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiDatasetsOriginOrId Retrieve a specific dataset
//
// Corresponds with GET /api/datasets/{originOrId} (the `GetApiDatasetsOriginOrId` operationId).
GetApiDatasetsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiDatasetsOriginOrIdWithBody Update a specific dataset
//
// Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is
// created instead.
//
// `metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored
// version. Omitting any spec field leaves its stored value unchanged. Changing the slug is
// rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
PutApiDatasetsOriginOrIdWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiDatasetsOriginOrId Update a specific dataset
//
// Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is
// created instead.
//
// `metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored
// version. Omitting any spec field leaves its stored value unchanged. Changing the slug is
// rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
PutApiDatasetsOriginOrId(ctx context.Context, originOrId string, body PutApiDatasetsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiEdgeSettings Retrieve settings for the organization identified by the provided Dash0 auth token
//
// Returns the aggregate settings payload (dataset settings, signal-to-metrics rules,
// telemetry transformation rules, etc.) for the organization that owns the provided
// bearer token. Designed for edge collectors running in customer
// environments that need their full configuration in one request.
//
// Corresponds with GET /api/edge/settings (the `GetApiEdgeSettings` operationId).
GetApiEdgeSettings(ctx context.Context, params *GetApiEdgeSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportCheckRuleWithBody Import a check rule
//
// This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management.
// Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state.
// Importing a check rule without an id will create a new check rule and return the created asset with a generated id.
// Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
PostApiImportCheckRuleWithBody(ctx context.Context, params *PostApiImportCheckRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportCheckRule Import a check rule
//
// This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management.
// Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state.
// Importing a check rule without an id will create a new check rule and return the created asset with a generated id.
// Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
PostApiImportCheckRule(ctx context.Context, params *PostApiImportCheckRuleParams, body PostApiImportCheckRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportCheckRulesWithBody Import multiple check rules in one batch
//
// Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000
// Prometheus alert rules into your organization with **full editability**
// — the resulting rules behave like UI-created assets, not API-managed
// ones, so they can be modified in the Dash0 UI afterwards. Intended for
// one-time migrations rather than ongoing Infrastructure-as-Code
// management.
//
// Per-item id/origin resolution matches `POST /api/import/check-rule`:
// items without an `id` receive a server-generated UUID; items with an
// `id` reuse it. Generated origins are **not** prefixed with `api-` and
// the rules remain UI-editable.
//
// Behaves like the regular bulk endpoint in every other respect: items
// are validated up-front, the whole batch is rejected on any item
// failure, nothing is written on rollback, and the endpoint is not
// idempotent. This endpoint accepts request bodies up to 2 MB (vs. the
// 256 KB default for other endpoints) to accommodate batched payloads of
// up to 1000 rules per request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
PostApiImportCheckRulesWithBody(ctx context.Context, params *PostApiImportCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportCheckRules Import multiple check rules in one batch
//
// Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000
// Prometheus alert rules into your organization with **full editability**
// — the resulting rules behave like UI-created assets, not API-managed
// ones, so they can be modified in the Dash0 UI afterwards. Intended for
// one-time migrations rather than ongoing Infrastructure-as-Code
// management.
//
// Per-item id/origin resolution matches `POST /api/import/check-rule`:
// items without an `id` receive a server-generated UUID; items with an
// `id` reuse it. Generated origins are **not** prefixed with `api-` and
// the rules remain UI-editable.
//
// Behaves like the regular bulk endpoint in every other respect: items
// are validated up-front, the whole batch is rejected on any item
// failure, nothing is written on rollback, and the endpoint is not
// idempotent. This endpoint accepts request bodies up to 2 MB (vs. the
// 256 KB default for other endpoints) to accommodate batched payloads of
// up to 1000 rules per request.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
PostApiImportCheckRules(ctx context.Context, params *PostApiImportCheckRulesParams, body PostApiImportCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportDashboardWithBody Import a dashboard
//
// This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management.
// Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state.
// Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id.
// Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
PostApiImportDashboardWithBody(ctx context.Context, params *PostApiImportDashboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportDashboard Import a dashboard
//
// This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management.
// Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state.
// Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id.
// Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
PostApiImportDashboard(ctx context.Context, params *PostApiImportDashboardParams, body PostApiImportDashboardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiImportSignalToMetricsWithBody Bulk upsert signal-to-metrics configs
//
// Atomically upserts up to 500 signal-to-metrics configurations at once. If any item
// fails validation or cannot be written, the entire batch is rejected and no
// configurations are changed.
//
// This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform,
// the operator, CLI scripts). Rules are matched by their `origin` values across
// repeated invocations, making the operation idempotent.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other
// endpoints) to accommodate batched payloads of up to 500 rules per request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
PutApiImportSignalToMetricsWithBody(ctx context.Context, params *PutApiImportSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiImportSignalToMetrics Bulk upsert signal-to-metrics configs
//
// Atomically upserts up to 500 signal-to-metrics configurations at once. If any item
// fails validation or cannot be written, the entire batch is rejected and no
// configurations are changed.
//
// This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform,
// the operator, CLI scripts). Rules are matched by their `origin` values across
// repeated invocations, making the operation idempotent.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other
// endpoints) to accommodate batched payloads of up to 500 rules per request.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
PutApiImportSignalToMetrics(ctx context.Context, params *PutApiImportSignalToMetricsParams, body PutApiImportSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportSyntheticCheckWithBody Import a synthetic check
//
// This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management.
// Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state.
// Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id.
// Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
PostApiImportSyntheticCheckWithBody(ctx context.Context, params *PostApiImportSyntheticCheckParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportSyntheticCheck Import a synthetic check
//
// This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management.
// Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state.
// Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id.
// Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
PostApiImportSyntheticCheck(ctx context.Context, params *PostApiImportSyntheticCheckParams, body PostApiImportSyntheticCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportViewWithBody Import a view
//
// This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management.
// Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state.
// Importing a view without an id will create a new view and return the created asset with a generated id.
// Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
PostApiImportViewWithBody(ctx context.Context, params *PostApiImportViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportView Import a view
//
// This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management.
// Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state.
// Importing a view without an id will create a new view and return the created asset with a generated id.
// Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
PostApiImportView(ctx context.Context, params *PostApiImportViewParams, body PostApiImportViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogsWithBody Returns OTLP logs records
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/logs (the `PostApiLogs` operationId).
PostApiLogsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogs Returns OTLP logs records
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/logs (the `PostApiLogs` operationId).
PostApiLogs(ctx context.Context, body PostApiLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogsDownloadWithBody Download OTLP log records as a file
//
// Returns the log records matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 log records.** A `limit` above that cap is
// rejected rather than silently clamped: the response is a client error naming the cap.
// When the query matches more than 5000 records, the export carries the first 5000 in
// result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
//
// The records are the same ones `POST /api/logs` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first record
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
PostApiLogsDownloadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogsDownload Download OTLP log records as a file
//
// Returns the log records matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 log records.** A `limit` above that cap is
// rejected rather than silently clamped: the response is a client error naming the cap.
// When the query matches more than 5000 records, the export carries the first 5000 in
// result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
//
// The records are the same ones `POST /api/logs` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first record
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
PostApiLogsDownload(ctx context.Context, body PostApiLogsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiMembers Receive a list of organization members
//
// Receive a list of all members in your organization.
//
// Corresponds with GET /api/members (the `GetApiMembers` operationId).
GetApiMembers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMembersWithBody Invite a member to the organization
//
// Sends an invitation to join the organization to the given email address.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/members (the `PostApiMembers` operationId).
PostApiMembersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMembers Invite a member to the organization
//
// Sends an invitation to join the organization to the given email address.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/members (the `PostApiMembers` operationId).
PostApiMembers(ctx context.Context, body PostApiMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiMembersInvitations Receive a list of pending member invitations
//
// Receive all invitations to your organization that have not been accepted yet. Invitees are
// not listed by `GET /api/members` until they accept, so compare against both lists before
// inviting an address again. Requires the admin role.
//
// Corresponds with GET /api/members/invitations (the `GetApiMembersInvitations` operationId).
GetApiMembersInvitations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiMembersInvitationsInvitationID Revoke a pending member invitation
//
// Revokes an invitation to your organization that has not been accepted yet, so it can no
// longer be accepted. Requires the admin role.
//
// Corresponds with DELETE /api/members/invitations/{invitationID} (the `DeleteApiMembersInvitationsInvitationID` operationId).
DeleteApiMembersInvitationsInvitationID(ctx context.Context, invitationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiMembersMemberID Remove a member from the organization
//
// Removes the given member from the organization.
//
// Corresponds with DELETE /api/members/{memberID} (the `DeleteApiMembersMemberID` operationId).
DeleteApiMembersMemberID(ctx context.Context, memberID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiMembersMemberIDRoleWithBody Change the organization role of a member
//
// Changes the role of a member of your organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
PutApiMembersMemberIDRoleWithBody(ctx context.Context, memberID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiMembersMemberIDRole Change the organization role of a member
//
// Changes the role of a member of your organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
PutApiMembersMemberIDRole(ctx context.Context, memberID string, body PutApiMembersMemberIDRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotificationChannels List all notification channels for the organization
//
// Returns all notification channels configured for your organization as CRD-enveloped resources.
//
// Corresponds with GET /api/notification-channels (the `GetApiNotificationChannels` operationId).
GetApiNotificationChannels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotificationChannelsWithBody Create a new notification channel
//
// Create a new notification channel for your organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
PostApiNotificationChannelsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotificationChannels Create a new notification channel
//
// Create a new notification channel for your organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
PostApiNotificationChannels(ctx context.Context, body PostApiNotificationChannelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiNotificationChannelsOriginOrId Delete a notification channel
//
// Deletes a specific notification channel identified by its UUID or origin.
//
// Corresponds with DELETE /api/notification-channels/{originOrId} (the `DeleteApiNotificationChannelsOriginOrId` operationId).
DeleteApiNotificationChannelsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotificationChannelsOriginOrId Get a specific notification channel
//
// Returns a specific notification channel identified by its UUID or origin.
//
// Corresponds with GET /api/notification-channels/{originOrId} (the `GetApiNotificationChannelsOriginOrId` operationId).
GetApiNotificationChannelsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiNotificationChannelsOriginOrIdWithBody Update a notification channel
//
// Updates an existing notification channel.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
PutApiNotificationChannelsOriginOrIdWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiNotificationChannelsOriginOrId Update a notification channel
//
// Updates an existing notification channel.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
PutApiNotificationChannelsOriginOrId(ctx context.Context, originOrId string, body PutApiNotificationChannelsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1FormatQuery Evaluates and returns a formatted version of the query
//
// Corresponds with GET /api/prometheus/api/v1/format_query (the `GetApiPrometheusApiV1FormatQuery` operationId).
GetApiPrometheusApiV1FormatQuery(ctx context.Context, params *GetApiPrometheusApiV1FormatQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1FormatQueryWithBody Evaluates and returns a formatted version of the query
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1FormatQuery Evaluates and returns a formatted version of the query
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQuery(ctx context.Context, body PostApiPrometheusApiV1FormatQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1FormatQueryWithFormdataBody Evaluates and returns a formatted version of the query
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQueryWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1LabelLabelNameValues Returns a list of label values for a provided label name
//
// Corresponds with GET /api/prometheus/api/v1/label/{label_name}/values (the `GetApiPrometheusApiV1LabelLabelNameValues` operationId).
GetApiPrometheusApiV1LabelLabelNameValues(ctx context.Context, labelName string, params *GetApiPrometheusApiV1LabelLabelNameValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1LabelLabelNameValuesWithBody Returns a list of label values for a provided label name
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValuesWithBody(ctx context.Context, labelName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1LabelLabelNameValues Returns a list of label values for a provided label name
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValues(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBody Returns a list of label values for a provided label name
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBody(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1Labels Returns a list of label names
//
// Corresponds with GET /api/prometheus/api/v1/labels (the `GetApiPrometheusApiV1Labels` operationId).
GetApiPrometheusApiV1Labels(ctx context.Context, params *GetApiPrometheusApiV1LabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1LabelsWithBody Returns a list of label names
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1LabelsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1Labels Returns a list of label names
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1Labels(ctx context.Context, body PostApiPrometheusApiV1LabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1LabelsWithFormdataBody Returns a list of label names
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1LabelsWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1LabelsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1Metadata Returns metadata about metrics currently scraped from targets
//
// Corresponds with GET /api/prometheus/api/v1/metadata (the `GetApiPrometheusApiV1Metadata` operationId).
GetApiPrometheusApiV1Metadata(ctx context.Context, params *GetApiPrometheusApiV1MetadataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1MetadataWithBody Returns metadata about metrics currently scraped from targets
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1MetadataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1Metadata Returns metadata about metrics currently scraped from targets
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1Metadata(ctx context.Context, body PostApiPrometheusApiV1MetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1MetadataWithFormdataBody Returns metadata about metrics currently scraped from targets
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1MetadataWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1MetadataFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1Query Evaluates an instant query at a single point in time
//
// Corresponds with GET /api/prometheus/api/v1/query (the `GetApiPrometheusApiV1Query` operationId).
GetApiPrometheusApiV1Query(ctx context.Context, params *GetApiPrometheusApiV1QueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1QueryWithBody Evaluates an instant query at a single point in time
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1QueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1Query Evaluates an instant query at a single point in time
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1Query(ctx context.Context, body PostApiPrometheusApiV1QueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1QueryWithFormdataBody Evaluates an instant query at a single point in time
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1QueryWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1QueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1QueryRange Evaluates a PromQL expression over a range of time
//
// Corresponds with GET /api/prometheus/api/v1/query_range (the `GetApiPrometheusApiV1QueryRange` operationId).
GetApiPrometheusApiV1QueryRange(ctx context.Context, params *GetApiPrometheusApiV1QueryRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1QueryRangeWithBody Evaluates a PromQL expression over a range of time
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRangeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1QueryRange Evaluates a PromQL expression over a range of time
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRange(ctx context.Context, body PostApiPrometheusApiV1QueryRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1QueryRangeWithFormdataBody Evaluates a PromQL expression over a range of time
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRangeWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1Series Returns the list of time series that match a label selector
//
// Corresponds with GET /api/prometheus/api/v1/series (the `GetApiPrometheusApiV1Series` operationId).
GetApiPrometheusApiV1Series(ctx context.Context, params *GetApiPrometheusApiV1SeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1SeriesWithBody Returns the list of time series that match a label selector
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1SeriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1Series Returns the list of time series that match a label selector
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1Series(ctx context.Context, body PostApiPrometheusApiV1SeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiPrometheusApiV1SeriesWithFormdataBody Returns the list of time series that match a label selector
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1SeriesWithFormdataBody(ctx context.Context, body PostApiPrometheusApiV1SeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1StatusBuildinfo Returns various build information properties about the Prometheus-compatible server
//
// Corresponds with GET /api/prometheus/api/v1/status/buildinfo (the `GetApiPrometheusApiV1StatusBuildinfo` operationId).
GetApiPrometheusApiV1StatusBuildinfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPrometheusApiV1StatusRuntimeinfo Returns various runtime information properties about the Prometheus-compatible server
//
// Corresponds with GET /api/prometheus/api/v1/status/runtimeinfo (the `GetApiPrometheusApiV1StatusRuntimeinfo` operationId).
GetApiPrometheusApiV1StatusRuntimeinfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiRecordingRules Retrieve a list of recording rules
//
// Corresponds with GET /api/recording-rules (the `GetApiRecordingRules` operationId).
GetApiRecordingRules(ctx context.Context, params *GetApiRecordingRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiRecordingRulesWithBody Create a recording rule
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
PostApiRecordingRulesWithBody(ctx context.Context, params *PostApiRecordingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiRecordingRules Create a recording rule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
PostApiRecordingRules(ctx context.Context, params *PostApiRecordingRulesParams, body PostApiRecordingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiRecordingRulesOriginOrId Delete a specific recording rule
//
// Corresponds with DELETE /api/recording-rules/{originOrId} (the `DeleteApiRecordingRulesOriginOrId` operationId).
DeleteApiRecordingRulesOriginOrId(ctx context.Context, originOrId string, params *DeleteApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiRecordingRulesOriginOrId Retrieve the latest version of a specific recording rule
//
// Corresponds with GET /api/recording-rules/{originOrId} (the `GetApiRecordingRulesOriginOrId` operationId).
GetApiRecordingRulesOriginOrId(ctx context.Context, originOrId string, params *GetApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiRecordingRulesOriginOrIdWithBody Update a specific recording rule
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
PutApiRecordingRulesOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiRecordingRulesOriginOrId Update a specific recording rule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
PutApiRecordingRulesOriginOrId(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, body PutApiRecordingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSamplingRules List all sampling rules for the organization
//
// Returns all sampling rules configured for your organization.
//
// Corresponds with GET /api/sampling-rules (the `GetApiSamplingRules` operationId).
GetApiSamplingRules(ctx context.Context, params *GetApiSamplingRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSamplingRulesWithBody Create a new sampling rule
//
// Create a new sampling rule for your organization. If you set
// `metadata.labels["dash0.com/origin"]`, it must be unique within the organization,
// across all datasets. See "Resource origins" in the introduction. A request with a
// duplicate origin returns 400. To run the same rule in several datasets, put the
// dataset in the origin.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
PostApiSamplingRulesWithBody(ctx context.Context, params *PostApiSamplingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSamplingRules Create a new sampling rule
//
// Create a new sampling rule for your organization. If you set
// `metadata.labels["dash0.com/origin"]`, it must be unique within the organization,
// across all datasets. See "Resource origins" in the introduction. A request with a
// duplicate origin returns 400. To run the same rule in several datasets, put the
// dataset in the origin.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
PostApiSamplingRules(ctx context.Context, params *PostApiSamplingRulesParams, body PostApiSamplingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiSamplingRulesOriginOrId Delete a sampling rule by origin or ID
//
// Deletes a specific sampling rule identified by its origin label or UUID.
//
// Corresponds with DELETE /api/sampling-rules/{originOrId} (the `DeleteApiSamplingRulesOriginOrId` operationId).
DeleteApiSamplingRulesOriginOrId(ctx context.Context, originOrId string, params *DeleteApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSamplingRulesOriginOrId Get a specific sampling rule by origin or ID
//
// Returns a specific sampling rule identified by its origin label or UUID.
//
// Corresponds with GET /api/sampling-rules/{originOrId} (the `GetApiSamplingRulesOriginOrId` operationId).
GetApiSamplingRulesOriginOrId(ctx context.Context, originOrId string, params *GetApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSamplingRulesOriginOrIdWithBody Update or create a sampling rule by origin or ID
//
// Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
PutApiSamplingRulesOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSamplingRulesOriginOrId Update or create a sampling rule by origin or ID
//
// Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
PutApiSamplingRulesOriginOrId(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, body PutApiSamplingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSignalToMetrics List all signal-to-metrics configs for the organization
//
// Returns all signal-to-metrics configurations for your organization.
//
// Corresponds with GET /api/signal-to-metrics (the `GetApiSignalToMetrics` operationId).
GetApiSignalToMetrics(ctx context.Context, params *GetApiSignalToMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignalToMetricsWithBody Create a new signal-to-metrics config
//
// Create a new signal-to-metrics configuration for your organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
PostApiSignalToMetricsWithBody(ctx context.Context, params *PostApiSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignalToMetrics Create a new signal-to-metrics config
//
// Create a new signal-to-metrics configuration for your organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
PostApiSignalToMetrics(ctx context.Context, params *PostApiSignalToMetricsParams, body PostApiSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignalToMetricsTestWithBody Test a signal-to-metrics config
//
// Validates a signal-to-metrics definition and simulates its match filter
// against real signals in the selected dataset over a recent time window.
// Returns the number of matching signals on success. A 4xx error is returned
// when the definition fails validation or the request is otherwise invalid.
// Nothing is persisted.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
PostApiSignalToMetricsTestWithBody(ctx context.Context, params *PostApiSignalToMetricsTestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignalToMetricsTest Test a signal-to-metrics config
//
// Validates a signal-to-metrics definition and simulates its match filter
// against real signals in the selected dataset over a recent time window.
// Returns the number of matching signals on success. A 4xx error is returned
// when the definition fails validation or the request is otherwise invalid.
// Nothing is persisted.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
PostApiSignalToMetricsTest(ctx context.Context, params *PostApiSignalToMetricsTestParams, body PostApiSignalToMetricsTestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiSignalToMetricsOriginOrId Delete a signal-to-metrics config by origin or ID
//
// Deletes a specific signal-to-metrics configuration identified by its origin label or UUID.
//
// Corresponds with DELETE /api/signal-to-metrics/{originOrId} (the `DeleteApiSignalToMetricsOriginOrId` operationId).
DeleteApiSignalToMetricsOriginOrId(ctx context.Context, originOrId string, params *DeleteApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSignalToMetricsOriginOrId Get a specific signal-to-metrics config by origin or ID
//
// Returns a specific signal-to-metrics configuration identified by its origin label or UUID.
//
// Corresponds with GET /api/signal-to-metrics/{originOrId} (the `GetApiSignalToMetricsOriginOrId` operationId).
GetApiSignalToMetricsOriginOrId(ctx context.Context, originOrId string, params *GetApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSignalToMetricsOriginOrIdWithBody Update or create a signal-to-metrics config by origin or ID
//
// Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
PutApiSignalToMetricsOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSignalToMetricsOriginOrId Update or create a signal-to-metrics config by origin or ID
//
// Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
PutApiSignalToMetricsOriginOrId(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, body PutApiSignalToMetricsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSlos Retrieve a list of SLOs
//
// Corresponds with GET /api/slos (the `GetApiSlos` operationId).
GetApiSlos(ctx context.Context, params *GetApiSlosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSlosWithBody Create an SLO
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/slos (the `PostApiSlos` operationId).
PostApiSlosWithBody(ctx context.Context, params *PostApiSlosParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSlos Create an SLO
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/slos (the `PostApiSlos` operationId).
PostApiSlos(ctx context.Context, params *PostApiSlosParams, body PostApiSlosJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiSlosOriginOrId Delete a specific SLO
//
// Corresponds with DELETE /api/slos/{originOrId} (the `DeleteApiSlosOriginOrId` operationId).
DeleteApiSlosOriginOrId(ctx context.Context, originOrId string, params *DeleteApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSlosOriginOrId Retrieve the latest version of a specific SLO
//
// Corresponds with GET /api/slos/{originOrId} (the `GetApiSlosOriginOrId` operationId).
GetApiSlosOriginOrId(ctx context.Context, originOrId string, params *GetApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSlosOriginOrIdWithBody Update a specific SLO
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
PutApiSlosOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSlosOriginOrId Update a specific SLO
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
PutApiSlosOriginOrId(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, body PutApiSlosOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSlosOriginOrIdReset Restart the error budget window of a specific SLO
//
// Starts a new error budget window for the SLO, beginning now. The definition is left
// unchanged, and the measurement starts from scratch: everything recorded before the reset,
// including any incident, stops counting against the objective.
//
// The SLO records a new series from this point on, so the budget reported right after a reset
// covers only the elapsed part of the time window and widens as the window fills up again.
// Data recorded by the previous series is kept.
//
// Corresponds with POST /api/slos/{originOrId}/reset (the `PostApiSlosOriginOrIdReset` operationId).
PostApiSlosOriginOrIdReset(ctx context.Context, originOrId string, params *PostApiSlosOriginOrIdResetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSpamFilters List all spam filters for the organization
//
// Returns all spam filters configured for your organization.
//
// Corresponds with GET /api/spam-filters (the `GetApiSpamFilters` operationId).
GetApiSpamFilters(ctx context.Context, params *GetApiSpamFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpamFiltersWithBody Create a new spam filter
//
// Create a new spam filter for your organization. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within
// the organization and dataset. A request with a duplicate origin returns 400.
// If no origin is provided, the server auto-generates one (`api-<uuid>`).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
PostApiSpamFiltersWithBody(ctx context.Context, params *PostApiSpamFiltersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpamFilters Create a new spam filter
//
// Create a new spam filter for your organization. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within
// the organization and dataset. A request with a duplicate origin returns 400.
// If no origin is provided, the server auto-generates one (`api-<uuid>`).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
PostApiSpamFilters(ctx context.Context, params *PostApiSpamFiltersParams, body PostApiSpamFiltersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiSpamFiltersOriginOrId Delete a spam filter by origin or ID
//
// Deletes a specific spam filter identified by its origin label or UUID.
//
// Corresponds with DELETE /api/spam-filters/{originOrId} (the `DeleteApiSpamFiltersOriginOrId` operationId).
DeleteApiSpamFiltersOriginOrId(ctx context.Context, originOrId string, params *DeleteApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSpamFiltersOriginOrId Get a specific spam filter by origin or ID
//
// Returns a specific spam filter identified by its origin label or UUID.
//
// Corresponds with GET /api/spam-filters/{originOrId} (the `GetApiSpamFiltersOriginOrId` operationId).
GetApiSpamFiltersOriginOrId(ctx context.Context, originOrId string, params *GetApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSpamFiltersOriginOrIdWithBody Update or create a spam filter by origin or ID
//
// Updates an existing spam filter or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
PutApiSpamFiltersOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSpamFiltersOriginOrId Update or create a spam filter by origin or ID
//
// Updates an existing spam filter or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
PutApiSpamFiltersOriginOrId(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, body PutApiSpamFiltersOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpansWithBody Returns OTLP spans
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/spans (the `PostApiSpans` operationId).
PostApiSpansWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpans Returns OTLP spans
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/spans (the `PostApiSpans` operationId).
PostApiSpans(ctx context.Context, body PostApiSpansJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpansDownloadWithBody Download OTLP spans as a file
//
// Returns the spans matching the given query as a downloadable file in the requested
// format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 spans.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 spans, the export carries the first 5000 in result-set
// order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
//
// The spans are the same ones `POST /api/spans` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume. This request accordingly takes no
// `sampling`, and one sent anyway is ignored.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first span
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
PostApiSpansDownloadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSpansDownload Download OTLP spans as a file
//
// Returns the spans matching the given query as a downloadable file in the requested
// format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 spans.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 spans, the export carries the first 5000 in result-set
// order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
//
// The spans are the same ones `POST /api/spans` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume. This request accordingly takes no
// `sampling`, and one sent anyway is ignored.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first span
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
PostApiSpansDownload(ctx context.Context, body PostApiSpansDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSqlWithBody Execute a SQL query and return results as JSON
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/sql (the `PostApiSql` operationId).
PostApiSqlWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSql Execute a SQL query and return results as JSON
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/sql (the `PostApiSql` operationId).
PostApiSql(ctx context.Context, body PostApiSqlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSyntheticChecks Receive a list of synthetic checks
//
// Receive a list of your organization synthetic checks.
//
// Corresponds with GET /api/synthetic-checks (the `GetApiSyntheticChecks` operationId).
GetApiSyntheticChecks(ctx context.Context, params *GetApiSyntheticChecksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSyntheticChecksWithBody Create a synthetic check
//
// Create a synthetic check.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
PostApiSyntheticChecksWithBody(ctx context.Context, params *PostApiSyntheticChecksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSyntheticChecks Create a synthetic check
//
// Create a synthetic check.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
PostApiSyntheticChecks(ctx context.Context, params *PostApiSyntheticChecksParams, body PostApiSyntheticChecksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSyntheticChecksLocations Retrieve the synthetic check locations available to the organization
//
// Returns Dash0 public regions and the organization's private synthetic locations as one
// list. `kind` distinguishes them.
//
// The `id` of an entry is what a synthetic check definition stores to target it: the region
// identifier for a public region, and the Dash0-assigned opaque id for a private location. A
// check may also target a private location by its `locationId`, which names one location for
// good. A value equal to a public region identifier always means the region; target a private
// location with such a `locationId` by its `id`.
//
// Deleted private locations are omitted.
//
// Private locations carry `health`, derived from the workers currently connected to them.
// `health.status` is `unknown` when Dash0 cannot determine the connection state; that is
// distinct from `offline`, which reports that no worker is connected.
//
// Corresponds with GET /api/synthetic-checks/locations (the `GetApiSyntheticChecksLocations` operationId).
GetApiSyntheticChecksLocations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSyntheticChecksTestWithBody Trigger a test run of a synthetic check
//
// Triggers an immediate test execution of a synthetic check.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
PostApiSyntheticChecksTestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSyntheticChecksTest Trigger a test run of a synthetic check
//
// Triggers an immediate test execution of a synthetic check.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
PostApiSyntheticChecksTest(ctx context.Context, body PostApiSyntheticChecksTestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiSyntheticChecksOriginOrId Delete a specific synthetic check by origin or id
//
// Corresponds with DELETE /api/synthetic-checks/{originOrId} (the `DeleteApiSyntheticChecksOriginOrId` operationId).
DeleteApiSyntheticChecksOriginOrId(ctx context.Context, originOrId string, params *DeleteApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSyntheticChecksOriginOrId Receive a specific synthetic check by its origin or id
//
// Corresponds with GET /api/synthetic-checks/{originOrId} (the `GetApiSyntheticChecksOriginOrId` operationId).
GetApiSyntheticChecksOriginOrId(ctx context.Context, originOrId string, params *GetApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSyntheticChecksOriginOrIdWithBody Update or insert a specific synthetic check by its origin or id
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
PutApiSyntheticChecksOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiSyntheticChecksOriginOrId Update or insert a specific synthetic check by its origin or id
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
PutApiSyntheticChecksOriginOrId(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, body PutApiSyntheticChecksOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTeams Receive a list of teams
//
// Receive a list of your organization teams.
//
// Corresponds with GET /api/teams (the `GetApiTeams` operationId).
GetApiTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTeamsWithBody Create a new team
//
// Create a new team in the organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/teams (the `PostApiTeams` operationId).
PostApiTeamsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTeams Create a new team
//
// Create a new team in the organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/teams (the `PostApiTeams` operationId).
PostApiTeams(ctx context.Context, body PostApiTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTeamsOriginOrId Delete a specific team by its origin or id
//
// Delete a specific team by its **origin** or **id**.
//
// Corresponds with DELETE /api/teams/{originOrId} (the `DeleteApiTeamsOriginOrId` operationId).
DeleteApiTeamsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTeamsOriginOrId Receive a specific team by its origin or id
//
// Receive a specific team by its **origin** or **id**.
//
// Corresponds with GET /api/teams/{originOrId} (the `GetApiTeamsOriginOrId` operationId).
GetApiTeamsOriginOrId(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTeamsOriginOrIdWithBody Update or insert a specific team by its origin or id
//
// Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
//
// `spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
PutApiTeamsOriginOrIdWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTeamsOriginOrId Update or insert a specific team by its origin or id
//
// Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
//
// `spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
PutApiTeamsOriginOrId(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTeamsOriginOrIdDisplayWithBody Update a specific team display option
//
// Update the display name, description, and color of a team.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
PutApiTeamsOriginOrIdDisplayWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTeamsOriginOrIdDisplay Update a specific team display option
//
// Update the display name, description, and color of a team.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
PutApiTeamsOriginOrIdDisplay(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdDisplayJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTeamsOriginOrIdMembersWithBody Add members to a team
//
// Adds the given members to the team.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
PostApiTeamsOriginOrIdMembersWithBody(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTeamsOriginOrIdMembers Add members to a team
//
// Adds the given members to the team.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
PostApiTeamsOriginOrIdMembers(ctx context.Context, originOrId string, body PostApiTeamsOriginOrIdMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTeamsOriginOrIdMembersMemberID Remove a member from a team
//
// Removes the given member from the team.
//
// Corresponds with DELETE /api/teams/{originOrId}/members/{memberID} (the `DeleteApiTeamsOriginOrIdMembersMemberID` operationId).
DeleteApiTeamsOriginOrIdMembersMemberID(ctx context.Context, originOrId string, memberID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTimeSeriesAggregations List all time series aggregations for the organization
//
// Returns all time series aggregation rules configured for your organization.
//
// Corresponds with GET /api/time-series-aggregations (the `GetApiTimeSeriesAggregations` operationId).
GetApiTimeSeriesAggregations(ctx context.Context, params *GetApiTimeSeriesAggregationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTimeSeriesAggregationsWithBody Create a new time series aggregation
//
// Create a new time series aggregation rule for your organization. If
// `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the
// organization and dataset; a request with a duplicate origin returns 400. If no
// origin is provided, the server auto-generates one.
//
// The origin must not be a UUID, because origin-or-id lookups would then be
// ambiguous; such a request returns 400. To choose the rule's ID, PUT to
// `/api/time-series-aggregations/{uuid}` and leave the origin unset.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
PostApiTimeSeriesAggregationsWithBody(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTimeSeriesAggregations Create a new time series aggregation
//
// Create a new time series aggregation rule for your organization. If
// `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the
// organization and dataset; a request with a duplicate origin returns 400. If no
// origin is provided, the server auto-generates one.
//
// The origin must not be a UUID, because origin-or-id lookups would then be
// ambiguous; such a request returns 400. To choose the rule's ID, PUT to
// `/api/time-series-aggregations/{uuid}` and leave the origin unset.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
PostApiTimeSeriesAggregations(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, body PostApiTimeSeriesAggregationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTimeSeriesAggregationsOriginOrId Delete a time series aggregation by origin or ID
//
// Deletes a specific time series aggregation identified by its origin label or UUID.
//
// Corresponds with DELETE /api/time-series-aggregations/{originOrId} (the `DeleteApiTimeSeriesAggregationsOriginOrId` operationId).
DeleteApiTimeSeriesAggregationsOriginOrId(ctx context.Context, originOrId string, params *DeleteApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTimeSeriesAggregationsOriginOrId Get a specific time series aggregation by origin or ID
//
// Returns a specific time series aggregation identified by its origin label or UUID.
//
// Corresponds with GET /api/time-series-aggregations/{originOrId} (the `GetApiTimeSeriesAggregationsOriginOrId` operationId).
GetApiTimeSeriesAggregationsOriginOrId(ctx context.Context, originOrId string, params *GetApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTimeSeriesAggregationsOriginOrIdWithBody Update or create a time series aggregation by origin or ID
//
// Updates an existing time series aggregation or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows.
//
// When no rule matches and `originOrId` is a UUID, the rule is created with that UUID
// as its ID and no origin, so it stays editable in the UI. Any other value becomes the
// rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
PutApiTimeSeriesAggregationsOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiTimeSeriesAggregationsOriginOrId Update or create a time series aggregation by origin or ID
//
// Updates an existing time series aggregation or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows.
//
// When no rule matches and `originOrId` is a UUID, the rule is created with that UUID
// as its ID and no origin, so it stays editable in the UI. Any other value becomes the
// rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
PutApiTimeSeriesAggregationsOriginOrId(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, body PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTopologyWithBody Returns the service topology with RED statistics on services and connections
//
// Returns the service topology for a time range: one node per
// `service.namespace` + `service.name` pair, and one edge per observed
// direction of calls between two nodes. Nodes and edges each carry the
// RED statistics selected via `nodeStatistics` and `edgeStatistics`.
//
// Edges join to nodes by service identity, not by an opaque id. Peers
// that never reported telemetry of their own — databases, brokers,
// third-party APIs — appear as `inferred` nodes without statistics, so
// the graph stays whole.
//
// Not paginated, and the grouping is not client-selectable; see
// `GetTopologyRequest`. Edge statistics come from a different metric
// than node statistics and are not comparable to them; see
// `TopologyEdgeStatistics`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/topology (the `PostApiTopology` operationId).
PostApiTopologyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTopology Returns the service topology with RED statistics on services and connections
//
// Returns the service topology for a time range: one node per
// `service.namespace` + `service.name` pair, and one edge per observed
// direction of calls between two nodes. Nodes and edges each carry the
// RED statistics selected via `nodeStatistics` and `edgeStatistics`.
//
// Edges join to nodes by service identity, not by an opaque id. Peers
// that never reported telemetry of their own — databases, brokers,
// third-party APIs — appear as `inferred` nodes without statistics, so
// the graph stays whole.
//
// Not paginated, and the grouping is not client-selectable; see
// `GetTopologyRequest`. Edge statistics come from a different metric
// than node statistics and are not comparable to them; see
// `TopologyEdgeStatistics`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/topology (the `PostApiTopology` operationId).
PostApiTopology(ctx context.Context, body PostApiTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTraceDetailsWithBody Returns the OTLP spans and log records (if any) associated with the trace ID
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
PostApiTraceDetailsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTraceDetails Returns the OTLP spans and log records (if any) associated with the trace ID
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
PostApiTraceDetails(ctx context.Context, body PostApiTraceDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTraceIdsWithBody Returns unique trace IDs matching the given filters
//
// Lightweight endpoint that returns only the unique trace IDs of traces containing
// at least one span matching the request filters. Useful for two-step workflows: first
// find matching trace IDs, then fetch full trace details via
// `POST /api/trace/details`. Significantly faster and lighter-weight than
// `POST /api/spans` when only trace IDs are needed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
PostApiTraceIdsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTraceIds Returns unique trace IDs matching the given filters
//
// Lightweight endpoint that returns only the unique trace IDs of traces containing
// at least one span matching the request filters. Useful for two-step workflows: first
// find matching trace IDs, then fetch full trace details via
// `POST /api/trace/details`. Significantly faster and lighter-weight than
// `POST /api/spans` when only trace IDs are needed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
PostApiTraceIds(ctx context.Context, body PostApiTraceIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiViews Receive a list of views
//
// Receive a list of your organization views.
//
// Corresponds with GET /api/views (the `GetApiViews` operationId).
GetApiViews(ctx context.Context, params *GetApiViewsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiViewsWithBody Create a view
//
// Create a view.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/views (the `PostApiViews` operationId).
PostApiViewsWithBody(ctx context.Context, params *PostApiViewsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiViews Create a view
//
// Create a view.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/views (the `PostApiViews` operationId).
PostApiViews(ctx context.Context, params *PostApiViewsParams, body PostApiViewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiViewsOriginOrId Delete a specific view by origin or id
//
// Corresponds with DELETE /api/views/{originOrId} (the `DeleteApiViewsOriginOrId` operationId).
DeleteApiViewsOriginOrId(ctx context.Context, originOrId string, params *DeleteApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiViewsOriginOrId Receive a specific view by its origin or id
//
// Corresponds with GET /api/views/{originOrId} (the `GetApiViewsOriginOrId` operationId).
GetApiViewsOriginOrId(ctx context.Context, originOrId string, params *GetApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiViewsOriginOrIdWithBody Update or insert a specific view by its origin or id
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
PutApiViewsOriginOrIdWithBody(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiViewsOriginOrId Update or insert a specific view by its origin or id
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
PutApiViewsOriginOrId(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, body PutApiViewsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiWebEventsDownloadWithBody Download web events as a file
//
// Returns the web events matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 web events.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 events, the export carries the first 5000 in result-set
// order; there is no CLI equivalent for web events, so a larger export has to be taken
// as several narrower queries.
//
// Web-event retrieval does not sample, so no sampling has to be disabled for the file to
// be the query's whole result set.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first event
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
PostApiWebEventsDownloadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiWebEventsDownload Download web events as a file
//
// Returns the web events matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 web events.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 events, the export carries the first 5000 in result-set
// order; there is no CLI equivalent for web events, so a larger export has to be taken
// as several narrower queries.
//
// Web-event retrieval does not sample, so no sampling has to be disabled for the file to
// be the query's whole result set.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first event
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
PostApiWebEventsDownload(ctx context.Context, body PostApiWebEventsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOauthAuthorize OAuth 2.0 Authorization Endpoint (Unauthenticated)
//
// Unauthenticated authorization endpoint (RFC 6749 section 3.1). Validates the client,
// redirect URI, PKCE parameters, and scopes. Creates a pending authorization request
// and always redirects to the consent UI.
//
// Corresponds with GET /oauth/authorize (the `GetOauthAuthorize` operationId).
GetOauthAuthorize(ctx context.Context, params *GetOauthAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthRegisterWithBody Register a new OAuth client
//
// Dynamic Client Registration endpoint (RFC 7591). Allows clients to register
// themselves and obtain a client_id for use in the authorization code flow.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
PostOauthRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthRegister Register a new OAuth client
//
// Dynamic Client Registration endpoint (RFC 7591). Allows clients to register
// themselves and obtain a client_id for use in the authorization code flow.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
PostOauthRegister(ctx context.Context, body PostOauthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthRevokeWithBody OAuth 2.0 Token Revocation
//
// Token revocation endpoint (RFC 7009). Revokes an access or refresh token.
// The server responds with HTTP 200 regardless of whether the token was valid,
// to prevent token scanning attacks.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
PostOauthRevokeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthRevokeWithFormdataBody OAuth 2.0 Token Revocation
//
// Token revocation endpoint (RFC 7009). Revokes an access or refresh token.
// The server responds with HTTP 200 regardless of whether the token was valid,
// to prevent token scanning attacks.
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
PostOauthRevokeWithFormdataBody(ctx context.Context, body PostOauthRevokeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthTokenWithBody OAuth 2.0 Token Endpoint
//
// Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for
// access and refresh tokens (authorization_code grant), or exchanges a refresh
// token for new tokens (refresh_token grant).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
PostOauthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOauthTokenWithFormdataBody OAuth 2.0 Token Endpoint
//
// Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for
// access and refresh tokens (authorization_code grant), or exchanges a refresh
// token for new tokens (refresh_token grant).
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
PostOauthTokenWithFormdataBody(ctx context.Context, body PostOauthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
type ClientOption func(*clientConfig)
ClientOption configures a Dash0 client.
func WithApiUrl ¶
func WithApiUrl(url string) ClientOption
WithApiUrl sets the Dash0 API URL. This is required for REST API operations (dashboards, check rules, etc.). Examples:
func WithAuthToken ¶
func WithAuthToken(authToken string) ClientOption
WithAuthToken sets the auth token for authentication. Either this or WithAuthTokenProvider is required for all API requests.
The two are alternatives rather than a conflict: whichever is applied last wins, so appending either to an existing option slice overrides the other.
func WithAuthTokenProvider ¶ added in v1.21.0
func WithAuthTokenProvider(provider AuthTokenProvider) ClientOption
WithAuthTokenProvider sets a provider consulted for an auth token before every request, instead of the fixed token WithAuthToken supplies. Either this or WithAuthToken is required for all API requests; whichever is applied last wins.
Use this when the credential is short-lived and has to be renewed while the client is in use, most notably an OAuth access token: a client built with WithAuthToken holds that token for its whole lifetime, so any operation outliving the token's validity starts failing partway through. Configuration.AuthTokenProvider in the profiles subpackage returns a provider that refreshes a Dash0 CLI profile's OAuth access token.
Example ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// A provider is consulted before every request, so a short-lived credential
// can be renewed while the client is in use. Use this instead of
// dash0.WithAuthToken whenever an operation may outlive its access token,
// for example a long telemetry export driven by an OAuth login.
provider := dash0.StaticAuthTokenProvider("dash0_at_yourtoken")
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthTokenProvider(provider),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
fmt.Println(client != nil)
}
Output: true
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) ClientOption
WithHTTPClient sets a custom HTTP client. The client's transport will be wrapped with rate limiting middleware. Other settings like CheckRedirect and Jar will be preserved.
This option conflicts with WithTransport.
func WithMaxConcurrentRequests ¶
func WithMaxConcurrentRequests(n int64) ClientOption
WithMaxConcurrentRequests sets the maximum number of concurrent API calls. The value must be between 1 and 10 (inclusive). Values outside this range will be clamped. Default is 3.
This option conflicts with WithTransport.
func WithMaxRetries ¶
func WithMaxRetries(n int) ClientOption
WithMaxRetries sets the maximum number of retries for failed requests. Only idempotent requests (GET, PUT, DELETE) and requests marked with withIdempotent context are retried. Default is 1. Maximum is 5. Set to 0 to disable retries.
This option conflicts with WithTransport.
Example:
client, _ := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("your-auth-token"),
dash0.WithMaxRetries(3),
)
func WithOtlpEndpoint ¶ added in v1.2.0
func WithOtlpEndpoint(encoding OtlpEncoding, url string) ClientOption
WithOtlpEndpoint configures the client to push telemetry data via OTLP/HTTP. The encoding parameter specifies the wire format; currently only OtlpEncodingJson is supported. The url is the base OTLP endpoint (e.g., "https://otlp.example.com:4318"); signal-specific paths like /v1/traces are appended automatically.
This option is optional. If not set, SendTraces, SendMetrics, and SendLogs will return an error.
func WithRetryOnConflict ¶ added in v1.21.1
func WithRetryOnConflict() ClientOption
WithRetryOnConflict enables retrying requests that fail with 409 Conflict. Retrying a conflict is off unless this option is passed, so the option takes no argument.
A Dash0 dataset is guarded by an optimistic-concurrency dataset version: when two writes to the same dataset race, exactly one wins and the other comes back as a 409 asking the caller to retry. Nothing retries that by default, so the losing write surfaces as a fatal error even though repeating it converges. This happens whenever writes to one dataset are issued concurrently, whether from goroutines in one process or from separate processes, such as a CI matrix running `dash0 apply` in parallel.
Unlike the 429 and 5xx retries WithMaxRetries governs, a 409 retry also applies to non-idempotent requests, including the Import methods, which are POSTs. That is safe because a 409 means the server rejected the write without applying it, so sending it again does not duplicate anything.
The retry budget is the one WithMaxRetries sets. The backoff is not the WithRetryWaitMin window: a conflict retry uses full jitter from 100ms up to 2s, because the wait is on a writer that has already won rather than on an overloaded server.
This option conflicts with WithTransport; configure WithTransportRetryOnConflict on the Transport instead.
Example:
client, _ := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
dash0.WithRetryOnConflict(),
)
Example ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Concurrent writes to one dataset race its optimistic-concurrency version
// check, and the loser comes back as a 409. Retrying converges instead of
// failing the write.
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
dash0.WithRetryOnConflict(),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
fmt.Println(client != nil)
}
Output: true
func WithRetryWaitMax ¶
func WithRetryWaitMax(d time.Duration) ClientOption
WithRetryWaitMax sets the maximum wait time between retries. Default is 30s. The backoff will not exceed this value.
This option conflicts with WithTransport.
func WithRetryWaitMin ¶
func WithRetryWaitMin(d time.Duration) ClientOption
WithRetryWaitMin sets the minimum wait time between retries. Default is 500ms. The actual wait time uses exponential backoff starting from this value.
This option conflicts with WithTransport.
func WithTimeout ¶
func WithTimeout(d time.Duration) ClientOption
WithTimeout sets the HTTP request timeout. Default is 30 seconds.
When used with WithTransport, this overrides the timeout configured on the Transport.
func WithTransport ¶ added in v1.8.0
func WithTransport(t *Transport) ClientOption
WithTransport configures the client to use a pre-built Transport for rate limiting and retry. When set, transport-level ClientOption functions (WithMaxRetries, WithRetryWaitMin, WithRetryWaitMax, WithRetryOnConflict, WithMaxConcurrentRequests, and WithHTTPClient) must not be used. NewClient returns an error if both WithTransport and any of these options are provided.
WithTimeout remains compatible: when set alongside WithTransport it overrides the timeout configured on the Transport.
Example:
t := dash0.NewTransport(
dash0.WithTransportMaxRetries(3),
)
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
dash0.WithTransport(t),
)
Example ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
t := dash0.NewTransport(
dash0.WithTransportMaxRetries(3),
dash0.WithTransportMaxConcurrentRequests(5),
)
// Use the same transport for both a raw HTTP client and a typed client.
httpClient := t.HTTPClient()
_ = httpClient
client, err := dash0.NewClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
dash0.WithAuthToken("auth_yourtoken"),
dash0.WithTransport(t),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
fmt.Println(client != nil)
}
Output: true
func WithUserAgent ¶
func WithUserAgent(ua string) ClientOption
WithUserAgent sets a custom User-Agent header. Default is "dash0-api-client-go/" followed by the current library version.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...generatedClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteApiAgent0CustomSkillsOriginOrIdWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) DeleteApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAgent0CustomSkillsOriginOrIdResponse, error)
DeleteApiAgent0CustomSkillsOriginOrIdWithResponse Delete an Agent0 custom skill
Soft-deletes the skill. Automations whose prompts name it keep running and treat the name as plain prompt text.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/agent0/custom-skills/{originOrId} (the `DeleteApiAgent0CustomSkillsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiAgenticWorkflowsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) DeleteApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiAgenticWorkflowsOriginOrIdResponse, error)
DeleteApiAgenticWorkflowsOriginOrIdWithResponse Delete an automation by origin or ID
Deletes a specific automation identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/agentic-workflows/{originOrId} (the `DeleteApiAgenticWorkflowsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiAlertingCheckRulesOriginOrIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiAlertingCheckRulesOriginOrIdResponse, error)
DeleteApiAlertingCheckRulesOriginOrIdWithResponse Delete a specific check rule (Prometheus alert rule) by origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/alerting/check-rules/{originOrId} (the `DeleteApiAlertingCheckRulesOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiAuthTokensOriginOrIdWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) DeleteApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAuthTokensOriginOrIdResponse, error)
DeleteApiAuthTokensOriginOrIdWithResponse Delete a specific auth token
Deletes the auth token. Deleting the last remaining auth token of your organization is refused with `400`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/auth-tokens/{originOrId} (the `DeleteApiAuthTokensOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse Clear the CloudWatch metric scrape config of an AWS integration
Removes every namespace and the integration filter, which stops all scraping for the integration. The integration itself is not deleted. Deleting an already empty config succeeds, so the call is idempotent, and it succeeds even when the integration's read-only role is not active.
Restricted to organization administrators and API tokens, like every integration write.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/aws-metric-scrape-configs/{integrationId} (the `DeleteApiAwsMetricScrapeConfigsIntegrationId` operationId).
func (*ClientWithResponses) DeleteApiDashboardsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiDashboardsOriginOrIdResponse, error)
DeleteApiDashboardsOriginOrIdWithResponse Delete a specific dashboard by its origin or id
Delete a specific dashboard by its **origin** or **id**.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/dashboards/{originOrId} (the `DeleteApiDashboardsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiDatasetsOriginOrIdWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) DeleteApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiDatasetsOriginOrIdResponse, error)
DeleteApiDatasetsOriginOrIdWithResponse Delete a specific dataset
Deletes the dataset. It can be restored, 30 days by default, by creating a dataset with the same slug; after that it is gone for good. Deleting the default dataset returns 400. Deleting a dataset that does not exist, or is already deleted, returns 200.
A deleted dataset keeps its origin reserved until it is purged. Creating a dataset with that origin under another slug returns `400`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/datasets/{originOrId} (the `DeleteApiDatasetsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiMembersInvitationsInvitationIDWithResponse ¶ added in v1.23.0
func (c *ClientWithResponses) DeleteApiMembersInvitationsInvitationIDWithResponse(ctx context.Context, invitationID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersInvitationsInvitationIDResponse, error)
DeleteApiMembersInvitationsInvitationIDWithResponse Revoke a pending member invitation
Revokes an invitation to your organization that has not been accepted yet, so it can no longer be accepted. Requires the admin role.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/members/invitations/{invitationID} (the `DeleteApiMembersInvitationsInvitationID` operationId).
func (*ClientWithResponses) DeleteApiMembersMemberIDWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) DeleteApiMembersMemberIDWithResponse(ctx context.Context, memberID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersMemberIDResponse, error)
DeleteApiMembersMemberIDWithResponse Remove a member from the organization
Removes the given member from the organization.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/members/{memberID} (the `DeleteApiMembersMemberID` operationId).
func (*ClientWithResponses) DeleteApiNotificationChannelsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) DeleteApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiNotificationChannelsOriginOrIdResponse, error)
DeleteApiNotificationChannelsOriginOrIdWithResponse Delete a notification channel
Deletes a specific notification channel identified by its UUID or origin.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/notification-channels/{originOrId} (the `DeleteApiNotificationChannelsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiRecordingRulesOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) DeleteApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiRecordingRulesOriginOrIdResponse, error)
DeleteApiRecordingRulesOriginOrIdWithResponse Delete a specific recording rule
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/recording-rules/{originOrId} (the `DeleteApiRecordingRulesOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiSamplingRulesOriginOrIdWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) DeleteApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSamplingRulesOriginOrIdResponse, error)
DeleteApiSamplingRulesOriginOrIdWithResponse Delete a sampling rule by origin or ID
Deletes a specific sampling rule identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/sampling-rules/{originOrId} (the `DeleteApiSamplingRulesOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiSignalToMetricsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) DeleteApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSignalToMetricsOriginOrIdResponse, error)
DeleteApiSignalToMetricsOriginOrIdWithResponse Delete a signal-to-metrics config by origin or ID
Deletes a specific signal-to-metrics configuration identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/signal-to-metrics/{originOrId} (the `DeleteApiSignalToMetricsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiSlosOriginOrIdWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) DeleteApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSlosOriginOrIdResponse, error)
DeleteApiSlosOriginOrIdWithResponse Delete a specific SLO
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/slos/{originOrId} (the `DeleteApiSlosOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiSpamFiltersOriginOrIdWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) DeleteApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSpamFiltersOriginOrIdResponse, error)
DeleteApiSpamFiltersOriginOrIdWithResponse Delete a spam filter by origin or ID
Deletes a specific spam filter identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/spam-filters/{originOrId} (the `DeleteApiSpamFiltersOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiSyntheticChecksOriginOrIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSyntheticChecksOriginOrIdResponse, error)
DeleteApiSyntheticChecksOriginOrIdWithResponse Delete a specific synthetic check by origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/synthetic-checks/{originOrId} (the `DeleteApiSyntheticChecksOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse(ctx context.Context, originOrId string, memberID string, reqEditors ...RequestEditorFn) (*DeleteApiTeamsOriginOrIdMembersMemberIDResponse, error)
DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse Remove a member from a team
Removes the given member from the team.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/teams/{originOrId}/members/{memberID} (the `DeleteApiTeamsOriginOrIdMembersMemberID` operationId).
func (*ClientWithResponses) DeleteApiTeamsOriginOrIdWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) DeleteApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiTeamsOriginOrIdResponse, error)
DeleteApiTeamsOriginOrIdWithResponse Delete a specific team by its origin or id
Delete a specific team by its **origin** or **id**.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/teams/{originOrId} (the `DeleteApiTeamsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiTimeSeriesAggregationsOriginOrIdResponse, error)
DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse Delete a time series aggregation by origin or ID
Deletes a specific time series aggregation identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/time-series-aggregations/{originOrId} (the `DeleteApiTimeSeriesAggregationsOriginOrId` operationId).
func (*ClientWithResponses) DeleteApiViewsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiViewsOriginOrIdResponse, error)
DeleteApiViewsOriginOrIdWithResponse Delete a specific view by origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/views/{originOrId} (the `DeleteApiViewsOriginOrId` operationId).
func (*ClientWithResponses) GetApiAgent0CustomSkillsOriginOrIdWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) GetApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAgent0CustomSkillsOriginOrIdResponse, error)
GetApiAgent0CustomSkillsOriginOrIdWithResponse Retrieve an Agent0 custom skill
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/agent0/custom-skills/{originOrId} (the `GetApiAgent0CustomSkillsOriginOrId` operationId).
func (*ClientWithResponses) GetApiAgent0CustomSkillsWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) GetApiAgent0CustomSkillsWithResponse(ctx context.Context, params *GetApiAgent0CustomSkillsParams, reqEditors ...RequestEditorFn) (*GetApiAgent0CustomSkillsResponse, error)
GetApiAgent0CustomSkillsWithResponse List Agent0 custom skills
Returns the organization's custom skills that the caller may read. Custom skills belong to the organization, not to a dataset. Whether a skill is on is per user, so `dash0.com/enabled` and the `enabled` filter describe the calling user; for an API token every readable skill is on.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/agent0/custom-skills (the `GetApiAgent0CustomSkills` operationId).
func (*ClientWithResponses) GetApiAgenticWorkflowsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) GetApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiAgenticWorkflowsOriginOrIdResponse, error)
GetApiAgenticWorkflowsOriginOrIdWithResponse Get a specific automation by origin or ID
Returns a specific automation identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/agentic-workflows/{originOrId} (the `GetApiAgenticWorkflowsOriginOrId` operationId).
func (*ClientWithResponses) GetApiAgenticWorkflowsWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) GetApiAgenticWorkflowsWithResponse(ctx context.Context, params *GetApiAgenticWorkflowsParams, reqEditors ...RequestEditorFn) (*GetApiAgenticWorkflowsResponse, error)
GetApiAgenticWorkflowsWithResponse List all automations for the organization
Returns all automations configured for your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/agentic-workflows (the `GetApiAgenticWorkflows` operationId).
func (*ClientWithResponses) GetApiAlertingCheckRulesOriginOrIdWithResponse ¶
func (c *ClientWithResponses) GetApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiAlertingCheckRulesOriginOrIdResponse, error)
GetApiAlertingCheckRulesOriginOrIdWithResponse Retrieve a specific check rule (Prometheus alert rule) by its origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/alerting/check-rules/{originOrId} (the `GetApiAlertingCheckRulesOriginOrId` operationId).
func (*ClientWithResponses) GetApiAlertingCheckRulesWithResponse ¶
func (c *ClientWithResponses) GetApiAlertingCheckRulesWithResponse(ctx context.Context, params *GetApiAlertingCheckRulesParams, reqEditors ...RequestEditorFn) (*GetApiAlertingCheckRulesResponse, error)
GetApiAlertingCheckRulesWithResponse Retrieve a list of check rule ids
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/alerting/check-rules (the `GetApiAlertingCheckRules` operationId).
func (*ClientWithResponses) GetApiAuthTokensOriginOrIdWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) GetApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAuthTokensOriginOrIdResponse, error)
GetApiAuthTokensOriginOrIdWithResponse Retrieve a specific auth token
Returns the auth token with the given origin or ID. The secret is not returned: `spec.token` is only in the response that creates a token.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/auth-tokens/{originOrId} (the `GetApiAuthTokensOriginOrId` operationId).
func (*ClientWithResponses) GetApiAuthTokensWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) GetApiAuthTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiAuthTokensResponse, error)
GetApiAuthTokensWithResponse List all auth tokens for the organization
Returns all auth tokens in your organization. The secret is not returned: `spec.token` is only in the response that creates a token.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/auth-tokens (the `GetApiAuthTokens` operationId).
func (*ClientWithResponses) GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse Get the CloudWatch metric scrape config of an AWS integration
Returns the integration's scrape config document. Every AWS integration has exactly one, so an integration that was never configured returns 200 with an empty `namespaces` array, which means nothing is scraped.
Namespaces and the metrics within each namespace are sorted ascending. An empty filter is never returned. `metadata.name` is the integration's name, and the labels `dash0.com/id` (the integration id), `dash0.com/dataset` and `dash0.com/source` are set by the server. `dash0.com/origin` and the `dash0.com/created-at` and `dash0.com/updated-at` annotations are returned only once the integration has a stored config.
There is no `dataset` query parameter: the dataset is resolved from the integration itself.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/aws-metric-scrape-configs/{integrationId} (the `GetApiAwsMetricScrapeConfigsIntegrationId` operationId).
func (*ClientWithResponses) GetApiDashboardsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) GetApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiDashboardsOriginOrIdResponse, error)
GetApiDashboardsOriginOrIdWithResponse Receive a specific dashboard by its origin or id
Receive a specific dashboard by its **origin** or **id**.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/dashboards/{originOrId} (the `GetApiDashboardsOriginOrId` operationId).
func (*ClientWithResponses) GetApiDashboardsWithResponse ¶
func (c *ClientWithResponses) GetApiDashboardsWithResponse(ctx context.Context, params *GetApiDashboardsParams, reqEditors ...RequestEditorFn) (*GetApiDashboardsResponse, error)
GetApiDashboardsWithResponse Receive a list of dashboards
Receive a list of your organization dashboards.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/dashboards (the `GetApiDashboards` operationId).
func (*ClientWithResponses) GetApiDatasetsOriginOrIdWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) GetApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiDatasetsOriginOrIdResponse, error)
GetApiDatasetsOriginOrIdWithResponse Retrieve a specific dataset
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/datasets/{originOrId} (the `GetApiDatasetsOriginOrId` operationId).
func (*ClientWithResponses) GetApiDatasetsWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) GetApiDatasetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDatasetsResponse, error)
GetApiDatasetsWithResponse List all datasets for the organization
Returns all datasets in your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/datasets (the `GetApiDatasets` operationId).
func (*ClientWithResponses) GetApiEdgeSettingsWithResponse ¶ added in v1.12.3
func (c *ClientWithResponses) GetApiEdgeSettingsWithResponse(ctx context.Context, params *GetApiEdgeSettingsParams, reqEditors ...RequestEditorFn) (*GetApiEdgeSettingsResponse, error)
GetApiEdgeSettingsWithResponse Retrieve settings for the organization identified by the provided Dash0 auth token
Returns the aggregate settings payload (dataset settings, signal-to-metrics rules, telemetry transformation rules, etc.) for the organization that owns the provided bearer token. Designed for edge collectors running in customer environments that need their full configuration in one request.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/edge/settings (the `GetApiEdgeSettings` operationId).
func (*ClientWithResponses) GetApiMembersInvitationsWithResponse ¶ added in v1.23.0
func (c *ClientWithResponses) GetApiMembersInvitationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersInvitationsResponse, error)
GetApiMembersInvitationsWithResponse Receive a list of pending member invitations
Receive all invitations to your organization that have not been accepted yet. Invitees are not listed by `GET /api/members` until they accept, so compare against both lists before inviting an address again. Requires the admin role.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/members/invitations (the `GetApiMembersInvitations` operationId).
func (*ClientWithResponses) GetApiMembersWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) GetApiMembersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersResponse, error)
GetApiMembersWithResponse Receive a list of organization members
Receive a list of all members in your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/members (the `GetApiMembers` operationId).
func (*ClientWithResponses) GetApiNotificationChannelsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsOriginOrIdResponse, error)
GetApiNotificationChannelsOriginOrIdWithResponse Get a specific notification channel
Returns a specific notification channel identified by its UUID or origin.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notification-channels/{originOrId} (the `GetApiNotificationChannelsOriginOrId` operationId).
func (*ClientWithResponses) GetApiNotificationChannelsWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiNotificationChannelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsResponse, error)
GetApiNotificationChannelsWithResponse List all notification channels for the organization
Returns all notification channels configured for your organization as CRD-enveloped resources.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notification-channels (the `GetApiNotificationChannels` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1FormatQueryWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1FormatQueryParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1FormatQueryResponse, error)
GetApiPrometheusApiV1FormatQueryWithResponse Evaluates and returns a formatted version of the query
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/format_query (the `GetApiPrometheusApiV1FormatQuery` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1LabelLabelNameValuesWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, params *GetApiPrometheusApiV1LabelLabelNameValuesParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1LabelLabelNameValuesResponse, error)
GetApiPrometheusApiV1LabelLabelNameValuesWithResponse Returns a list of label values for a provided label name
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/label/{label_name}/values (the `GetApiPrometheusApiV1LabelLabelNameValues` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1LabelsWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1LabelsWithResponse(ctx context.Context, params *GetApiPrometheusApiV1LabelsParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1LabelsResponse, error)
GetApiPrometheusApiV1LabelsWithResponse Returns a list of label names
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/labels (the `GetApiPrometheusApiV1Labels` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1MetadataWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1MetadataWithResponse(ctx context.Context, params *GetApiPrometheusApiV1MetadataParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1MetadataResponse, error)
GetApiPrometheusApiV1MetadataWithResponse Returns metadata about metrics currently scraped from targets
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/metadata (the `GetApiPrometheusApiV1Metadata` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1QueryRangeWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryRangeParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1QueryRangeResponse, error)
GetApiPrometheusApiV1QueryRangeWithResponse Evaluates a PromQL expression over a range of time
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/query_range (the `GetApiPrometheusApiV1QueryRange` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1QueryWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1QueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1QueryResponse, error)
GetApiPrometheusApiV1QueryWithResponse Evaluates an instant query at a single point in time
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/query (the `GetApiPrometheusApiV1Query` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1SeriesWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1SeriesWithResponse(ctx context.Context, params *GetApiPrometheusApiV1SeriesParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1SeriesResponse, error)
GetApiPrometheusApiV1SeriesWithResponse Returns the list of time series that match a label selector
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/series (the `GetApiPrometheusApiV1Series` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1StatusBuildinfoWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1StatusBuildinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusBuildinfoResponse, error)
GetApiPrometheusApiV1StatusBuildinfoWithResponse Returns various build information properties about the Prometheus-compatible server
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/status/buildinfo (the `GetApiPrometheusApiV1StatusBuildinfo` operationId).
func (*ClientWithResponses) GetApiPrometheusApiV1StatusRuntimeinfoWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) GetApiPrometheusApiV1StatusRuntimeinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusRuntimeinfoResponse, error)
GetApiPrometheusApiV1StatusRuntimeinfoWithResponse Returns various runtime information properties about the Prometheus-compatible server
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/prometheus/api/v1/status/runtimeinfo (the `GetApiPrometheusApiV1StatusRuntimeinfo` operationId).
func (*ClientWithResponses) GetApiRecordingRulesOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiRecordingRulesOriginOrIdResponse, error)
GetApiRecordingRulesOriginOrIdWithResponse Retrieve the latest version of a specific recording rule
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/recording-rules/{originOrId} (the `GetApiRecordingRulesOriginOrId` operationId).
func (*ClientWithResponses) GetApiRecordingRulesWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiRecordingRulesWithResponse(ctx context.Context, params *GetApiRecordingRulesParams, reqEditors ...RequestEditorFn) (*GetApiRecordingRulesResponse, error)
GetApiRecordingRulesWithResponse Retrieve a list of recording rules
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/recording-rules (the `GetApiRecordingRules` operationId).
func (*ClientWithResponses) GetApiSamplingRulesOriginOrIdWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) GetApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSamplingRulesOriginOrIdResponse, error)
GetApiSamplingRulesOriginOrIdWithResponse Get a specific sampling rule by origin or ID
Returns a specific sampling rule identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/sampling-rules/{originOrId} (the `GetApiSamplingRulesOriginOrId` operationId).
func (*ClientWithResponses) GetApiSamplingRulesWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) GetApiSamplingRulesWithResponse(ctx context.Context, params *GetApiSamplingRulesParams, reqEditors ...RequestEditorFn) (*GetApiSamplingRulesResponse, error)
GetApiSamplingRulesWithResponse List all sampling rules for the organization
Returns all sampling rules configured for your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/sampling-rules (the `GetApiSamplingRules` operationId).
func (*ClientWithResponses) GetApiSignalToMetricsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSignalToMetricsOriginOrIdResponse, error)
GetApiSignalToMetricsOriginOrIdWithResponse Get a specific signal-to-metrics config by origin or ID
Returns a specific signal-to-metrics configuration identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/signal-to-metrics/{originOrId} (the `GetApiSignalToMetricsOriginOrId` operationId).
func (*ClientWithResponses) GetApiSignalToMetricsWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) GetApiSignalToMetricsWithResponse(ctx context.Context, params *GetApiSignalToMetricsParams, reqEditors ...RequestEditorFn) (*GetApiSignalToMetricsResponse, error)
GetApiSignalToMetricsWithResponse List all signal-to-metrics configs for the organization
Returns all signal-to-metrics configurations for your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/signal-to-metrics (the `GetApiSignalToMetrics` operationId).
func (*ClientWithResponses) GetApiSlosOriginOrIdWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) GetApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSlosOriginOrIdResponse, error)
GetApiSlosOriginOrIdWithResponse Retrieve the latest version of a specific SLO
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/slos/{originOrId} (the `GetApiSlosOriginOrId` operationId).
func (*ClientWithResponses) GetApiSlosWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) GetApiSlosWithResponse(ctx context.Context, params *GetApiSlosParams, reqEditors ...RequestEditorFn) (*GetApiSlosResponse, error)
GetApiSlosWithResponse Retrieve a list of SLOs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/slos (the `GetApiSlos` operationId).
func (*ClientWithResponses) GetApiSpamFiltersOriginOrIdWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) GetApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSpamFiltersOriginOrIdResponse, error)
GetApiSpamFiltersOriginOrIdWithResponse Get a specific spam filter by origin or ID
Returns a specific spam filter identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/spam-filters/{originOrId} (the `GetApiSpamFiltersOriginOrId` operationId).
func (*ClientWithResponses) GetApiSpamFiltersWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) GetApiSpamFiltersWithResponse(ctx context.Context, params *GetApiSpamFiltersParams, reqEditors ...RequestEditorFn) (*GetApiSpamFiltersResponse, error)
GetApiSpamFiltersWithResponse List all spam filters for the organization
Returns all spam filters configured for your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/spam-filters (the `GetApiSpamFilters` operationId).
func (*ClientWithResponses) GetApiSyntheticChecksLocationsWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) GetApiSyntheticChecksLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksLocationsResponse, error)
GetApiSyntheticChecksLocationsWithResponse Retrieve the synthetic check locations available to the organization
Returns Dash0 public regions and the organization's private synthetic locations as one list. `kind` distinguishes them.
The `id` of an entry is what a synthetic check definition stores to target it: the region identifier for a public region, and the Dash0-assigned opaque id for a private location. A check may also target a private location by its `locationId`, which names one location for good. A value equal to a public region identifier always means the region; target a private location with such a `locationId` by its `id`.
Deleted private locations are omitted.
Private locations carry `health`, derived from the workers currently connected to them. `health.status` is `unknown` when Dash0 cannot determine the connection state; that is distinct from `offline`, which reports that no worker is connected.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/synthetic-checks/locations (the `GetApiSyntheticChecksLocations` operationId).
func (*ClientWithResponses) GetApiSyntheticChecksOriginOrIdWithResponse ¶
func (c *ClientWithResponses) GetApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksOriginOrIdResponse, error)
GetApiSyntheticChecksOriginOrIdWithResponse Receive a specific synthetic check by its origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/synthetic-checks/{originOrId} (the `GetApiSyntheticChecksOriginOrId` operationId).
func (*ClientWithResponses) GetApiSyntheticChecksWithResponse ¶
func (c *ClientWithResponses) GetApiSyntheticChecksWithResponse(ctx context.Context, params *GetApiSyntheticChecksParams, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksResponse, error)
GetApiSyntheticChecksWithResponse Receive a list of synthetic checks
Receive a list of your organization synthetic checks.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/synthetic-checks (the `GetApiSyntheticChecks` operationId).
func (*ClientWithResponses) GetApiTeamsOriginOrIdWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) GetApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiTeamsOriginOrIdResponse, error)
GetApiTeamsOriginOrIdWithResponse Receive a specific team by its origin or id
Receive a specific team by its **origin** or **id**.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/teams/{originOrId} (the `GetApiTeamsOriginOrId` operationId).
func (*ClientWithResponses) GetApiTeamsWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) GetApiTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTeamsResponse, error)
GetApiTeamsWithResponse Receive a list of teams
Receive a list of your organization teams.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/teams (the `GetApiTeams` operationId).
func (*ClientWithResponses) GetApiTimeSeriesAggregationsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) GetApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiTimeSeriesAggregationsOriginOrIdResponse, error)
GetApiTimeSeriesAggregationsOriginOrIdWithResponse Get a specific time series aggregation by origin or ID
Returns a specific time series aggregation identified by its origin label or UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/time-series-aggregations/{originOrId} (the `GetApiTimeSeriesAggregationsOriginOrId` operationId).
func (*ClientWithResponses) GetApiTimeSeriesAggregationsWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) GetApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *GetApiTimeSeriesAggregationsParams, reqEditors ...RequestEditorFn) (*GetApiTimeSeriesAggregationsResponse, error)
GetApiTimeSeriesAggregationsWithResponse List all time series aggregations for the organization
Returns all time series aggregation rules configured for your organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/time-series-aggregations (the `GetApiTimeSeriesAggregations` operationId).
func (*ClientWithResponses) GetApiViewsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) GetApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiViewsOriginOrIdResponse, error)
GetApiViewsOriginOrIdWithResponse Receive a specific view by its origin or id
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/views/{originOrId} (the `GetApiViewsOriginOrId` operationId).
func (*ClientWithResponses) GetApiViewsWithResponse ¶
func (c *ClientWithResponses) GetApiViewsWithResponse(ctx context.Context, params *GetApiViewsParams, reqEditors ...RequestEditorFn) (*GetApiViewsResponse, error)
GetApiViewsWithResponse Receive a list of views
Receive a list of your organization views.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/views (the `GetApiViews` operationId).
func (*ClientWithResponses) GetOauthAuthorizeWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) GetOauthAuthorizeWithResponse(ctx context.Context, params *GetOauthAuthorizeParams, reqEditors ...RequestEditorFn) (*GetOauthAuthorizeResponse, error)
GetOauthAuthorizeWithResponse OAuth 2.0 Authorization Endpoint (Unauthenticated)
Unauthenticated authorization endpoint (RFC 6749 section 3.1). Validates the client, redirect URI, PKCE parameters, and scopes. Creates a pending authorization request and always redirects to the consent UI.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /oauth/authorize (the `GetOauthAuthorize` operationId).
func (*ClientWithResponses) GetWellKnownOauthAuthorizationServerWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) GetWellKnownOauthAuthorizationServerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthAuthorizationServerResponse, error)
GetWellKnownOauthAuthorizationServerWithResponse OAuth 2.0 Authorization Server Metadata
Returns the OAuth 2.0 Authorization Server Metadata document (RFC 8414). Clients use this endpoint to discover authorization server capabilities and endpoint locations.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /.well-known/oauth-authorization-server (the `GetWellKnownOauthAuthorizationServer` operationId).
func (*ClientWithResponses) GetWellKnownOauthProtectedResourceWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) GetWellKnownOauthProtectedResourceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthProtectedResourceResponse, error)
GetWellKnownOauthProtectedResourceWithResponse OAuth 2.0 Protected Resource Metadata
Returns the OAuth 2.0 Protected Resource Metadata document (RFC 9728). MCP clients use this endpoint to discover which authorization server(s) can issue tokens accepted by this resource server.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /.well-known/oauth-protected-resource (the `GetWellKnownOauthProtectedResource` operationId).
func (*ClientWithResponses) PostApiAgent0CustomSkillsWithBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiAgent0CustomSkillsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAgent0CustomSkillsResponse, error)
PostApiAgent0CustomSkillsWithBodyWithResponse Create an Agent0 custom skill
Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
func (*ClientWithResponses) PostApiAgent0CustomSkillsWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiAgent0CustomSkillsWithResponse(ctx context.Context, body PostApiAgent0CustomSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAgent0CustomSkillsResponse, error)
PostApiAgent0CustomSkillsWithResponse Create an Agent0 custom skill
Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
func (*ClientWithResponses) PostApiAgenticWorkflowsWithBodyWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PostApiAgenticWorkflowsWithBodyWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAgenticWorkflowsResponse, error)
PostApiAgenticWorkflowsWithBodyWithResponse Create a new automation
Create a new automation for your organization.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
func (*ClientWithResponses) PostApiAgenticWorkflowsWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PostApiAgenticWorkflowsWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, body PostApiAgenticWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAgenticWorkflowsResponse, error)
PostApiAgenticWorkflowsWithResponse Create a new automation
Create a new automation for your organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
func (*ClientWithResponses) PostApiAlertingCheckRulesBulkWithBodyWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiAlertingCheckRulesBulkWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesBulkResponse, error)
PostApiAlertingCheckRulesBulkWithBodyWithResponse Bulk create check rules
Atomically create up to 1000 Prometheus alert rules in a single request. Create-only — every item produces a brand-new check rule. The public schema uses `id` as the user-defined origin; each item resolves it the same way `POST /api/alerting/check-rules` does (`id` if given, otherwise a server-generated UUID with an "api-" prefix). Any item whose resolved origin or id collides with an existing rule (including deleted rules, whose origin stays reserved) is rejected with a per-item diagnostic.
If any item fails validation (PromQL, intervals, summary length, template functions, origin/id collision, etc.) the whole batch is rejected with a 400 that carries per-item diagnostics in the message; nothing is written. On a server-side failure the entire batch is rolled back and 500 is returned. The endpoint is not idempotent — a successful batch retried verbatim will 400 on every item the second time.
This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 1000 rules per request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
func (*ClientWithResponses) PostApiAlertingCheckRulesBulkWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiAlertingCheckRulesBulkWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, body PostApiAlertingCheckRulesBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesBulkResponse, error)
PostApiAlertingCheckRulesBulkWithResponse Bulk create check rules
Atomically create up to 1000 Prometheus alert rules in a single request. Create-only — every item produces a brand-new check rule. The public schema uses `id` as the user-defined origin; each item resolves it the same way `POST /api/alerting/check-rules` does (`id` if given, otherwise a server-generated UUID with an "api-" prefix). Any item whose resolved origin or id collides with an existing rule (including deleted rules, whose origin stays reserved) is rejected with a per-item diagnostic.
If any item fails validation (PromQL, intervals, summary length, template functions, origin/id collision, etc.) the whole batch is rejected with a 400 that carries per-item diagnostics in the message; nothing is written. On a server-side failure the entire batch is rolled back and 500 is returned. The endpoint is not idempotent — a successful batch retried verbatim will 400 on every item the second time.
This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 1000 rules per request.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
func (*ClientWithResponses) PostApiAlertingCheckRulesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiAlertingCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesResponse, error)
PostApiAlertingCheckRulesWithBodyWithResponse Create a new check rule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
func (*ClientWithResponses) PostApiAlertingCheckRulesWithResponse ¶
func (c *ClientWithResponses) PostApiAlertingCheckRulesWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, body PostApiAlertingCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesResponse, error)
PostApiAlertingCheckRulesWithResponse Create a new check rule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
func (*ClientWithResponses) PostApiAuthTokensWithBodyWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) PostApiAuthTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAuthTokensResponse, error)
PostApiAuthTokensWithBodyWithResponse Create an auth token
Creates an auth token. The secret is generated by the server and returned in `spec.token` in this response only; store it, because no later read returns it. The request must not carry `spec.token`: a request that sends one returns `400`. `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be unique in your organization and must not be a UUID; a machine token that has no user gets an `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
func (*ClientWithResponses) PostApiAuthTokensWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) PostApiAuthTokensWithResponse(ctx context.Context, body PostApiAuthTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAuthTokensResponse, error)
PostApiAuthTokensWithResponse Create an auth token
Creates an auth token. The secret is generated by the server and returned in `spec.token` in this response only; store it, because no later read returns it. The request must not carry `spec.token`: a request that sends one returns `400`. `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be unique in your organization and must not be a UUID; a machine token that has no user gets an `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
func (*ClientWithResponses) PostApiDashboardsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiDashboardsWithBodyWithResponse(ctx context.Context, params *PostApiDashboardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDashboardsResponse, error)
PostApiDashboardsWithBodyWithResponse Create a dashboard
Create a dashboard.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
func (*ClientWithResponses) PostApiDashboardsWithResponse ¶
func (c *ClientWithResponses) PostApiDashboardsWithResponse(ctx context.Context, params *PostApiDashboardsParams, body PostApiDashboardsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDashboardsResponse, error)
PostApiDashboardsWithResponse Create a dashboard
Create a dashboard.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
func (*ClientWithResponses) PostApiDatasetsWithBodyWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) PostApiDatasetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDatasetsResponse, error)
PostApiDatasetsWithBodyWithResponse Create a dataset
Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's permanent identifier and cannot be changed afterwards. A slug or origin that is already in use, as a slug or as an origin, in your organization is rejected with `400`.
Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine token that has no user; else none, and the old origin is dropped.
`spec.permissions` sets the dataset's grants. Without it, the organization's members get `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants; without it, they come back as they were.
`apiVersion` is required. A missing or unsupported value returns `400`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
func (*ClientWithResponses) PostApiDatasetsWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) PostApiDatasetsWithResponse(ctx context.Context, body PostApiDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDatasetsResponse, error)
PostApiDatasetsWithResponse Create a dataset
Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's permanent identifier and cannot be changed afterwards. A slug or origin that is already in use, as a slug or as an origin, in your organization is rejected with `400`.
Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine token that has no user; else none, and the old origin is dropped.
`spec.permissions` sets the dataset's grants. Without it, the organization's members get `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants; without it, they come back as they were.
`apiVersion` is required. A missing or unsupported value returns `400`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
func (*ClientWithResponses) PostApiImportCheckRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiImportCheckRuleWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportCheckRuleResponse, error)
PostApiImportCheckRuleWithBodyWithResponse Import a check rule
This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management. Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state. Importing a check rule without an id will create a new check rule and return the created asset with a generated id. Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
func (*ClientWithResponses) PostApiImportCheckRuleWithResponse ¶
func (c *ClientWithResponses) PostApiImportCheckRuleWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, body PostApiImportCheckRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportCheckRuleResponse, error)
PostApiImportCheckRuleWithResponse Import a check rule
This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management. Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state. Importing a check rule without an id will create a new check rule and return the created asset with a generated id. Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
func (*ClientWithResponses) PostApiImportCheckRulesWithBodyWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiImportCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportCheckRulesResponse, error)
PostApiImportCheckRulesWithBodyWithResponse Import multiple check rules in one batch
Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000 Prometheus alert rules into your organization with **full editability** — the resulting rules behave like UI-created assets, not API-managed ones, so they can be modified in the Dash0 UI afterwards. Intended for one-time migrations rather than ongoing Infrastructure-as-Code management.
Per-item id/origin resolution matches `POST /api/import/check-rule`: items without an `id` receive a server-generated UUID; items with an `id` reuse it. Generated origins are **not** prefixed with `api-` and the rules remain UI-editable.
Behaves like the regular bulk endpoint in every other respect: items are validated up-front, the whole batch is rejected on any item failure, nothing is written on rollback, and the endpoint is not idempotent. This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 1000 rules per request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
func (*ClientWithResponses) PostApiImportCheckRulesWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiImportCheckRulesWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, body PostApiImportCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportCheckRulesResponse, error)
PostApiImportCheckRulesWithResponse Import multiple check rules in one batch
Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000 Prometheus alert rules into your organization with **full editability** — the resulting rules behave like UI-created assets, not API-managed ones, so they can be modified in the Dash0 UI afterwards. Intended for one-time migrations rather than ongoing Infrastructure-as-Code management.
Per-item id/origin resolution matches `POST /api/import/check-rule`: items without an `id` receive a server-generated UUID; items with an `id` reuse it. Generated origins are **not** prefixed with `api-` and the rules remain UI-editable.
Behaves like the regular bulk endpoint in every other respect: items are validated up-front, the whole batch is rejected on any item failure, nothing is written on rollback, and the endpoint is not idempotent. This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 1000 rules per request.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
func (*ClientWithResponses) PostApiImportDashboardWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiImportDashboardWithBodyWithResponse(ctx context.Context, params *PostApiImportDashboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportDashboardResponse, error)
PostApiImportDashboardWithBodyWithResponse Import a dashboard
This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management. Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state. Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id. Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
func (*ClientWithResponses) PostApiImportDashboardWithResponse ¶
func (c *ClientWithResponses) PostApiImportDashboardWithResponse(ctx context.Context, params *PostApiImportDashboardParams, body PostApiImportDashboardJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportDashboardResponse, error)
PostApiImportDashboardWithResponse Import a dashboard
This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management. Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state. Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id. Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
func (*ClientWithResponses) PostApiImportSyntheticCheckWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiImportSyntheticCheckWithBodyWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportSyntheticCheckResponse, error)
PostApiImportSyntheticCheckWithBodyWithResponse Import a synthetic check
This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management. Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state. Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id. Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
func (*ClientWithResponses) PostApiImportSyntheticCheckWithResponse ¶
func (c *ClientWithResponses) PostApiImportSyntheticCheckWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, body PostApiImportSyntheticCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportSyntheticCheckResponse, error)
PostApiImportSyntheticCheckWithResponse Import a synthetic check
This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management. Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state. Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id. Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
func (*ClientWithResponses) PostApiImportViewWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiImportViewWithBodyWithResponse(ctx context.Context, params *PostApiImportViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportViewResponse, error)
PostApiImportViewWithBodyWithResponse Import a view
This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management. Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state. Importing a view without an id will create a new view and return the created asset with a generated id. Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
func (*ClientWithResponses) PostApiImportViewWithResponse ¶
func (c *ClientWithResponses) PostApiImportViewWithResponse(ctx context.Context, params *PostApiImportViewParams, body PostApiImportViewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportViewResponse, error)
PostApiImportViewWithResponse Import a view
This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management. Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere. **Note:** This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state. Importing a view without an id will create a new view and return the created asset with a generated id. Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
func (*ClientWithResponses) PostApiLogsDownloadWithBodyWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiLogsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLogsDownloadResponse, error)
PostApiLogsDownloadWithBodyWithResponse Download OTLP log records as a file
Returns the log records matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 log records.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 records, the export carries the first 5000 in result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
The records are the same ones `POST /api/logs` returns for the same query, except that adaptive sampling is always disabled for exports: an exported file is never a sample, whatever the query and whatever the data volume.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first record is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
func (*ClientWithResponses) PostApiLogsDownloadWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiLogsDownloadWithResponse(ctx context.Context, body PostApiLogsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLogsDownloadResponse, error)
PostApiLogsDownloadWithResponse Download OTLP log records as a file
Returns the log records matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 log records.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 records, the export carries the first 5000 in result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
The records are the same ones `POST /api/logs` returns for the same query, except that adaptive sampling is always disabled for exports: an exported file is never a sample, whatever the query and whatever the data volume.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first record is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
func (*ClientWithResponses) PostApiLogsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLogsResponse, error)
PostApiLogsWithBodyWithResponse Returns OTLP logs records
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/logs (the `PostApiLogs` operationId).
func (*ClientWithResponses) PostApiLogsWithResponse ¶
func (c *ClientWithResponses) PostApiLogsWithResponse(ctx context.Context, body PostApiLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLogsResponse, error)
PostApiLogsWithResponse Returns OTLP logs records
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/logs (the `PostApiLogs` operationId).
func (*ClientWithResponses) PostApiMembersWithBodyWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiMembersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMembersResponse, error)
PostApiMembersWithBodyWithResponse Invite a member to the organization
Sends an invitation to join the organization to the given email address.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/members (the `PostApiMembers` operationId).
func (*ClientWithResponses) PostApiMembersWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiMembersWithResponse(ctx context.Context, body PostApiMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMembersResponse, error)
PostApiMembersWithResponse Invite a member to the organization
Sends an invitation to join the organization to the given email address.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/members (the `PostApiMembers` operationId).
func (*ClientWithResponses) PostApiNotificationChannelsWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiNotificationChannelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotificationChannelsResponse, error)
PostApiNotificationChannelsWithBodyWithResponse Create a new notification channel
Create a new notification channel for your organization.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
func (*ClientWithResponses) PostApiNotificationChannelsWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiNotificationChannelsWithResponse(ctx context.Context, body PostApiNotificationChannelsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotificationChannelsResponse, error)
PostApiNotificationChannelsWithResponse Create a new notification channel
Create a new notification channel for your organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
PostApiPrometheusApiV1FormatQueryWithBodyWithResponse Evaluates and returns a formatted version of the query
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse Evaluates and returns a formatted version of the query
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
PostApiPrometheusApiV1FormatQueryWithResponse Evaluates and returns a formatted version of the query
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse(ctx context.Context, labelName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse Returns a list of label values for a provided label name
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse Returns a list of label values for a provided label name
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
PostApiPrometheusApiV1LabelLabelNameValuesWithResponse Returns a list of label values for a provided label name
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelsWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
PostApiPrometheusApiV1LabelsWithBodyWithResponse Returns a list of label names
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse Returns a list of label names
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1LabelsWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1LabelsWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
PostApiPrometheusApiV1LabelsWithResponse Returns a list of label names
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1MetadataWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
PostApiPrometheusApiV1MetadataWithBodyWithResponse Returns metadata about metrics currently scraped from targets
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse Returns metadata about metrics currently scraped from targets
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1MetadataWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1MetadataWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
PostApiPrometheusApiV1MetadataWithResponse Returns metadata about metrics currently scraped from targets
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
PostApiPrometheusApiV1QueryRangeWithBodyWithResponse Evaluates a PromQL expression over a range of time
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse Evaluates a PromQL expression over a range of time
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
PostApiPrometheusApiV1QueryRangeWithResponse Evaluates a PromQL expression over a range of time
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
PostApiPrometheusApiV1QueryWithBodyWithResponse Evaluates an instant query at a single point in time
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse Evaluates an instant query at a single point in time
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1QueryWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1QueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
PostApiPrometheusApiV1QueryWithResponse Evaluates an instant query at a single point in time
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1SeriesWithBodyWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
PostApiPrometheusApiV1SeriesWithBodyWithResponse Returns the list of time series that match a label selector
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse Returns the list of time series that match a label selector
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
func (*ClientWithResponses) PostApiPrometheusApiV1SeriesWithResponse ¶ added in v1.13.1
func (c *ClientWithResponses) PostApiPrometheusApiV1SeriesWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
PostApiPrometheusApiV1SeriesWithResponse Returns the list of time series that match a label selector
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
func (*ClientWithResponses) PostApiRecordingRulesWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiRecordingRulesWithBodyWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRecordingRulesResponse, error)
PostApiRecordingRulesWithBodyWithResponse Create a recording rule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
func (*ClientWithResponses) PostApiRecordingRulesWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiRecordingRulesWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, body PostApiRecordingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRecordingRulesResponse, error)
PostApiRecordingRulesWithResponse Create a recording rule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
func (*ClientWithResponses) PostApiSamplingRulesWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) PostApiSamplingRulesWithBodyWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSamplingRulesResponse, error)
PostApiSamplingRulesWithBodyWithResponse Create a new sampling rule
Create a new sampling rule for your organization. If you set `metadata.labels["dash0.com/origin"]`, it must be unique within the organization, across all datasets. See "Resource origins" in the introduction. A request with a duplicate origin returns 400. To run the same rule in several datasets, put the dataset in the origin.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
func (*ClientWithResponses) PostApiSamplingRulesWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) PostApiSamplingRulesWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, body PostApiSamplingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSamplingRulesResponse, error)
PostApiSamplingRulesWithResponse Create a new sampling rule
Create a new sampling rule for your organization. If you set `metadata.labels["dash0.com/origin"]`, it must be unique within the organization, across all datasets. See "Resource origins" in the introduction. A request with a duplicate origin returns 400. To run the same rule in several datasets, put the dataset in the origin.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
func (*ClientWithResponses) PostApiSignalToMetricsTestWithBodyWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiSignalToMetricsTestWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsTestResponse, error)
PostApiSignalToMetricsTestWithBodyWithResponse Test a signal-to-metrics config
Validates a signal-to-metrics definition and simulates its match filter against real signals in the selected dataset over a recent time window. Returns the number of matching signals on success. A 4xx error is returned when the definition fails validation or the request is otherwise invalid. Nothing is persisted.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
func (*ClientWithResponses) PostApiSignalToMetricsTestWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiSignalToMetricsTestWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, body PostApiSignalToMetricsTestJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsTestResponse, error)
PostApiSignalToMetricsTestWithResponse Test a signal-to-metrics config
Validates a signal-to-metrics definition and simulates its match filter against real signals in the selected dataset over a recent time window. Returns the number of matching signals on success. A 4xx error is returned when the definition fails validation or the request is otherwise invalid. Nothing is persisted.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
func (*ClientWithResponses) PostApiSignalToMetricsWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsResponse, error)
PostApiSignalToMetricsWithBodyWithResponse Create a new signal-to-metrics config
Create a new signal-to-metrics configuration for your organization.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
func (*ClientWithResponses) PostApiSignalToMetricsWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PostApiSignalToMetricsWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, body PostApiSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsResponse, error)
PostApiSignalToMetricsWithResponse Create a new signal-to-metrics config
Create a new signal-to-metrics configuration for your organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
func (*ClientWithResponses) PostApiSlosOriginOrIdResetWithResponse ¶ added in v1.23.0
func (c *ClientWithResponses) PostApiSlosOriginOrIdResetWithResponse(ctx context.Context, originOrId string, params *PostApiSlosOriginOrIdResetParams, reqEditors ...RequestEditorFn) (*PostApiSlosOriginOrIdResetResponse, error)
PostApiSlosOriginOrIdResetWithResponse Restart the error budget window of a specific SLO
Starts a new error budget window for the SLO, beginning now. The definition is left unchanged, and the measurement starts from scratch: everything recorded before the reset, including any incident, stops counting against the objective.
The SLO records a new series from this point on, so the budget reported right after a reset covers only the elapsed part of the time window and widens as the window fills up again. Data recorded by the previous series is kept.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/slos/{originOrId}/reset (the `PostApiSlosOriginOrIdReset` operationId).
func (*ClientWithResponses) PostApiSlosWithBodyWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) PostApiSlosWithBodyWithResponse(ctx context.Context, params *PostApiSlosParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSlosResponse, error)
PostApiSlosWithBodyWithResponse Create an SLO
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/slos (the `PostApiSlos` operationId).
func (*ClientWithResponses) PostApiSlosWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) PostApiSlosWithResponse(ctx context.Context, params *PostApiSlosParams, body PostApiSlosJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSlosResponse, error)
PostApiSlosWithResponse Create an SLO
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/slos (the `PostApiSlos` operationId).
func (*ClientWithResponses) PostApiSpamFiltersWithBodyWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiSpamFiltersWithBodyWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpamFiltersResponse, error)
PostApiSpamFiltersWithBodyWithResponse Create a new spam filter
Create a new spam filter for your organization. Provide either structured `filter` criteria or a raw OTTL `condition` in the spec, but not both.
If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the organization and dataset. A request with a duplicate origin returns 400. If no origin is provided, the server auto-generates one (`api-<uuid>`).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
func (*ClientWithResponses) PostApiSpamFiltersWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiSpamFiltersWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, body PostApiSpamFiltersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpamFiltersResponse, error)
PostApiSpamFiltersWithResponse Create a new spam filter
Create a new spam filter for your organization. Provide either structured `filter` criteria or a raw OTTL `condition` in the spec, but not both.
If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the organization and dataset. A request with a duplicate origin returns 400. If no origin is provided, the server auto-generates one (`api-<uuid>`).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
func (*ClientWithResponses) PostApiSpansDownloadWithBodyWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiSpansDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpansDownloadResponse, error)
PostApiSpansDownloadWithBodyWithResponse Download OTLP spans as a file
Returns the spans matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 spans.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 spans, the export carries the first 5000 in result-set order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
The spans are the same ones `POST /api/spans` returns for the same query, except that adaptive sampling is always disabled for exports: an exported file is never a sample, whatever the query and whatever the data volume. This request accordingly takes no `sampling`, and one sent anyway is ignored.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first span is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
func (*ClientWithResponses) PostApiSpansDownloadWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiSpansDownloadWithResponse(ctx context.Context, body PostApiSpansDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpansDownloadResponse, error)
PostApiSpansDownloadWithResponse Download OTLP spans as a file
Returns the spans matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 spans.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 spans, the export carries the first 5000 in result-set order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
The spans are the same ones `POST /api/spans` returns for the same query, except that adaptive sampling is always disabled for exports: an exported file is never a sample, whatever the query and whatever the data volume. This request accordingly takes no `sampling`, and one sent anyway is ignored.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first span is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
func (*ClientWithResponses) PostApiSpansWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSpansWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpansResponse, error)
PostApiSpansWithBodyWithResponse Returns OTLP spans
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spans (the `PostApiSpans` operationId).
func (*ClientWithResponses) PostApiSpansWithResponse ¶
func (c *ClientWithResponses) PostApiSpansWithResponse(ctx context.Context, body PostApiSpansJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpansResponse, error)
PostApiSpansWithResponse Returns OTLP spans
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/spans (the `PostApiSpans` operationId).
func (*ClientWithResponses) PostApiSqlWithBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostApiSqlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSqlResponse, error)
PostApiSqlWithBodyWithResponse Execute a SQL query and return results as JSON
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/sql (the `PostApiSql` operationId).
func (*ClientWithResponses) PostApiSqlWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostApiSqlWithResponse(ctx context.Context, body PostApiSqlJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSqlResponse, error)
PostApiSqlWithResponse Execute a SQL query and return results as JSON
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/sql (the `PostApiSql` operationId).
func (*ClientWithResponses) PostApiSyntheticChecksTestWithBodyWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiSyntheticChecksTestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksTestResponse, error)
PostApiSyntheticChecksTestWithBodyWithResponse Trigger a test run of a synthetic check
Triggers an immediate test execution of a synthetic check.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
func (*ClientWithResponses) PostApiSyntheticChecksTestWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiSyntheticChecksTestWithResponse(ctx context.Context, body PostApiSyntheticChecksTestJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksTestResponse, error)
PostApiSyntheticChecksTestWithResponse Trigger a test run of a synthetic check
Triggers an immediate test execution of a synthetic check.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
func (*ClientWithResponses) PostApiSyntheticChecksWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSyntheticChecksWithBodyWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksResponse, error)
PostApiSyntheticChecksWithBodyWithResponse Create a synthetic check
Create a synthetic check.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
func (*ClientWithResponses) PostApiSyntheticChecksWithResponse ¶
func (c *ClientWithResponses) PostApiSyntheticChecksWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, body PostApiSyntheticChecksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksResponse, error)
PostApiSyntheticChecksWithResponse Create a synthetic check
Create a synthetic check.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
func (*ClientWithResponses) PostApiTeamsOriginOrIdMembersWithBodyWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiTeamsOriginOrIdMembersWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTeamsOriginOrIdMembersResponse, error)
PostApiTeamsOriginOrIdMembersWithBodyWithResponse Add members to a team
Adds the given members to the team.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
func (*ClientWithResponses) PostApiTeamsOriginOrIdMembersWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiTeamsOriginOrIdMembersWithResponse(ctx context.Context, originOrId string, body PostApiTeamsOriginOrIdMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTeamsOriginOrIdMembersResponse, error)
PostApiTeamsOriginOrIdMembersWithResponse Add members to a team
Adds the given members to the team.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
func (*ClientWithResponses) PostApiTeamsWithBodyWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTeamsResponse, error)
PostApiTeamsWithBodyWithResponse Create a new team
Create a new team in the organization.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/teams (the `PostApiTeams` operationId).
func (*ClientWithResponses) PostApiTeamsWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PostApiTeamsWithResponse(ctx context.Context, body PostApiTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTeamsResponse, error)
PostApiTeamsWithResponse Create a new team
Create a new team in the organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/teams (the `PostApiTeams` operationId).
func (*ClientWithResponses) PostApiTimeSeriesAggregationsWithBodyWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PostApiTimeSeriesAggregationsWithBodyWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTimeSeriesAggregationsResponse, error)
PostApiTimeSeriesAggregationsWithBodyWithResponse Create a new time series aggregation
Create a new time series aggregation rule for your organization. If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the organization and dataset; a request with a duplicate origin returns 400. If no origin is provided, the server auto-generates one.
The origin must not be a UUID, because origin-or-id lookups would then be ambiguous; such a request returns 400. To choose the rule's ID, PUT to `/api/time-series-aggregations/{uuid}` and leave the origin unset.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
func (*ClientWithResponses) PostApiTimeSeriesAggregationsWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PostApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, body PostApiTimeSeriesAggregationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTimeSeriesAggregationsResponse, error)
PostApiTimeSeriesAggregationsWithResponse Create a new time series aggregation
Create a new time series aggregation rule for your organization. If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the organization and dataset; a request with a duplicate origin returns 400. If no origin is provided, the server auto-generates one.
The origin must not be a UUID, because origin-or-id lookups would then be ambiguous; such a request returns 400. To choose the rule's ID, PUT to `/api/time-series-aggregations/{uuid}` and leave the origin unset.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
func (*ClientWithResponses) PostApiTopologyWithBodyWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) PostApiTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTopologyResponse, error)
PostApiTopologyWithBodyWithResponse Returns the service topology with RED statistics on services and connections
Returns the service topology for a time range: one node per `service.namespace` + `service.name` pair, and one edge per observed direction of calls between two nodes. Nodes and edges each carry the RED statistics selected via `nodeStatistics` and `edgeStatistics`.
Edges join to nodes by service identity, not by an opaque id. Peers that never reported telemetry of their own — databases, brokers, third-party APIs — appear as `inferred` nodes without statistics, so the graph stays whole.
Not paginated, and the grouping is not client-selectable; see `GetTopologyRequest`. Edge statistics come from a different metric than node statistics and are not comparable to them; see `TopologyEdgeStatistics`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/topology (the `PostApiTopology` operationId).
func (*ClientWithResponses) PostApiTopologyWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) PostApiTopologyWithResponse(ctx context.Context, body PostApiTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTopologyResponse, error)
PostApiTopologyWithResponse Returns the service topology with RED statistics on services and connections
Returns the service topology for a time range: one node per `service.namespace` + `service.name` pair, and one edge per observed direction of calls between two nodes. Nodes and edges each carry the RED statistics selected via `nodeStatistics` and `edgeStatistics`.
Edges join to nodes by service identity, not by an opaque id. Peers that never reported telemetry of their own — databases, brokers, third-party APIs — appear as `inferred` nodes without statistics, so the graph stays whole.
Not paginated, and the grouping is not client-selectable; see `GetTopologyRequest`. Edge statistics come from a different metric than node statistics and are not comparable to them; see `TopologyEdgeStatistics`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/topology (the `PostApiTopology` operationId).
func (*ClientWithResponses) PostApiTraceDetailsWithBodyWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiTraceDetailsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTraceDetailsResponse, error)
PostApiTraceDetailsWithBodyWithResponse Returns the OTLP spans and log records (if any) associated with the trace ID
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
func (*ClientWithResponses) PostApiTraceDetailsWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PostApiTraceDetailsWithResponse(ctx context.Context, body PostApiTraceDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTraceDetailsResponse, error)
PostApiTraceDetailsWithResponse Returns the OTLP spans and log records (if any) associated with the trace ID
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
func (*ClientWithResponses) PostApiTraceIdsWithBodyWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiTraceIdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTraceIdsResponse, error)
PostApiTraceIdsWithBodyWithResponse Returns unique trace IDs matching the given filters
Lightweight endpoint that returns only the unique trace IDs of traces containing at least one span matching the request filters. Useful for two-step workflows: first find matching trace IDs, then fetch full trace details via `POST /api/trace/details`. Significantly faster and lighter-weight than `POST /api/spans` when only trace IDs are needed.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
func (*ClientWithResponses) PostApiTraceIdsWithResponse ¶ added in v1.12.1
func (c *ClientWithResponses) PostApiTraceIdsWithResponse(ctx context.Context, body PostApiTraceIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTraceIdsResponse, error)
PostApiTraceIdsWithResponse Returns unique trace IDs matching the given filters
Lightweight endpoint that returns only the unique trace IDs of traces containing at least one span matching the request filters. Useful for two-step workflows: first find matching trace IDs, then fetch full trace details via `POST /api/trace/details`. Significantly faster and lighter-weight than `POST /api/spans` when only trace IDs are needed.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
func (*ClientWithResponses) PostApiViewsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiViewsWithBodyWithResponse(ctx context.Context, params *PostApiViewsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiViewsResponse, error)
PostApiViewsWithBodyWithResponse Create a view
Create a view.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/views (the `PostApiViews` operationId).
func (*ClientWithResponses) PostApiViewsWithResponse ¶
func (c *ClientWithResponses) PostApiViewsWithResponse(ctx context.Context, params *PostApiViewsParams, body PostApiViewsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiViewsResponse, error)
PostApiViewsWithResponse Create a view
Create a view.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/views (the `PostApiViews` operationId).
func (*ClientWithResponses) PostApiWebEventsDownloadWithBodyWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiWebEventsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiWebEventsDownloadResponse, error)
PostApiWebEventsDownloadWithBodyWithResponse Download web events as a file
Returns the web events matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 web events.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 events, the export carries the first 5000 in result-set order; there is no CLI equivalent for web events, so a larger export has to be taken as several narrower queries.
Web-event retrieval does not sample, so no sampling has to be disabled for the file to be the query's whole result set.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first event is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
func (*ClientWithResponses) PostApiWebEventsDownloadWithResponse ¶ added in v1.18.1
func (c *ClientWithResponses) PostApiWebEventsDownloadWithResponse(ctx context.Context, body PostApiWebEventsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiWebEventsDownloadResponse, error)
PostApiWebEventsDownloadWithResponse Download web events as a file
Returns the web events matching the given query as a downloadable file in the requested format (`txt`, `ndjson`, `yaml` or `csv`).
**A single export is capped at 5000 web events.** A `limit` above that cap is rejected rather than silently clamped: the response is a client error naming the cap. When the query matches more than 5000 events, the export carries the first 5000 in result-set order; there is no CLI equivalent for web events, so a larger export has to be taken as several narrower queries.
Web-event retrieval does not sample, so no sampling has to be disabled for the file to be the query's whole result set.
The response is streamed as pages are retrieved and therefore carries no `Content-Length`. Because the response headers are committed before the first event is written, a failure partway through cannot be reported as a status code — it terminates the transfer instead. Clients MUST confirm the body was received completely before treating the download as a successful export.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
func (*ClientWithResponses) PostOauthRegisterWithBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthRegisterResponse, error)
PostOauthRegisterWithBodyWithResponse Register a new OAuth client
Dynamic Client Registration endpoint (RFC 7591). Allows clients to register themselves and obtain a client_id for use in the authorization code flow.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
func (*ClientWithResponses) PostOauthRegisterWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthRegisterWithResponse(ctx context.Context, body PostOauthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOauthRegisterResponse, error)
PostOauthRegisterWithResponse Register a new OAuth client
Dynamic Client Registration endpoint (RFC 7591). Allows clients to register themselves and obtain a client_id for use in the authorization code flow.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
func (*ClientWithResponses) PostOauthRevokeWithBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthRevokeResponse, error)
PostOauthRevokeWithBodyWithResponse OAuth 2.0 Token Revocation
Token revocation endpoint (RFC 7009). Revokes an access or refresh token. The server responds with HTTP 200 regardless of whether the token was valid, to prevent token scanning attacks.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
func (*ClientWithResponses) PostOauthRevokeWithFormdataBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthRevokeWithFormdataBodyWithResponse(ctx context.Context, body PostOauthRevokeFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauthRevokeResponse, error)
PostOauthRevokeWithFormdataBodyWithResponse OAuth 2.0 Token Revocation
Token revocation endpoint (RFC 7009). Revokes an access or refresh token. The server responds with HTTP 200 regardless of whether the token was valid, to prevent token scanning attacks.
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
func (*ClientWithResponses) PostOauthTokenWithBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthTokenResponse, error)
PostOauthTokenWithBodyWithResponse OAuth 2.0 Token Endpoint
Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for access and refresh tokens (authorization_code grant), or exchanges a refresh token for new tokens (refresh_token grant).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
func (*ClientWithResponses) PostOauthTokenWithFormdataBodyWithResponse ¶ added in v1.6.0
func (c *ClientWithResponses) PostOauthTokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauthTokenResponse, error)
PostOauthTokenWithFormdataBodyWithResponse OAuth 2.0 Token Endpoint
Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for access and refresh tokens (authorization_code grant), or exchanges a refresh token for new tokens (refresh_token grant).
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
func (*ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse Update or insert an Agent0 custom skill
Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
func (*ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithResponse ¶ added in v1.29.0
func (c *ClientWithResponses) PutApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
PutApiAgent0CustomSkillsOriginOrIdWithResponse Update or insert an Agent0 custom skill
Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
func (*ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse Update or create an automation by origin or ID
Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
func (*ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, body PutApiAgenticWorkflowsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
PutApiAgenticWorkflowsOriginOrIdWithResponse Update or create an automation by origin or ID
Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
func (*ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse Update or insert a specific check rule (Prometheus alert rule) by origin or id
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithResponse ¶
func (c *ClientWithResponses) PutApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, body PutApiAlertingCheckRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
PutApiAlertingCheckRulesOriginOrIdWithResponse Update or insert a specific check rule (Prometheus alert rule) by origin or id
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiAuthTokensOriginOrIdWithBodyWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) PutApiAuthTokensOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAuthTokensOriginOrIdResponse, error)
PutApiAuthTokensOriginOrIdWithBodyWithResponse Update a specific auth token
Updates an auth token, or creates it when no token has the given origin (upsert by origin). The request must not carry `spec.token`: the secret is generated by Dash0 and a request that sends one returns `400`. Changing the origin is rejected with `400`. The response includes `spec.token` only when this request created the token. Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
func (*ClientWithResponses) PutApiAuthTokensOriginOrIdWithResponse ¶ added in v1.25.0
func (c *ClientWithResponses) PutApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiAuthTokensOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAuthTokensOriginOrIdResponse, error)
PutApiAuthTokensOriginOrIdWithResponse Update a specific auth token
Updates an auth token, or creates it when no token has the given origin (upsert by origin). The request must not carry `spec.token`: the secret is generated by Dash0 and a request that sends one returns `400`. Changing the origin is rejected with `400`. The response includes `spec.token` only when this request created the token. Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
func (*ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse(ctx context.Context, integrationId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse Replace the CloudWatch metric scrape config of an AWS integration
Replaces the integration's whole scrape config with the body. A namespace absent from `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An empty `integrationFilter` or `filter` array means the same as an absent one and is not returned.
The whole request is validated, and the integration's metrics-pull schedule asserted, before anything is written, so a 400 or 412 response means nothing was stored. Invalid input is rejected rather than corrected: a namespace listed twice, a metric listed twice in a namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
`metadata.name` is the integration's name; it is read-only and ignored on write. The `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards; a value longer than 255 characters, with non-printable characters, or starting with a reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write. Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset` query parameter: the dataset is resolved from the integration itself, so a caller cannot write into a dataset the integration does not belong to.
The response is the document a following `GET` returns, with namespaces and metrics sorted ascending.
Restricted to organization administrators and API tokens, like every integration write.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
func (*ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse ¶ added in v1.28.0
func (c *ClientWithResponses) PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, body PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse Replace the CloudWatch metric scrape config of an AWS integration
Replaces the integration's whole scrape config with the body. A namespace absent from `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An empty `integrationFilter` or `filter` array means the same as an absent one and is not returned.
The whole request is validated, and the integration's metrics-pull schedule asserted, before anything is written, so a 400 or 412 response means nothing was stored. Invalid input is rejected rather than corrected: a namespace listed twice, a metric listed twice in a namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
`metadata.name` is the integration's name; it is read-only and ignored on write. The `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards; a value longer than 255 characters, with non-printable characters, or starting with a reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write. Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset` query parameter: the dataset is resolved from the integration itself, so a caller cannot write into a dataset the integration does not belong to.
The response is the document a following `GET` returns, with namespaces and metrics sorted ascending.
Restricted to organization administrators and API tokens, like every integration write.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
func (*ClientWithResponses) PutApiDashboardsOriginOrIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiDashboardsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDashboardsOriginOrIdResponse, error)
PutApiDashboardsOriginOrIdWithBodyWithResponse Update or insert a specific dashboard by its origin or id
Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
func (*ClientWithResponses) PutApiDashboardsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) PutApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, body PutApiDashboardsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDashboardsOriginOrIdResponse, error)
PutApiDashboardsOriginOrIdWithResponse Update or insert a specific dashboard by its origin or id
Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
func (*ClientWithResponses) PutApiDatasetsOriginOrIdWithBodyWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) PutApiDatasetsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDatasetsOriginOrIdResponse, error)
PutApiDatasetsOriginOrIdWithBodyWithResponse Update a specific dataset
Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is created instead.
`metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored version. Omitting any spec field leaves its stored value unchanged. Changing the slug is rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
func (*ClientWithResponses) PutApiDatasetsOriginOrIdWithResponse ¶ added in v1.24.0
func (c *ClientWithResponses) PutApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiDatasetsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDatasetsOriginOrIdResponse, error)
PutApiDatasetsOriginOrIdWithResponse Update a specific dataset
Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is created instead.
`metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored version. Omitting any spec field leaves its stored value unchanged. Changing the slug is rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
func (*ClientWithResponses) PutApiImportSignalToMetricsWithBodyWithResponse ¶ added in v1.12.3
func (c *ClientWithResponses) PutApiImportSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiImportSignalToMetricsResponse, error)
PutApiImportSignalToMetricsWithBodyWithResponse Bulk upsert signal-to-metrics configs
Atomically upserts up to 500 signal-to-metrics configurations at once. If any item fails validation or cannot be written, the entire batch is rejected and no configurations are changed.
This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform, the operator, CLI scripts). Rules are matched by their `origin` values across repeated invocations, making the operation idempotent.
This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 500 rules per request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
func (*ClientWithResponses) PutApiImportSignalToMetricsWithResponse ¶ added in v1.12.3
func (c *ClientWithResponses) PutApiImportSignalToMetricsWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, body PutApiImportSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiImportSignalToMetricsResponse, error)
PutApiImportSignalToMetricsWithResponse Bulk upsert signal-to-metrics configs
Atomically upserts up to 500 signal-to-metrics configurations at once. If any item fails validation or cannot be written, the entire batch is rejected and no configurations are changed.
This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform, the operator, CLI scripts). Rules are matched by their `origin` values across repeated invocations, making the operation idempotent.
This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other endpoints) to accommodate batched payloads of up to 500 rules per request.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
func (*ClientWithResponses) PutApiMembersMemberIDRoleWithBodyWithResponse ¶ added in v1.23.0
func (c *ClientWithResponses) PutApiMembersMemberIDRoleWithBodyWithResponse(ctx context.Context, memberID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiMembersMemberIDRoleResponse, error)
PutApiMembersMemberIDRoleWithBodyWithResponse Change the organization role of a member
Changes the role of a member of your organization.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
func (*ClientWithResponses) PutApiMembersMemberIDRoleWithResponse ¶ added in v1.23.0
func (c *ClientWithResponses) PutApiMembersMemberIDRoleWithResponse(ctx context.Context, memberID string, body PutApiMembersMemberIDRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiMembersMemberIDRoleResponse, error)
PutApiMembersMemberIDRoleWithResponse Change the organization role of a member
Changes the role of a member of your organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
func (*ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiNotificationChannelsOriginOrIdResponse, error)
PutApiNotificationChannelsOriginOrIdWithBodyWithResponse Update a notification channel
Updates an existing notification channel.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
func (*ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiNotificationChannelsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiNotificationChannelsOriginOrIdResponse, error)
PutApiNotificationChannelsOriginOrIdWithResponse Update a notification channel
Updates an existing notification channel.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
func (*ClientWithResponses) PutApiRecordingRulesOriginOrIdWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiRecordingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiRecordingRulesOriginOrIdResponse, error)
PutApiRecordingRulesOriginOrIdWithBodyWithResponse Update a specific recording rule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiRecordingRulesOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, body PutApiRecordingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiRecordingRulesOriginOrIdResponse, error)
PutApiRecordingRulesOriginOrIdWithResponse Update a specific recording rule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiSamplingRulesOriginOrIdWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) PutApiSamplingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSamplingRulesOriginOrIdResponse, error)
PutApiSamplingRulesOriginOrIdWithBodyWithResponse Update or create a sampling rule by origin or ID
Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiSamplingRulesOriginOrIdWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) PutApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, body PutApiSamplingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSamplingRulesOriginOrIdResponse, error)
PutApiSamplingRulesOriginOrIdWithResponse Update or create a sampling rule by origin or ID
Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
func (*ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithBodyWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSignalToMetricsOriginOrIdResponse, error)
PutApiSignalToMetricsOriginOrIdWithBodyWithResponse Update or create a signal-to-metrics config by origin or ID
Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
func (*ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithResponse ¶ added in v1.9.0
func (c *ClientWithResponses) PutApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, body PutApiSignalToMetricsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSignalToMetricsOriginOrIdResponse, error)
PutApiSignalToMetricsOriginOrIdWithResponse Update or create a signal-to-metrics config by origin or ID
Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
func (*ClientWithResponses) PutApiSlosOriginOrIdWithBodyWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) PutApiSlosOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSlosOriginOrIdResponse, error)
PutApiSlosOriginOrIdWithBodyWithResponse Update a specific SLO
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
func (*ClientWithResponses) PutApiSlosOriginOrIdWithResponse ¶ added in v1.14.0
func (c *ClientWithResponses) PutApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, body PutApiSlosOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSlosOriginOrIdResponse, error)
PutApiSlosOriginOrIdWithResponse Update a specific SLO
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
func (*ClientWithResponses) PutApiSpamFiltersOriginOrIdWithBodyWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PutApiSpamFiltersOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSpamFiltersOriginOrIdResponse, error)
PutApiSpamFiltersOriginOrIdWithBodyWithResponse Update or create a spam filter by origin or ID
Updates an existing spam filter or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows. Provide either structured `filter` criteria or a raw OTTL `condition` in the spec, but not both.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
func (*ClientWithResponses) PutApiSpamFiltersOriginOrIdWithResponse ¶ added in v1.12.0
func (c *ClientWithResponses) PutApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, body PutApiSpamFiltersOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSpamFiltersOriginOrIdResponse, error)
PutApiSpamFiltersOriginOrIdWithResponse Update or create a spam filter by origin or ID
Updates an existing spam filter or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows. Provide either structured `filter` criteria or a raw OTTL `condition` in the spec, but not both.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
func (*ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSyntheticChecksOriginOrIdResponse, error)
PutApiSyntheticChecksOriginOrIdWithBodyWithResponse Update or insert a specific synthetic check by its origin or id
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
func (*ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithResponse ¶
func (c *ClientWithResponses) PutApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, body PutApiSyntheticChecksOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSyntheticChecksOriginOrIdResponse, error)
PutApiSyntheticChecksOriginOrIdWithResponse Update or insert a specific synthetic check by its origin or id
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
func (*ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithBodyWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdDisplayResponse, error)
PutApiTeamsOriginOrIdDisplayWithBodyWithResponse Update a specific team display option
Update the display name, description, and color of a team.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
func (*ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) PutApiTeamsOriginOrIdDisplayWithResponse(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdDisplayJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdDisplayResponse, error)
PutApiTeamsOriginOrIdDisplayWithResponse Update a specific team display option
Update the display name, description, and color of a team.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
func (*ClientWithResponses) PutApiTeamsOriginOrIdWithBodyWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiTeamsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdResponse, error)
PutApiTeamsOriginOrIdWithBodyWithResponse Update or insert a specific team by its origin or id
Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
`spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
func (*ClientWithResponses) PutApiTeamsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdResponse, error)
PutApiTeamsOriginOrIdWithResponse Update or insert a specific team by its origin or id
Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
`spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
func (*ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse Update or create a time series aggregation by origin or ID
Updates an existing time series aggregation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
When no rule matches and `originOrId` is a UUID, the rule is created with that UUID as its ID and no origin, so it stays editable in the UI. Any other value becomes the rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
func (*ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithResponse ¶ added in v1.17.0
func (c *ClientWithResponses) PutApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, body PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
PutApiTimeSeriesAggregationsOriginOrIdWithResponse Update or create a time series aggregation by origin or ID
Updates an existing time series aggregation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
When no rule matches and `originOrId` is a UUID, the rule is created with that UUID as its ID and no origin, so it stays editable in the UI. Any other value becomes the rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
func (*ClientWithResponses) PutApiViewsOriginOrIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiViewsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiViewsOriginOrIdResponse, error)
PutApiViewsOriginOrIdWithBodyWithResponse Update or insert a specific view by its origin or id
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
func (*ClientWithResponses) PutApiViewsOriginOrIdWithResponse ¶
func (c *ClientWithResponses) PutApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, body PutApiViewsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiViewsOriginOrIdResponse, error)
PutApiViewsOriginOrIdWithResponse Update or insert a specific view by its origin or id
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetWellKnownOauthAuthorizationServerWithResponse OAuth 2.0 Authorization Server Metadata
//
// Returns the OAuth 2.0 Authorization Server Metadata document (RFC 8414).
// Clients use this endpoint to discover authorization server capabilities
// and endpoint locations.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /.well-known/oauth-authorization-server (the `GetWellKnownOauthAuthorizationServer` operationId).
GetWellKnownOauthAuthorizationServerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthAuthorizationServerResponse, error)
// GetWellKnownOauthProtectedResourceWithResponse OAuth 2.0 Protected Resource Metadata
//
// Returns the OAuth 2.0 Protected Resource Metadata document (RFC 9728).
// MCP clients use this endpoint to discover which authorization server(s)
// can issue tokens accepted by this resource server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /.well-known/oauth-protected-resource (the `GetWellKnownOauthProtectedResource` operationId).
GetWellKnownOauthProtectedResourceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownOauthProtectedResourceResponse, error)
// GetApiAgent0CustomSkillsWithResponse List Agent0 custom skills
//
// Returns the organization's custom skills that the caller may read. Custom skills belong to the organization, not to a dataset. Whether a skill is on is per user, so `dash0.com/enabled` and the `enabled` filter describe the calling user; for an API token every readable skill is on.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/agent0/custom-skills (the `GetApiAgent0CustomSkills` operationId).
GetApiAgent0CustomSkillsWithResponse(ctx context.Context, params *GetApiAgent0CustomSkillsParams, reqEditors ...RequestEditorFn) (*GetApiAgent0CustomSkillsResponse, error)
// PostApiAgent0CustomSkillsWithBodyWithResponse Create an Agent0 custom skill
//
// Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
PostApiAgent0CustomSkillsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAgent0CustomSkillsResponse, error)
// PostApiAgent0CustomSkillsWithResponse Create an Agent0 custom skill
//
// Creates a skill from its files. `spec.files` must include a `SKILL.md` whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a `dash0.com/origin` cannot carry `spec.source`, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without `spec.permissions` is readable by every organization member. An API token may send `dash0.com/enabled: "true"` but not `"false"`: to ship a skill off by default, set `defaultEnabled` on its grants.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/agent0/custom-skills (the `PostApiAgent0CustomSkills` operationId).
PostApiAgent0CustomSkillsWithResponse(ctx context.Context, body PostApiAgent0CustomSkillsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAgent0CustomSkillsResponse, error)
// DeleteApiAgent0CustomSkillsOriginOrIdWithResponse Delete an Agent0 custom skill
//
// Soft-deletes the skill. Automations whose prompts name it keep running and treat the name as plain prompt text.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/agent0/custom-skills/{originOrId} (the `DeleteApiAgent0CustomSkillsOriginOrId` operationId).
DeleteApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAgent0CustomSkillsOriginOrIdResponse, error)
// GetApiAgent0CustomSkillsOriginOrIdWithResponse Retrieve an Agent0 custom skill
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/agent0/custom-skills/{originOrId} (the `GetApiAgent0CustomSkillsOriginOrId` operationId).
GetApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAgent0CustomSkillsOriginOrIdResponse, error)
// PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse Update or insert an Agent0 custom skill
//
// Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
PutApiAgent0CustomSkillsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
// PutApiAgent0CustomSkillsOriginOrIdWithResponse Update or insert an Agent0 custom skill
//
// Replaces the skill's files, or creates the skill when the origin does not exist yet; a create stores `spec.permissions` exactly as sent. Use the `dash0.com/version` label for optimistic concurrency. A rename that conflicts with an existing skill is rejected rather than overwriting it, with the same duplicate-name rule as on create. The same limits apply as on create. An absent `spec.permissions` keeps the stored grants. `spec.source` cannot be added or changed. For a skill imported from a repository in Dash0, omit it or send it back unchanged; that skill's files stay read-only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/agent0/custom-skills/{originOrId} (the `PutApiAgent0CustomSkillsOriginOrId` operationId).
PutApiAgent0CustomSkillsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
// GetApiAgenticWorkflowsWithResponse List all automations for the organization
//
// Returns all automations configured for your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/agentic-workflows (the `GetApiAgenticWorkflows` operationId).
GetApiAgenticWorkflowsWithResponse(ctx context.Context, params *GetApiAgenticWorkflowsParams, reqEditors ...RequestEditorFn) (*GetApiAgenticWorkflowsResponse, error)
// PostApiAgenticWorkflowsWithBodyWithResponse Create a new automation
//
// Create a new automation for your organization.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
PostApiAgenticWorkflowsWithBodyWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAgenticWorkflowsResponse, error)
// PostApiAgenticWorkflowsWithResponse Create a new automation
//
// Create a new automation for your organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/agentic-workflows (the `PostApiAgenticWorkflows` operationId).
PostApiAgenticWorkflowsWithResponse(ctx context.Context, params *PostApiAgenticWorkflowsParams, body PostApiAgenticWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAgenticWorkflowsResponse, error)
// DeleteApiAgenticWorkflowsOriginOrIdWithResponse Delete an automation by origin or ID
//
// Deletes a specific automation identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/agentic-workflows/{originOrId} (the `DeleteApiAgenticWorkflowsOriginOrId` operationId).
DeleteApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiAgenticWorkflowsOriginOrIdResponse, error)
// GetApiAgenticWorkflowsOriginOrIdWithResponse Get a specific automation by origin or ID
//
// Returns a specific automation identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/agentic-workflows/{originOrId} (the `GetApiAgenticWorkflowsOriginOrId` operationId).
GetApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiAgenticWorkflowsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiAgenticWorkflowsOriginOrIdResponse, error)
// PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse Update or create an automation by origin or ID
//
// Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
PutApiAgenticWorkflowsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
// PutApiAgenticWorkflowsOriginOrIdWithResponse Update or create an automation by origin or ID
//
// Updates an existing automation or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/agentic-workflows/{originOrId} (the `PutApiAgenticWorkflowsOriginOrId` operationId).
PutApiAgenticWorkflowsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiAgenticWorkflowsOriginOrIdParams, body PutApiAgenticWorkflowsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
// GetApiAlertingCheckRulesWithResponse Retrieve a list of check rule ids
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/alerting/check-rules (the `GetApiAlertingCheckRules` operationId).
GetApiAlertingCheckRulesWithResponse(ctx context.Context, params *GetApiAlertingCheckRulesParams, reqEditors ...RequestEditorFn) (*GetApiAlertingCheckRulesResponse, error)
// PostApiAlertingCheckRulesWithBodyWithResponse Create a new check rule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
PostApiAlertingCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesResponse, error)
// PostApiAlertingCheckRulesWithResponse Create a new check rule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/alerting/check-rules (the `PostApiAlertingCheckRules` operationId).
PostApiAlertingCheckRulesWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesParams, body PostApiAlertingCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesResponse, error)
// PostApiAlertingCheckRulesBulkWithBodyWithResponse Bulk create check rules
//
// Atomically create up to 1000 Prometheus alert rules in a single request.
// Create-only — every item produces a brand-new check rule. The public
// schema uses `id` as the user-defined origin; each item resolves it the
// same way `POST /api/alerting/check-rules` does (`id` if given, otherwise
// a server-generated UUID with an "api-" prefix). Any item whose resolved
// origin or id collides with an existing rule (including deleted rules,
// whose origin stays reserved) is rejected with a per-item diagnostic.
//
// If any item fails validation (PromQL, intervals, summary length,
// template functions, origin/id collision, etc.) the whole batch is
// rejected with a 400 that carries per-item diagnostics in the message;
// nothing is written. On a server-side failure the entire batch is rolled
// back and 500 is returned. The endpoint is not idempotent — a successful
// batch retried verbatim will 400 on every item the second time.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default
// for other endpoints) to accommodate batched payloads of up to 1000
// rules per request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
PostApiAlertingCheckRulesBulkWithBodyWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesBulkResponse, error)
// PostApiAlertingCheckRulesBulkWithResponse Bulk create check rules
//
// Atomically create up to 1000 Prometheus alert rules in a single request.
// Create-only — every item produces a brand-new check rule. The public
// schema uses `id` as the user-defined origin; each item resolves it the
// same way `POST /api/alerting/check-rules` does (`id` if given, otherwise
// a server-generated UUID with an "api-" prefix). Any item whose resolved
// origin or id collides with an existing rule (including deleted rules,
// whose origin stays reserved) is rejected with a per-item diagnostic.
//
// If any item fails validation (PromQL, intervals, summary length,
// template functions, origin/id collision, etc.) the whole batch is
// rejected with a 400 that carries per-item diagnostics in the message;
// nothing is written. On a server-side failure the entire batch is rolled
// back and 500 is returned. The endpoint is not idempotent — a successful
// batch retried verbatim will 400 on every item the second time.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default
// for other endpoints) to accommodate batched payloads of up to 1000
// rules per request.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/alerting/check-rules/bulk (the `PostApiAlertingCheckRulesBulk` operationId).
PostApiAlertingCheckRulesBulkWithResponse(ctx context.Context, params *PostApiAlertingCheckRulesBulkParams, body PostApiAlertingCheckRulesBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAlertingCheckRulesBulkResponse, error)
// DeleteApiAlertingCheckRulesOriginOrIdWithResponse Delete a specific check rule (Prometheus alert rule) by origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/alerting/check-rules/{originOrId} (the `DeleteApiAlertingCheckRulesOriginOrId` operationId).
DeleteApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiAlertingCheckRulesOriginOrIdResponse, error)
// GetApiAlertingCheckRulesOriginOrIdWithResponse Retrieve a specific check rule (Prometheus alert rule) by its origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/alerting/check-rules/{originOrId} (the `GetApiAlertingCheckRulesOriginOrId` operationId).
GetApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiAlertingCheckRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiAlertingCheckRulesOriginOrIdResponse, error)
// PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse Update or insert a specific check rule (Prometheus alert rule) by origin or id
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
PutApiAlertingCheckRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
// PutApiAlertingCheckRulesOriginOrIdWithResponse Update or insert a specific check rule (Prometheus alert rule) by origin or id
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/alerting/check-rules/{originOrId} (the `PutApiAlertingCheckRulesOriginOrId` operationId).
PutApiAlertingCheckRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiAlertingCheckRulesOriginOrIdParams, body PutApiAlertingCheckRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
// GetApiAuthTokensWithResponse List all auth tokens for the organization
//
// Returns all auth tokens in your organization. The secret is not returned: `spec.token` is
// only in the response that creates a token.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/auth-tokens (the `GetApiAuthTokens` operationId).
GetApiAuthTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiAuthTokensResponse, error)
// PostApiAuthTokensWithBodyWithResponse Create an auth token
//
// Creates an auth token. The secret is generated by the server and returned in `spec.token`
// in this response only; store it, because no later read returns it. The request must not
// carry `spec.token`: a request that sends one returns `400`.
// `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be
// unique in your organization and must not be a UUID; a machine token that has no user gets an
// `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is
// required; a missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
PostApiAuthTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAuthTokensResponse, error)
// PostApiAuthTokensWithResponse Create an auth token
//
// Creates an auth token. The secret is generated by the server and returned in `spec.token`
// in this response only; store it, because no later read returns it. The request must not
// carry `spec.token`: a request that sends one returns `400`.
// `metadata.labels["dash0.com/id"]` must not be set. `metadata.labels["dash0.com/origin"]` must be
// unique in your organization and must not be a UUID; a machine token that has no user gets an
// `api-<uuid>` origin when none is given. The origin cannot be changed afterwards. `apiVersion` is
// required; a missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth-tokens (the `PostApiAuthTokens` operationId).
PostApiAuthTokensWithResponse(ctx context.Context, body PostApiAuthTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAuthTokensResponse, error)
// DeleteApiAuthTokensOriginOrIdWithResponse Delete a specific auth token
//
// Deletes the auth token. Deleting the last remaining auth token of your organization is refused
// with `400`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/auth-tokens/{originOrId} (the `DeleteApiAuthTokensOriginOrId` operationId).
DeleteApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiAuthTokensOriginOrIdResponse, error)
// GetApiAuthTokensOriginOrIdWithResponse Retrieve a specific auth token
//
// Returns the auth token with the given origin or ID. The secret is not returned: `spec.token`
// is only in the response that creates a token.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/auth-tokens/{originOrId} (the `GetApiAuthTokensOriginOrId` operationId).
GetApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiAuthTokensOriginOrIdResponse, error)
// PutApiAuthTokensOriginOrIdWithBodyWithResponse Update a specific auth token
//
// Updates an auth token, or creates it when no token has the given origin (upsert by origin).
// The request must not carry `spec.token`: the secret is generated by Dash0 and a request that
// sends one returns `400`. Changing the origin is rejected with `400`. The response includes
// `spec.token` only when this request created the token.
// Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing
// or unsupported value returns `400`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
PutApiAuthTokensOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAuthTokensOriginOrIdResponse, error)
// PutApiAuthTokensOriginOrIdWithResponse Update a specific auth token
//
// Updates an auth token, or creates it when no token has the given origin (upsert by origin).
// The request must not carry `spec.token`: the secret is generated by Dash0 and a request that
// sends one returns `400`. Changing the origin is rejected with `400`. The response includes
// `spec.token` only when this request created the token.
// Omitting any spec field leaves its stored value unchanged. `apiVersion` is required; a missing
// or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/auth-tokens/{originOrId} (the `PutApiAuthTokensOriginOrId` operationId).
PutApiAuthTokensOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiAuthTokensOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAuthTokensOriginOrIdResponse, error)
// DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse Clear the CloudWatch metric scrape config of an AWS integration
//
// Removes every namespace and the integration filter, which stops all scraping for the
// integration. The integration itself is not deleted. Deleting an already empty config succeeds,
// so the call is idempotent, and it succeeds even when the integration's read-only role is not
// active.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/aws-metric-scrape-configs/{integrationId} (the `DeleteApiAwsMetricScrapeConfigsIntegrationId` operationId).
DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
// GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse Get the CloudWatch metric scrape config of an AWS integration
//
// Returns the integration's scrape config document. Every AWS integration has exactly one, so
// an integration that was never configured returns 200 with an empty `namespaces` array, which
// means nothing is scraped.
//
// Namespaces and the metrics within each namespace are sorted ascending. An empty filter is
// never returned. `metadata.name` is the integration's name, and the labels `dash0.com/id`
// (the integration id), `dash0.com/dataset` and `dash0.com/source` are set by the server.
// `dash0.com/origin` and the `dash0.com/created-at` and `dash0.com/updated-at` annotations
// are returned only once the integration has a stored config.
//
// There is no `dataset` query parameter: the dataset is resolved from the integration itself.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/aws-metric-scrape-configs/{integrationId} (the `GetApiAwsMetricScrapeConfigsIntegrationId` operationId).
GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
// PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse Replace the CloudWatch metric scrape config of an AWS integration
//
// Replaces the integration's whole scrape config with the body. A namespace absent from
// `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An
// empty `integrationFilter` or `filter` array means the same as an absent one and is not
// returned.
//
// The whole request is validated, and the integration's metrics-pull schedule asserted, before
// anything is written, so a 400 or 412 response means nothing was stored. Invalid input is
// rejected rather than corrected: a namespace listed twice, a metric listed twice in a
// namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
//
// `metadata.name` is the integration's name; it is read-only and ignored on write. The
// `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards;
// a value longer than 255 characters, with non-printable characters, or starting with a
// reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits
// it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write.
// Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset`
// query parameter: the dataset is resolved from the integration itself, so a caller cannot
// write into a dataset the integration does not belong to.
//
// The response is the document a following `GET` returns, with namespaces and metrics sorted
// ascending.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
PutApiAwsMetricScrapeConfigsIntegrationIdWithBodyWithResponse(ctx context.Context, integrationId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
// PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse Replace the CloudWatch metric scrape config of an AWS integration
//
// Replaces the integration's whole scrape config with the body. A namespace absent from
// `spec.namespaces` is not scraped, and an empty `namespaces` array stops all scraping. An
// empty `integrationFilter` or `filter` array means the same as an absent one and is not
// returned.
//
// The whole request is validated, and the integration's metrics-pull schedule asserted, before
// anything is written, so a 400 or 412 response means nothing was stored. Invalid input is
// rejected rather than corrected: a namespace listed twice, a metric listed twice in a
// namespace, and a namespace or metric name with leading or trailing whitespace all return 400.
//
// `metadata.name` is the integration's name; it is read-only and ignored on write. The
// `dash0.com/origin` label is stored by the first write that sets it and ignored afterwards;
// a value longer than 255 characters, with non-printable characters, or starting with a
// reserved prefix (`slo_`, `check_rule_`) returns 400. When an API token without a user omits
// it, the server stores `api-<uuid>`. All other labels and annotations are ignored on write.
// Writing an unchanged config leaves `dash0.com/updated-at` as it was. There is no `dataset`
// query parameter: the dataset is resolved from the integration itself, so a caller cannot
// write into a dataset the integration does not belong to.
//
// The response is the document a following `GET` returns, with namespaces and metrics sorted
// ascending.
//
// Restricted to organization administrators and API tokens, like every integration write.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/aws-metric-scrape-configs/{integrationId} (the `PutApiAwsMetricScrapeConfigsIntegrationId` operationId).
PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse(ctx context.Context, integrationId openapi_types.UUID, body PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
// GetApiDashboardsWithResponse Receive a list of dashboards
//
// Receive a list of your organization dashboards.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/dashboards (the `GetApiDashboards` operationId).
GetApiDashboardsWithResponse(ctx context.Context, params *GetApiDashboardsParams, reqEditors ...RequestEditorFn) (*GetApiDashboardsResponse, error)
// PostApiDashboardsWithBodyWithResponse Create a dashboard
//
// Create a dashboard.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
PostApiDashboardsWithBodyWithResponse(ctx context.Context, params *PostApiDashboardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDashboardsResponse, error)
// PostApiDashboardsWithResponse Create a dashboard
//
// Create a dashboard.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/dashboards (the `PostApiDashboards` operationId).
PostApiDashboardsWithResponse(ctx context.Context, params *PostApiDashboardsParams, body PostApiDashboardsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDashboardsResponse, error)
// DeleteApiDashboardsOriginOrIdWithResponse Delete a specific dashboard by its origin or id
//
// Delete a specific dashboard by its **origin** or **id**.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/dashboards/{originOrId} (the `DeleteApiDashboardsOriginOrId` operationId).
DeleteApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiDashboardsOriginOrIdResponse, error)
// GetApiDashboardsOriginOrIdWithResponse Receive a specific dashboard by its origin or id
//
// Receive a specific dashboard by its **origin** or **id**.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/dashboards/{originOrId} (the `GetApiDashboardsOriginOrId` operationId).
GetApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiDashboardsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiDashboardsOriginOrIdResponse, error)
// PutApiDashboardsOriginOrIdWithBodyWithResponse Update or insert a specific dashboard by its origin or id
//
// Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
PutApiDashboardsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDashboardsOriginOrIdResponse, error)
// PutApiDashboardsOriginOrIdWithResponse Update or insert a specific dashboard by its origin or id
//
// Update or insert a specific dashboard by its **origin** or **id**. In case a dashboard with the given **origin** or **id** is found it will be updated. If there is no dashboard found a new dashboard will be created and the given `originOrId` is used as **origin**.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/dashboards/{originOrId} (the `PutApiDashboardsOriginOrId` operationId).
PutApiDashboardsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiDashboardsOriginOrIdParams, body PutApiDashboardsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDashboardsOriginOrIdResponse, error)
// GetApiDatasetsWithResponse List all datasets for the organization
//
// Returns all datasets in your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/datasets (the `GetApiDatasets` operationId).
GetApiDatasetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDatasetsResponse, error)
// PostApiDatasetsWithBodyWithResponse Create a dataset
//
// Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's
// permanent identifier and cannot be changed afterwards. A slug or origin that is already in
// use, as a slug or as an origin, in your organization is rejected with `400`.
//
// Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the
// origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine
// token that has no user; else none, and the old origin is dropped.
//
// `spec.permissions` sets the dataset's grants. Without it, the organization's members get
// `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants;
// without it, they come back as they were.
//
// `apiVersion` is required. A missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
PostApiDatasetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDatasetsResponse, error)
// PostApiDatasetsWithResponse Create a dataset
//
// Creates a dataset. The slug supplied as `metadata.labels["dash0.com/id"]` is the dataset's
// permanent identifier and cannot be changed afterwards. A slug or origin that is already in
// use, as a slug or as an origin, in your organization is rejected with `400`.
//
// Creating a dataset whose slug belongs to a deleted dataset restores it. A restore sets the
// origin like a create: the origin in the request; else an `api-<uuid>` origin for a machine
// token that has no user; else none, and the old origin is dropped.
//
// `spec.permissions` sets the dataset's grants. Without it, the organization's members get
// `dataset:read`. A restore with `spec.permissions` replaces the deleted dataset's grants;
// without it, they come back as they were.
//
// `apiVersion` is required. A missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/datasets (the `PostApiDatasets` operationId).
PostApiDatasetsWithResponse(ctx context.Context, body PostApiDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDatasetsResponse, error)
// DeleteApiDatasetsOriginOrIdWithResponse Delete a specific dataset
//
// Deletes the dataset. It can be restored, 30 days by default, by creating a dataset with the same
// slug; after that it is gone for good. Deleting the default dataset returns 400. Deleting a
// dataset that does not exist, or is already deleted, returns 200.
//
// A deleted dataset keeps its origin reserved until it is purged. Creating a dataset with that
// origin under another slug returns `400`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/datasets/{originOrId} (the `DeleteApiDatasetsOriginOrId` operationId).
DeleteApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiDatasetsOriginOrIdResponse, error)
// GetApiDatasetsOriginOrIdWithResponse Retrieve a specific dataset
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/datasets/{originOrId} (the `GetApiDatasetsOriginOrId` operationId).
GetApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiDatasetsOriginOrIdResponse, error)
// PutApiDatasetsOriginOrIdWithBodyWithResponse Update a specific dataset
//
// Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is
// created instead.
//
// `metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored
// version. Omitting any spec field leaves its stored value unchanged. Changing the slug is
// rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
PutApiDatasetsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDatasetsOriginOrIdResponse, error)
// PutApiDatasetsOriginOrIdWithResponse Update a specific dataset
//
// Updates a dataset. Unless the caller is the Dash0 UI, a dataset that does not exist is
// created instead.
//
// `metadata.labels["dash0.com/version"]` is optional for API tokens, which take the stored
// version. Omitting any spec field leaves its stored value unchanged. Changing the slug is
// rejected with `400`. `apiVersion` is required; a missing or unsupported value returns `400`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/datasets/{originOrId} (the `PutApiDatasetsOriginOrId` operationId).
PutApiDatasetsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiDatasetsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDatasetsOriginOrIdResponse, error)
// GetApiEdgeSettingsWithResponse Retrieve settings for the organization identified by the provided Dash0 auth token
//
// Returns the aggregate settings payload (dataset settings, signal-to-metrics rules,
// telemetry transformation rules, etc.) for the organization that owns the provided
// bearer token. Designed for edge collectors running in customer
// environments that need their full configuration in one request.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/edge/settings (the `GetApiEdgeSettings` operationId).
GetApiEdgeSettingsWithResponse(ctx context.Context, params *GetApiEdgeSettingsParams, reqEditors ...RequestEditorFn) (*GetApiEdgeSettingsResponse, error)
// PostApiImportCheckRuleWithBodyWithResponse Import a check rule
//
// This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management.
// Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state.
// Importing a check rule without an id will create a new check rule and return the created asset with a generated id.
// Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
PostApiImportCheckRuleWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportCheckRuleResponse, error)
// PostApiImportCheckRuleWithResponse Import a check rule
//
// This endpoint allows you **to import an existing check rule** into your organization. It's intended for one-time migrations rather than ongoing check rule management.
// Unlike the standard API, this endpoint supports importing check rules **with full editability**, allowing you to modify check rules that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported check rule state.
// Importing a check rule without an id will create a new check rule and return the created asset with a generated id.
// Importing a check rule with an existing id (metadata>dash0Extensions>id) will override the corresponding check rule definition. In case there is no check rule with the given id a new check rule will be created.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/check-rule (the `PostApiImportCheckRule` operationId).
PostApiImportCheckRuleWithResponse(ctx context.Context, params *PostApiImportCheckRuleParams, body PostApiImportCheckRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportCheckRuleResponse, error)
// PostApiImportCheckRulesWithBodyWithResponse Import multiple check rules in one batch
//
// Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000
// Prometheus alert rules into your organization with **full editability**
// — the resulting rules behave like UI-created assets, not API-managed
// ones, so they can be modified in the Dash0 UI afterwards. Intended for
// one-time migrations rather than ongoing Infrastructure-as-Code
// management.
//
// Per-item id/origin resolution matches `POST /api/import/check-rule`:
// items without an `id` receive a server-generated UUID; items with an
// `id` reuse it. Generated origins are **not** prefixed with `api-` and
// the rules remain UI-editable.
//
// Behaves like the regular bulk endpoint in every other respect: items
// are validated up-front, the whole batch is rejected on any item
// failure, nothing is written on rollback, and the endpoint is not
// idempotent. This endpoint accepts request bodies up to 2 MB (vs. the
// 256 KB default for other endpoints) to accommodate batched payloads of
// up to 1000 rules per request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
PostApiImportCheckRulesWithBodyWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportCheckRulesResponse, error)
// PostApiImportCheckRulesWithResponse Import multiple check rules in one batch
//
// Bulk variant of `/api/import/check-rule`. Atomically imports up to 1000
// Prometheus alert rules into your organization with **full editability**
// — the resulting rules behave like UI-created assets, not API-managed
// ones, so they can be modified in the Dash0 UI afterwards. Intended for
// one-time migrations rather than ongoing Infrastructure-as-Code
// management.
//
// Per-item id/origin resolution matches `POST /api/import/check-rule`:
// items without an `id` receive a server-generated UUID; items with an
// `id` reuse it. Generated origins are **not** prefixed with `api-` and
// the rules remain UI-editable.
//
// Behaves like the regular bulk endpoint in every other respect: items
// are validated up-front, the whole batch is rejected on any item
// failure, nothing is written on rollback, and the endpoint is not
// idempotent. This endpoint accepts request bodies up to 2 MB (vs. the
// 256 KB default for other endpoints) to accommodate batched payloads of
// up to 1000 rules per request.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/check-rules (the `PostApiImportCheckRules` operationId).
PostApiImportCheckRulesWithResponse(ctx context.Context, params *PostApiImportCheckRulesParams, body PostApiImportCheckRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportCheckRulesResponse, error)
// PostApiImportDashboardWithBodyWithResponse Import a dashboard
//
// This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management.
// Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state.
// Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id.
// Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
PostApiImportDashboardWithBodyWithResponse(ctx context.Context, params *PostApiImportDashboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportDashboardResponse, error)
// PostApiImportDashboardWithResponse Import a dashboard
//
// This endpoint allows you **to import an existing dashboard** into your organization. It's intended for one-time migrations rather than ongoing dashboard management.
// Unlike the standard API, this endpoint supports importing dashboards **with full editability**, allowing you to modify dashboards that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported dashboard state.
// Importing a dashboard without an id will create a new dashboard and return the created asset with a generated id.
// Importing a dashboard with an existing id (metadata>dash0Extensions>id) will override the corresponding dashboard definition. In case there is no dashboard with the given id a new dashboard will be created.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/dashboard (the `PostApiImportDashboard` operationId).
PostApiImportDashboardWithResponse(ctx context.Context, params *PostApiImportDashboardParams, body PostApiImportDashboardJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportDashboardResponse, error)
// PutApiImportSignalToMetricsWithBodyWithResponse Bulk upsert signal-to-metrics configs
//
// Atomically upserts up to 500 signal-to-metrics configurations at once. If any item
// fails validation or cannot be written, the entire batch is rejected and no
// configurations are changed.
//
// This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform,
// the operator, CLI scripts). Rules are matched by their `origin` values across
// repeated invocations, making the operation idempotent.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other
// endpoints) to accommodate batched payloads of up to 500 rules per request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
PutApiImportSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiImportSignalToMetricsResponse, error)
// PutApiImportSignalToMetricsWithResponse Bulk upsert signal-to-metrics configs
//
// Atomically upserts up to 500 signal-to-metrics configurations at once. If any item
// fails validation or cannot be written, the entire batch is rejected and no
// configurations are changed.
//
// This endpoint is designed for Infrastructure-as-Code (IaC) workflows (Terraform,
// the operator, CLI scripts). Rules are matched by their `origin` values across
// repeated invocations, making the operation idempotent.
//
// This endpoint accepts request bodies up to 2 MB (vs. the 256 KB default for other
// endpoints) to accommodate batched payloads of up to 500 rules per request.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/import/signal-to-metrics (the `PutApiImportSignalToMetrics` operationId).
PutApiImportSignalToMetricsWithResponse(ctx context.Context, params *PutApiImportSignalToMetricsParams, body PutApiImportSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiImportSignalToMetricsResponse, error)
// PostApiImportSyntheticCheckWithBodyWithResponse Import a synthetic check
//
// This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management.
// Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state.
// Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id.
// Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
PostApiImportSyntheticCheckWithBodyWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportSyntheticCheckResponse, error)
// PostApiImportSyntheticCheckWithResponse Import a synthetic check
//
// This endpoint allows you **to import an existing synthetic check** into your organization. It's intended for one-time migrations rather than ongoing synthetic check management.
// Unlike the standard API, this endpoint supports importing synthetic checks **with full editability**, allowing you to modify synthetic checks that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported synthetic check state.
// Importing a synthetic check without an id will create a new synthetic check and return the created asset with a generated id.
// Importing a synthetic check with an existing id (metadata>dash0Extensions>id) will override the corresponding synthetic check definition. In case there is no synthetic check with the given id a new dashboard will be created.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/synthetic-check (the `PostApiImportSyntheticCheck` operationId).
PostApiImportSyntheticCheckWithResponse(ctx context.Context, params *PostApiImportSyntheticCheckParams, body PostApiImportSyntheticCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportSyntheticCheckResponse, error)
// PostApiImportViewWithBodyWithResponse Import a view
//
// This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management.
// Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state.
// Importing a view without an id will create a new view and return the created asset with a generated id.
// Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
PostApiImportViewWithBodyWithResponse(ctx context.Context, params *PostApiImportViewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportViewResponse, error)
// PostApiImportViewWithResponse Import a view
//
// This endpoint allows you **to import an existing view** into your organization. It's intended for one-time migrations rather than ongoing view management.
// Unlike the standard API, this endpoint supports importing views **with full editability**, allowing you to modify views that were previously created elsewhere.
// **Note:**
// This endpoint is **not recommended for Infrastructure-as-Code (IaC)** workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state.
// Importing a view without an id will create a new view and return the created asset with a generated id.
// Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import/view (the `PostApiImportView` operationId).
PostApiImportViewWithResponse(ctx context.Context, params *PostApiImportViewParams, body PostApiImportViewJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportViewResponse, error)
// PostApiLogsWithBodyWithResponse Returns OTLP logs records
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/logs (the `PostApiLogs` operationId).
PostApiLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLogsResponse, error)
// PostApiLogsWithResponse Returns OTLP logs records
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/logs (the `PostApiLogs` operationId).
PostApiLogsWithResponse(ctx context.Context, body PostApiLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLogsResponse, error)
// PostApiLogsDownloadWithBodyWithResponse Download OTLP log records as a file
//
// Returns the log records matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 log records.** A `limit` above that cap is
// rejected rather than silently clamped: the response is a client error naming the cap.
// When the query matches more than 5000 records, the export carries the first 5000 in
// result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
//
// The records are the same ones `POST /api/logs` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first record
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
PostApiLogsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLogsDownloadResponse, error)
// PostApiLogsDownloadWithResponse Download OTLP log records as a file
//
// Returns the log records matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 log records.** A `limit` above that cap is
// rejected rather than silently clamped: the response is a client error naming the cap.
// When the query matches more than 5000 records, the export carries the first 5000 in
// result-set order. Use the Dash0 CLI (`dash0 logs query`) to export larger volumes.
//
// The records are the same ones `POST /api/logs` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first record
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/logs/download (the `PostApiLogsDownload` operationId).
PostApiLogsDownloadWithResponse(ctx context.Context, body PostApiLogsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLogsDownloadResponse, error)
// GetApiMembersWithResponse Receive a list of organization members
//
// Receive a list of all members in your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/members (the `GetApiMembers` operationId).
GetApiMembersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersResponse, error)
// PostApiMembersWithBodyWithResponse Invite a member to the organization
//
// Sends an invitation to join the organization to the given email address.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/members (the `PostApiMembers` operationId).
PostApiMembersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMembersResponse, error)
// PostApiMembersWithResponse Invite a member to the organization
//
// Sends an invitation to join the organization to the given email address.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/members (the `PostApiMembers` operationId).
PostApiMembersWithResponse(ctx context.Context, body PostApiMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMembersResponse, error)
// GetApiMembersInvitationsWithResponse Receive a list of pending member invitations
//
// Receive all invitations to your organization that have not been accepted yet. Invitees are
// not listed by `GET /api/members` until they accept, so compare against both lists before
// inviting an address again. Requires the admin role.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/members/invitations (the `GetApiMembersInvitations` operationId).
GetApiMembersInvitationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMembersInvitationsResponse, error)
// DeleteApiMembersInvitationsInvitationIDWithResponse Revoke a pending member invitation
//
// Revokes an invitation to your organization that has not been accepted yet, so it can no
// longer be accepted. Requires the admin role.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/members/invitations/{invitationID} (the `DeleteApiMembersInvitationsInvitationID` operationId).
DeleteApiMembersInvitationsInvitationIDWithResponse(ctx context.Context, invitationID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersInvitationsInvitationIDResponse, error)
// DeleteApiMembersMemberIDWithResponse Remove a member from the organization
//
// Removes the given member from the organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/members/{memberID} (the `DeleteApiMembersMemberID` operationId).
DeleteApiMembersMemberIDWithResponse(ctx context.Context, memberID string, reqEditors ...RequestEditorFn) (*DeleteApiMembersMemberIDResponse, error)
// PutApiMembersMemberIDRoleWithBodyWithResponse Change the organization role of a member
//
// Changes the role of a member of your organization.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
PutApiMembersMemberIDRoleWithBodyWithResponse(ctx context.Context, memberID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiMembersMemberIDRoleResponse, error)
// PutApiMembersMemberIDRoleWithResponse Change the organization role of a member
//
// Changes the role of a member of your organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/members/{memberID}/role (the `PutApiMembersMemberIDRole` operationId).
PutApiMembersMemberIDRoleWithResponse(ctx context.Context, memberID string, body PutApiMembersMemberIDRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiMembersMemberIDRoleResponse, error)
// GetApiNotificationChannelsWithResponse List all notification channels for the organization
//
// Returns all notification channels configured for your organization as CRD-enveloped resources.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notification-channels (the `GetApiNotificationChannels` operationId).
GetApiNotificationChannelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsResponse, error)
// PostApiNotificationChannelsWithBodyWithResponse Create a new notification channel
//
// Create a new notification channel for your organization.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
PostApiNotificationChannelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotificationChannelsResponse, error)
// PostApiNotificationChannelsWithResponse Create a new notification channel
//
// Create a new notification channel for your organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notification-channels (the `PostApiNotificationChannels` operationId).
PostApiNotificationChannelsWithResponse(ctx context.Context, body PostApiNotificationChannelsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotificationChannelsResponse, error)
// DeleteApiNotificationChannelsOriginOrIdWithResponse Delete a notification channel
//
// Deletes a specific notification channel identified by its UUID or origin.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/notification-channels/{originOrId} (the `DeleteApiNotificationChannelsOriginOrId` operationId).
DeleteApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiNotificationChannelsOriginOrIdResponse, error)
// GetApiNotificationChannelsOriginOrIdWithResponse Get a specific notification channel
//
// Returns a specific notification channel identified by its UUID or origin.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notification-channels/{originOrId} (the `GetApiNotificationChannelsOriginOrId` operationId).
GetApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiNotificationChannelsOriginOrIdResponse, error)
// PutApiNotificationChannelsOriginOrIdWithBodyWithResponse Update a notification channel
//
// Updates an existing notification channel.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
PutApiNotificationChannelsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiNotificationChannelsOriginOrIdResponse, error)
// PutApiNotificationChannelsOriginOrIdWithResponse Update a notification channel
//
// Updates an existing notification channel.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/notification-channels/{originOrId} (the `PutApiNotificationChannelsOriginOrId` operationId).
PutApiNotificationChannelsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiNotificationChannelsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiNotificationChannelsOriginOrIdResponse, error)
// GetApiPrometheusApiV1FormatQueryWithResponse Evaluates and returns a formatted version of the query
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/format_query (the `GetApiPrometheusApiV1FormatQuery` operationId).
GetApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1FormatQueryParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1FormatQueryResponse, error)
// PostApiPrometheusApiV1FormatQueryWithBodyWithResponse Evaluates and returns a formatted version of the query
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
// PostApiPrometheusApiV1FormatQueryWithResponse Evaluates and returns a formatted version of the query
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
// PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse Evaluates and returns a formatted version of the query
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/format_query (the `PostApiPrometheusApiV1FormatQuery` operationId).
PostApiPrometheusApiV1FormatQueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1FormatQueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1FormatQueryResponse, error)
// GetApiPrometheusApiV1LabelLabelNameValuesWithResponse Returns a list of label values for a provided label name
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/label/{label_name}/values (the `GetApiPrometheusApiV1LabelLabelNameValues` operationId).
GetApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, params *GetApiPrometheusApiV1LabelLabelNameValuesParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1LabelLabelNameValuesResponse, error)
// PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse Returns a list of label values for a provided label name
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValuesWithBodyWithResponse(ctx context.Context, labelName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
// PostApiPrometheusApiV1LabelLabelNameValuesWithResponse Returns a list of label values for a provided label name
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValuesWithResponse(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
// PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse Returns a list of label values for a provided label name
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/label/{label_name}/values (the `PostApiPrometheusApiV1LabelLabelNameValues` operationId).
PostApiPrometheusApiV1LabelLabelNameValuesWithFormdataBodyWithResponse(ctx context.Context, labelName string, body PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
// GetApiPrometheusApiV1LabelsWithResponse Returns a list of label names
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/labels (the `GetApiPrometheusApiV1Labels` operationId).
GetApiPrometheusApiV1LabelsWithResponse(ctx context.Context, params *GetApiPrometheusApiV1LabelsParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1LabelsResponse, error)
// PostApiPrometheusApiV1LabelsWithBodyWithResponse Returns a list of label names
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1LabelsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
// PostApiPrometheusApiV1LabelsWithResponse Returns a list of label names
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1LabelsWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
// PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse Returns a list of label names
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/labels (the `PostApiPrometheusApiV1Labels` operationId).
PostApiPrometheusApiV1LabelsWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1LabelsFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1LabelsResponse, error)
// GetApiPrometheusApiV1MetadataWithResponse Returns metadata about metrics currently scraped from targets
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/metadata (the `GetApiPrometheusApiV1Metadata` operationId).
GetApiPrometheusApiV1MetadataWithResponse(ctx context.Context, params *GetApiPrometheusApiV1MetadataParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1MetadataResponse, error)
// PostApiPrometheusApiV1MetadataWithBodyWithResponse Returns metadata about metrics currently scraped from targets
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1MetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
// PostApiPrometheusApiV1MetadataWithResponse Returns metadata about metrics currently scraped from targets
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1MetadataWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
// PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse Returns metadata about metrics currently scraped from targets
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/metadata (the `PostApiPrometheusApiV1Metadata` operationId).
PostApiPrometheusApiV1MetadataWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1MetadataFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1MetadataResponse, error)
// GetApiPrometheusApiV1QueryWithResponse Evaluates an instant query at a single point in time
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/query (the `GetApiPrometheusApiV1Query` operationId).
GetApiPrometheusApiV1QueryWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1QueryResponse, error)
// PostApiPrometheusApiV1QueryWithBodyWithResponse Evaluates an instant query at a single point in time
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1QueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
// PostApiPrometheusApiV1QueryWithResponse Evaluates an instant query at a single point in time
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1QueryWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
// PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse Evaluates an instant query at a single point in time
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query (the `PostApiPrometheusApiV1Query` operationId).
PostApiPrometheusApiV1QueryWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryResponse, error)
// GetApiPrometheusApiV1QueryRangeWithResponse Evaluates a PromQL expression over a range of time
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/query_range (the `GetApiPrometheusApiV1QueryRange` operationId).
GetApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, params *GetApiPrometheusApiV1QueryRangeParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1QueryRangeResponse, error)
// PostApiPrometheusApiV1QueryRangeWithBodyWithResponse Evaluates a PromQL expression over a range of time
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
// PostApiPrometheusApiV1QueryRangeWithResponse Evaluates a PromQL expression over a range of time
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRangeWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
// PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse Evaluates a PromQL expression over a range of time
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/query_range (the `PostApiPrometheusApiV1QueryRange` operationId).
PostApiPrometheusApiV1QueryRangeWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1QueryRangeFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1QueryRangeResponse, error)
// GetApiPrometheusApiV1SeriesWithResponse Returns the list of time series that match a label selector
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/series (the `GetApiPrometheusApiV1Series` operationId).
GetApiPrometheusApiV1SeriesWithResponse(ctx context.Context, params *GetApiPrometheusApiV1SeriesParams, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1SeriesResponse, error)
// PostApiPrometheusApiV1SeriesWithBodyWithResponse Returns the list of time series that match a label selector
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1SeriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
// PostApiPrometheusApiV1SeriesWithResponse Returns the list of time series that match a label selector
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1SeriesWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
// PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse Returns the list of time series that match a label selector
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/prometheus/api/v1/series (the `PostApiPrometheusApiV1Series` operationId).
PostApiPrometheusApiV1SeriesWithFormdataBodyWithResponse(ctx context.Context, body PostApiPrometheusApiV1SeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostApiPrometheusApiV1SeriesResponse, error)
// GetApiPrometheusApiV1StatusBuildinfoWithResponse Returns various build information properties about the Prometheus-compatible server
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/status/buildinfo (the `GetApiPrometheusApiV1StatusBuildinfo` operationId).
GetApiPrometheusApiV1StatusBuildinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusBuildinfoResponse, error)
// GetApiPrometheusApiV1StatusRuntimeinfoWithResponse Returns various runtime information properties about the Prometheus-compatible server
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/prometheus/api/v1/status/runtimeinfo (the `GetApiPrometheusApiV1StatusRuntimeinfo` operationId).
GetApiPrometheusApiV1StatusRuntimeinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPrometheusApiV1StatusRuntimeinfoResponse, error)
// GetApiRecordingRulesWithResponse Retrieve a list of recording rules
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/recording-rules (the `GetApiRecordingRules` operationId).
GetApiRecordingRulesWithResponse(ctx context.Context, params *GetApiRecordingRulesParams, reqEditors ...RequestEditorFn) (*GetApiRecordingRulesResponse, error)
// PostApiRecordingRulesWithBodyWithResponse Create a recording rule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
PostApiRecordingRulesWithBodyWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRecordingRulesResponse, error)
// PostApiRecordingRulesWithResponse Create a recording rule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/recording-rules (the `PostApiRecordingRules` operationId).
PostApiRecordingRulesWithResponse(ctx context.Context, params *PostApiRecordingRulesParams, body PostApiRecordingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRecordingRulesResponse, error)
// DeleteApiRecordingRulesOriginOrIdWithResponse Delete a specific recording rule
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/recording-rules/{originOrId} (the `DeleteApiRecordingRulesOriginOrId` operationId).
DeleteApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiRecordingRulesOriginOrIdResponse, error)
// GetApiRecordingRulesOriginOrIdWithResponse Retrieve the latest version of a specific recording rule
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/recording-rules/{originOrId} (the `GetApiRecordingRulesOriginOrId` operationId).
GetApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiRecordingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiRecordingRulesOriginOrIdResponse, error)
// PutApiRecordingRulesOriginOrIdWithBodyWithResponse Update a specific recording rule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
PutApiRecordingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiRecordingRulesOriginOrIdResponse, error)
// PutApiRecordingRulesOriginOrIdWithResponse Update a specific recording rule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/recording-rules/{originOrId} (the `PutApiRecordingRulesOriginOrId` operationId).
PutApiRecordingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiRecordingRulesOriginOrIdParams, body PutApiRecordingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiRecordingRulesOriginOrIdResponse, error)
// GetApiSamplingRulesWithResponse List all sampling rules for the organization
//
// Returns all sampling rules configured for your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/sampling-rules (the `GetApiSamplingRules` operationId).
GetApiSamplingRulesWithResponse(ctx context.Context, params *GetApiSamplingRulesParams, reqEditors ...RequestEditorFn) (*GetApiSamplingRulesResponse, error)
// PostApiSamplingRulesWithBodyWithResponse Create a new sampling rule
//
// Create a new sampling rule for your organization. If you set
// `metadata.labels["dash0.com/origin"]`, it must be unique within the organization,
// across all datasets. See "Resource origins" in the introduction. A request with a
// duplicate origin returns 400. To run the same rule in several datasets, put the
// dataset in the origin.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
PostApiSamplingRulesWithBodyWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSamplingRulesResponse, error)
// PostApiSamplingRulesWithResponse Create a new sampling rule
//
// Create a new sampling rule for your organization. If you set
// `metadata.labels["dash0.com/origin"]`, it must be unique within the organization,
// across all datasets. See "Resource origins" in the introduction. A request with a
// duplicate origin returns 400. To run the same rule in several datasets, put the
// dataset in the origin.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/sampling-rules (the `PostApiSamplingRules` operationId).
PostApiSamplingRulesWithResponse(ctx context.Context, params *PostApiSamplingRulesParams, body PostApiSamplingRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSamplingRulesResponse, error)
// DeleteApiSamplingRulesOriginOrIdWithResponse Delete a sampling rule by origin or ID
//
// Deletes a specific sampling rule identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/sampling-rules/{originOrId} (the `DeleteApiSamplingRulesOriginOrId` operationId).
DeleteApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSamplingRulesOriginOrIdResponse, error)
// GetApiSamplingRulesOriginOrIdWithResponse Get a specific sampling rule by origin or ID
//
// Returns a specific sampling rule identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/sampling-rules/{originOrId} (the `GetApiSamplingRulesOriginOrId` operationId).
GetApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSamplingRulesOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSamplingRulesOriginOrIdResponse, error)
// PutApiSamplingRulesOriginOrIdWithBodyWithResponse Update or create a sampling rule by origin or ID
//
// Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
PutApiSamplingRulesOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSamplingRulesOriginOrIdResponse, error)
// PutApiSamplingRulesOriginOrIdWithResponse Update or create a sampling rule by origin or ID
//
// Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/sampling-rules/{originOrId} (the `PutApiSamplingRulesOriginOrId` operationId).
PutApiSamplingRulesOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSamplingRulesOriginOrIdParams, body PutApiSamplingRulesOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSamplingRulesOriginOrIdResponse, error)
// GetApiSignalToMetricsWithResponse List all signal-to-metrics configs for the organization
//
// Returns all signal-to-metrics configurations for your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/signal-to-metrics (the `GetApiSignalToMetrics` operationId).
GetApiSignalToMetricsWithResponse(ctx context.Context, params *GetApiSignalToMetricsParams, reqEditors ...RequestEditorFn) (*GetApiSignalToMetricsResponse, error)
// PostApiSignalToMetricsWithBodyWithResponse Create a new signal-to-metrics config
//
// Create a new signal-to-metrics configuration for your organization.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
PostApiSignalToMetricsWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsResponse, error)
// PostApiSignalToMetricsWithResponse Create a new signal-to-metrics config
//
// Create a new signal-to-metrics configuration for your organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signal-to-metrics (the `PostApiSignalToMetrics` operationId).
PostApiSignalToMetricsWithResponse(ctx context.Context, params *PostApiSignalToMetricsParams, body PostApiSignalToMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsResponse, error)
// PostApiSignalToMetricsTestWithBodyWithResponse Test a signal-to-metrics config
//
// Validates a signal-to-metrics definition and simulates its match filter
// against real signals in the selected dataset over a recent time window.
// Returns the number of matching signals on success. A 4xx error is returned
// when the definition fails validation or the request is otherwise invalid.
// Nothing is persisted.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
PostApiSignalToMetricsTestWithBodyWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsTestResponse, error)
// PostApiSignalToMetricsTestWithResponse Test a signal-to-metrics config
//
// Validates a signal-to-metrics definition and simulates its match filter
// against real signals in the selected dataset over a recent time window.
// Returns the number of matching signals on success. A 4xx error is returned
// when the definition fails validation or the request is otherwise invalid.
// Nothing is persisted.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signal-to-metrics/test (the `PostApiSignalToMetricsTest` operationId).
PostApiSignalToMetricsTestWithResponse(ctx context.Context, params *PostApiSignalToMetricsTestParams, body PostApiSignalToMetricsTestJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignalToMetricsTestResponse, error)
// DeleteApiSignalToMetricsOriginOrIdWithResponse Delete a signal-to-metrics config by origin or ID
//
// Deletes a specific signal-to-metrics configuration identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/signal-to-metrics/{originOrId} (the `DeleteApiSignalToMetricsOriginOrId` operationId).
DeleteApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSignalToMetricsOriginOrIdResponse, error)
// GetApiSignalToMetricsOriginOrIdWithResponse Get a specific signal-to-metrics config by origin or ID
//
// Returns a specific signal-to-metrics configuration identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/signal-to-metrics/{originOrId} (the `GetApiSignalToMetricsOriginOrId` operationId).
GetApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSignalToMetricsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSignalToMetricsOriginOrIdResponse, error)
// PutApiSignalToMetricsOriginOrIdWithBodyWithResponse Update or create a signal-to-metrics config by origin or ID
//
// Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
PutApiSignalToMetricsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSignalToMetricsOriginOrIdResponse, error)
// PutApiSignalToMetricsOriginOrIdWithResponse Update or create a signal-to-metrics config by origin or ID
//
// Updates an existing signal-to-metrics configuration or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/signal-to-metrics/{originOrId} (the `PutApiSignalToMetricsOriginOrId` operationId).
PutApiSignalToMetricsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSignalToMetricsOriginOrIdParams, body PutApiSignalToMetricsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSignalToMetricsOriginOrIdResponse, error)
// GetApiSlosWithResponse Retrieve a list of SLOs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/slos (the `GetApiSlos` operationId).
GetApiSlosWithResponse(ctx context.Context, params *GetApiSlosParams, reqEditors ...RequestEditorFn) (*GetApiSlosResponse, error)
// PostApiSlosWithBodyWithResponse Create an SLO
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/slos (the `PostApiSlos` operationId).
PostApiSlosWithBodyWithResponse(ctx context.Context, params *PostApiSlosParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSlosResponse, error)
// PostApiSlosWithResponse Create an SLO
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/slos (the `PostApiSlos` operationId).
PostApiSlosWithResponse(ctx context.Context, params *PostApiSlosParams, body PostApiSlosJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSlosResponse, error)
// DeleteApiSlosOriginOrIdWithResponse Delete a specific SLO
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/slos/{originOrId} (the `DeleteApiSlosOriginOrId` operationId).
DeleteApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSlosOriginOrIdResponse, error)
// GetApiSlosOriginOrIdWithResponse Retrieve the latest version of a specific SLO
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/slos/{originOrId} (the `GetApiSlosOriginOrId` operationId).
GetApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSlosOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSlosOriginOrIdResponse, error)
// PutApiSlosOriginOrIdWithBodyWithResponse Update a specific SLO
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
PutApiSlosOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSlosOriginOrIdResponse, error)
// PutApiSlosOriginOrIdWithResponse Update a specific SLO
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/slos/{originOrId} (the `PutApiSlosOriginOrId` operationId).
PutApiSlosOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSlosOriginOrIdParams, body PutApiSlosOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSlosOriginOrIdResponse, error)
// PostApiSlosOriginOrIdResetWithResponse Restart the error budget window of a specific SLO
//
// Starts a new error budget window for the SLO, beginning now. The definition is left
// unchanged, and the measurement starts from scratch: everything recorded before the reset,
// including any incident, stops counting against the objective.
//
// The SLO records a new series from this point on, so the budget reported right after a reset
// covers only the elapsed part of the time window and widens as the window fills up again.
// Data recorded by the previous series is kept.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/slos/{originOrId}/reset (the `PostApiSlosOriginOrIdReset` operationId).
PostApiSlosOriginOrIdResetWithResponse(ctx context.Context, originOrId string, params *PostApiSlosOriginOrIdResetParams, reqEditors ...RequestEditorFn) (*PostApiSlosOriginOrIdResetResponse, error)
// GetApiSpamFiltersWithResponse List all spam filters for the organization
//
// Returns all spam filters configured for your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/spam-filters (the `GetApiSpamFilters` operationId).
GetApiSpamFiltersWithResponse(ctx context.Context, params *GetApiSpamFiltersParams, reqEditors ...RequestEditorFn) (*GetApiSpamFiltersResponse, error)
// PostApiSpamFiltersWithBodyWithResponse Create a new spam filter
//
// Create a new spam filter for your organization. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within
// the organization and dataset. A request with a duplicate origin returns 400.
// If no origin is provided, the server auto-generates one (`api-<uuid>`).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
PostApiSpamFiltersWithBodyWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpamFiltersResponse, error)
// PostApiSpamFiltersWithResponse Create a new spam filter
//
// Create a new spam filter for your organization. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// If `metadata.labels["dash0.com/origin"]` is provided, it must be unique within
// the organization and dataset. A request with a duplicate origin returns 400.
// If no origin is provided, the server auto-generates one (`api-<uuid>`).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spam-filters (the `PostApiSpamFilters` operationId).
PostApiSpamFiltersWithResponse(ctx context.Context, params *PostApiSpamFiltersParams, body PostApiSpamFiltersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpamFiltersResponse, error)
// DeleteApiSpamFiltersOriginOrIdWithResponse Delete a spam filter by origin or ID
//
// Deletes a specific spam filter identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/spam-filters/{originOrId} (the `DeleteApiSpamFiltersOriginOrId` operationId).
DeleteApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSpamFiltersOriginOrIdResponse, error)
// GetApiSpamFiltersOriginOrIdWithResponse Get a specific spam filter by origin or ID
//
// Returns a specific spam filter identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/spam-filters/{originOrId} (the `GetApiSpamFiltersOriginOrId` operationId).
GetApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSpamFiltersOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSpamFiltersOriginOrIdResponse, error)
// PutApiSpamFiltersOriginOrIdWithBodyWithResponse Update or create a spam filter by origin or ID
//
// Updates an existing spam filter or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
PutApiSpamFiltersOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSpamFiltersOriginOrIdResponse, error)
// PutApiSpamFiltersOriginOrIdWithResponse Update or create a spam filter by origin or ID
//
// Updates an existing spam filter or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows. Provide either structured `filter`
// criteria or a raw OTTL `condition` in the spec, but not both.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/spam-filters/{originOrId} (the `PutApiSpamFiltersOriginOrId` operationId).
PutApiSpamFiltersOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSpamFiltersOriginOrIdParams, body PutApiSpamFiltersOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSpamFiltersOriginOrIdResponse, error)
// PostApiSpansWithBodyWithResponse Returns OTLP spans
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spans (the `PostApiSpans` operationId).
PostApiSpansWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpansResponse, error)
// PostApiSpansWithResponse Returns OTLP spans
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spans (the `PostApiSpans` operationId).
PostApiSpansWithResponse(ctx context.Context, body PostApiSpansJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpansResponse, error)
// PostApiSpansDownloadWithBodyWithResponse Download OTLP spans as a file
//
// Returns the spans matching the given query as a downloadable file in the requested
// format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 spans.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 spans, the export carries the first 5000 in result-set
// order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
//
// The spans are the same ones `POST /api/spans` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume. This request accordingly takes no
// `sampling`, and one sent anyway is ignored.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first span
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
PostApiSpansDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSpansDownloadResponse, error)
// PostApiSpansDownloadWithResponse Download OTLP spans as a file
//
// Returns the spans matching the given query as a downloadable file in the requested
// format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 spans.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 spans, the export carries the first 5000 in result-set
// order. Use the Dash0 CLI (`dash0 spans query`) to export larger volumes.
//
// The spans are the same ones `POST /api/spans` returns for the same query, except that
// adaptive sampling is always disabled for exports: an exported file is never a sample,
// whatever the query and whatever the data volume. This request accordingly takes no
// `sampling`, and one sent anyway is ignored.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first span
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/spans/download (the `PostApiSpansDownload` operationId).
PostApiSpansDownloadWithResponse(ctx context.Context, body PostApiSpansDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSpansDownloadResponse, error)
// PostApiSqlWithBodyWithResponse Execute a SQL query and return results as JSON
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/sql (the `PostApiSql` operationId).
PostApiSqlWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSqlResponse, error)
// PostApiSqlWithResponse Execute a SQL query and return results as JSON
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/sql (the `PostApiSql` operationId).
PostApiSqlWithResponse(ctx context.Context, body PostApiSqlJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSqlResponse, error)
// GetApiSyntheticChecksWithResponse Receive a list of synthetic checks
//
// Receive a list of your organization synthetic checks.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/synthetic-checks (the `GetApiSyntheticChecks` operationId).
GetApiSyntheticChecksWithResponse(ctx context.Context, params *GetApiSyntheticChecksParams, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksResponse, error)
// PostApiSyntheticChecksWithBodyWithResponse Create a synthetic check
//
// Create a synthetic check.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
PostApiSyntheticChecksWithBodyWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksResponse, error)
// PostApiSyntheticChecksWithResponse Create a synthetic check
//
// Create a synthetic check.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/synthetic-checks (the `PostApiSyntheticChecks` operationId).
PostApiSyntheticChecksWithResponse(ctx context.Context, params *PostApiSyntheticChecksParams, body PostApiSyntheticChecksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksResponse, error)
// GetApiSyntheticChecksLocationsWithResponse Retrieve the synthetic check locations available to the organization
//
// Returns Dash0 public regions and the organization's private synthetic locations as one
// list. `kind` distinguishes them.
//
// The `id` of an entry is what a synthetic check definition stores to target it: the region
// identifier for a public region, and the Dash0-assigned opaque id for a private location. A
// check may also target a private location by its `locationId`, which names one location for
// good. A value equal to a public region identifier always means the region; target a private
// location with such a `locationId` by its `id`.
//
// Deleted private locations are omitted.
//
// Private locations carry `health`, derived from the workers currently connected to them.
// `health.status` is `unknown` when Dash0 cannot determine the connection state; that is
// distinct from `offline`, which reports that no worker is connected.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/synthetic-checks/locations (the `GetApiSyntheticChecksLocations` operationId).
GetApiSyntheticChecksLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksLocationsResponse, error)
// PostApiSyntheticChecksTestWithBodyWithResponse Trigger a test run of a synthetic check
//
// Triggers an immediate test execution of a synthetic check.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
PostApiSyntheticChecksTestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksTestResponse, error)
// PostApiSyntheticChecksTestWithResponse Trigger a test run of a synthetic check
//
// Triggers an immediate test execution of a synthetic check.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/synthetic-checks/test (the `PostApiSyntheticChecksTest` operationId).
PostApiSyntheticChecksTestWithResponse(ctx context.Context, body PostApiSyntheticChecksTestJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSyntheticChecksTestResponse, error)
// DeleteApiSyntheticChecksOriginOrIdWithResponse Delete a specific synthetic check by origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/synthetic-checks/{originOrId} (the `DeleteApiSyntheticChecksOriginOrId` operationId).
DeleteApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiSyntheticChecksOriginOrIdResponse, error)
// GetApiSyntheticChecksOriginOrIdWithResponse Receive a specific synthetic check by its origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/synthetic-checks/{originOrId} (the `GetApiSyntheticChecksOriginOrId` operationId).
GetApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiSyntheticChecksOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiSyntheticChecksOriginOrIdResponse, error)
// PutApiSyntheticChecksOriginOrIdWithBodyWithResponse Update or insert a specific synthetic check by its origin or id
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
PutApiSyntheticChecksOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiSyntheticChecksOriginOrIdResponse, error)
// PutApiSyntheticChecksOriginOrIdWithResponse Update or insert a specific synthetic check by its origin or id
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/synthetic-checks/{originOrId} (the `PutApiSyntheticChecksOriginOrId` operationId).
PutApiSyntheticChecksOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiSyntheticChecksOriginOrIdParams, body PutApiSyntheticChecksOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiSyntheticChecksOriginOrIdResponse, error)
// GetApiTeamsWithResponse Receive a list of teams
//
// Receive a list of your organization teams.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/teams (the `GetApiTeams` operationId).
GetApiTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTeamsResponse, error)
// PostApiTeamsWithBodyWithResponse Create a new team
//
// Create a new team in the organization.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/teams (the `PostApiTeams` operationId).
PostApiTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTeamsResponse, error)
// PostApiTeamsWithResponse Create a new team
//
// Create a new team in the organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/teams (the `PostApiTeams` operationId).
PostApiTeamsWithResponse(ctx context.Context, body PostApiTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTeamsResponse, error)
// DeleteApiTeamsOriginOrIdWithResponse Delete a specific team by its origin or id
//
// Delete a specific team by its **origin** or **id**.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/teams/{originOrId} (the `DeleteApiTeamsOriginOrId` operationId).
DeleteApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*DeleteApiTeamsOriginOrIdResponse, error)
// GetApiTeamsOriginOrIdWithResponse Receive a specific team by its origin or id
//
// Receive a specific team by its **origin** or **id**.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/teams/{originOrId} (the `GetApiTeamsOriginOrId` operationId).
GetApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, reqEditors ...RequestEditorFn) (*GetApiTeamsOriginOrIdResponse, error)
// PutApiTeamsOriginOrIdWithBodyWithResponse Update or insert a specific team by its origin or id
//
// Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
//
// `spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
PutApiTeamsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdResponse, error)
// PutApiTeamsOriginOrIdWithResponse Update or insert a specific team by its origin or id
//
// Update or insert a specific team by its **origin** or **id**. In case a team with the given **origin** or **id** is found it will be updated. If there is no team found a new team will be created and the given `originOrId` is used as **origin**.
//
// `spec.display` fully replaces the existing display values. `spec.members` is reconciled declaratively — the resulting membership is exactly the set given in the request body (adds and removes are computed against the current membership).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/teams/{originOrId} (the `PutApiTeamsOriginOrId` operationId).
PutApiTeamsOriginOrIdWithResponse(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdResponse, error)
// PutApiTeamsOriginOrIdDisplayWithBodyWithResponse Update a specific team display option
//
// Update the display name, description, and color of a team.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
PutApiTeamsOriginOrIdDisplayWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdDisplayResponse, error)
// PutApiTeamsOriginOrIdDisplayWithResponse Update a specific team display option
//
// Update the display name, description, and color of a team.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/teams/{originOrId}/display (the `PutApiTeamsOriginOrIdDisplay` operationId).
PutApiTeamsOriginOrIdDisplayWithResponse(ctx context.Context, originOrId string, body PutApiTeamsOriginOrIdDisplayJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTeamsOriginOrIdDisplayResponse, error)
// PostApiTeamsOriginOrIdMembersWithBodyWithResponse Add members to a team
//
// Adds the given members to the team.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
PostApiTeamsOriginOrIdMembersWithBodyWithResponse(ctx context.Context, originOrId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTeamsOriginOrIdMembersResponse, error)
// PostApiTeamsOriginOrIdMembersWithResponse Add members to a team
//
// Adds the given members to the team.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/teams/{originOrId}/members (the `PostApiTeamsOriginOrIdMembers` operationId).
PostApiTeamsOriginOrIdMembersWithResponse(ctx context.Context, originOrId string, body PostApiTeamsOriginOrIdMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTeamsOriginOrIdMembersResponse, error)
// DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse Remove a member from a team
//
// Removes the given member from the team.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/teams/{originOrId}/members/{memberID} (the `DeleteApiTeamsOriginOrIdMembersMemberID` operationId).
DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse(ctx context.Context, originOrId string, memberID string, reqEditors ...RequestEditorFn) (*DeleteApiTeamsOriginOrIdMembersMemberIDResponse, error)
// GetApiTimeSeriesAggregationsWithResponse List all time series aggregations for the organization
//
// Returns all time series aggregation rules configured for your organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/time-series-aggregations (the `GetApiTimeSeriesAggregations` operationId).
GetApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *GetApiTimeSeriesAggregationsParams, reqEditors ...RequestEditorFn) (*GetApiTimeSeriesAggregationsResponse, error)
// PostApiTimeSeriesAggregationsWithBodyWithResponse Create a new time series aggregation
//
// Create a new time series aggregation rule for your organization. If
// `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the
// organization and dataset; a request with a duplicate origin returns 400. If no
// origin is provided, the server auto-generates one.
//
// The origin must not be a UUID, because origin-or-id lookups would then be
// ambiguous; such a request returns 400. To choose the rule's ID, PUT to
// `/api/time-series-aggregations/{uuid}` and leave the origin unset.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
PostApiTimeSeriesAggregationsWithBodyWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTimeSeriesAggregationsResponse, error)
// PostApiTimeSeriesAggregationsWithResponse Create a new time series aggregation
//
// Create a new time series aggregation rule for your organization. If
// `metadata.labels["dash0.com/origin"]` is provided, it must be unique within the
// organization and dataset; a request with a duplicate origin returns 400. If no
// origin is provided, the server auto-generates one.
//
// The origin must not be a UUID, because origin-or-id lookups would then be
// ambiguous; such a request returns 400. To choose the rule's ID, PUT to
// `/api/time-series-aggregations/{uuid}` and leave the origin unset.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/time-series-aggregations (the `PostApiTimeSeriesAggregations` operationId).
PostApiTimeSeriesAggregationsWithResponse(ctx context.Context, params *PostApiTimeSeriesAggregationsParams, body PostApiTimeSeriesAggregationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTimeSeriesAggregationsResponse, error)
// DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse Delete a time series aggregation by origin or ID
//
// Deletes a specific time series aggregation identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/time-series-aggregations/{originOrId} (the `DeleteApiTimeSeriesAggregationsOriginOrId` operationId).
DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiTimeSeriesAggregationsOriginOrIdResponse, error)
// GetApiTimeSeriesAggregationsOriginOrIdWithResponse Get a specific time series aggregation by origin or ID
//
// Returns a specific time series aggregation identified by its origin label or UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/time-series-aggregations/{originOrId} (the `GetApiTimeSeriesAggregationsOriginOrId` operationId).
GetApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiTimeSeriesAggregationsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiTimeSeriesAggregationsOriginOrIdResponse, error)
// PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse Update or create a time series aggregation by origin or ID
//
// Updates an existing time series aggregation or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows.
//
// When no rule matches and `originOrId` is a UUID, the rule is created with that UUID
// as its ID and no origin, so it stays editable in the UI. Any other value becomes the
// rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
PutApiTimeSeriesAggregationsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
// PutApiTimeSeriesAggregationsOriginOrIdWithResponse Update or create a time series aggregation by origin or ID
//
// Updates an existing time series aggregation or creates a new one if it doesn't exist.
// Useful for Infrastructure-as-Code workflows.
//
// When no rule matches and `originOrId` is a UUID, the rule is created with that UUID
// as its ID and no origin, so it stays editable in the UI. Any other value becomes the
// rule's origin. A non-canonical UUID spelling is stored in its canonical dashed form.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/time-series-aggregations/{originOrId} (the `PutApiTimeSeriesAggregationsOriginOrId` operationId).
PutApiTimeSeriesAggregationsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiTimeSeriesAggregationsOriginOrIdParams, body PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
// PostApiTopologyWithBodyWithResponse Returns the service topology with RED statistics on services and connections
//
// Returns the service topology for a time range: one node per
// `service.namespace` + `service.name` pair, and one edge per observed
// direction of calls between two nodes. Nodes and edges each carry the
// RED statistics selected via `nodeStatistics` and `edgeStatistics`.
//
// Edges join to nodes by service identity, not by an opaque id. Peers
// that never reported telemetry of their own — databases, brokers,
// third-party APIs — appear as `inferred` nodes without statistics, so
// the graph stays whole.
//
// Not paginated, and the grouping is not client-selectable; see
// `GetTopologyRequest`. Edge statistics come from a different metric
// than node statistics and are not comparable to them; see
// `TopologyEdgeStatistics`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/topology (the `PostApiTopology` operationId).
PostApiTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTopologyResponse, error)
// PostApiTopologyWithResponse Returns the service topology with RED statistics on services and connections
//
// Returns the service topology for a time range: one node per
// `service.namespace` + `service.name` pair, and one edge per observed
// direction of calls between two nodes. Nodes and edges each carry the
// RED statistics selected via `nodeStatistics` and `edgeStatistics`.
//
// Edges join to nodes by service identity, not by an opaque id. Peers
// that never reported telemetry of their own — databases, brokers,
// third-party APIs — appear as `inferred` nodes without statistics, so
// the graph stays whole.
//
// Not paginated, and the grouping is not client-selectable; see
// `GetTopologyRequest`. Edge statistics come from a different metric
// than node statistics and are not comparable to them; see
// `TopologyEdgeStatistics`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/topology (the `PostApiTopology` operationId).
PostApiTopologyWithResponse(ctx context.Context, body PostApiTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTopologyResponse, error)
// PostApiTraceDetailsWithBodyWithResponse Returns the OTLP spans and log records (if any) associated with the trace ID
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
PostApiTraceDetailsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTraceDetailsResponse, error)
// PostApiTraceDetailsWithResponse Returns the OTLP spans and log records (if any) associated with the trace ID
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/trace/details (the `PostApiTraceDetails` operationId).
PostApiTraceDetailsWithResponse(ctx context.Context, body PostApiTraceDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTraceDetailsResponse, error)
// PostApiTraceIdsWithBodyWithResponse Returns unique trace IDs matching the given filters
//
// Lightweight endpoint that returns only the unique trace IDs of traces containing
// at least one span matching the request filters. Useful for two-step workflows: first
// find matching trace IDs, then fetch full trace details via
// `POST /api/trace/details`. Significantly faster and lighter-weight than
// `POST /api/spans` when only trace IDs are needed.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
PostApiTraceIdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTraceIdsResponse, error)
// PostApiTraceIdsWithResponse Returns unique trace IDs matching the given filters
//
// Lightweight endpoint that returns only the unique trace IDs of traces containing
// at least one span matching the request filters. Useful for two-step workflows: first
// find matching trace IDs, then fetch full trace details via
// `POST /api/trace/details`. Significantly faster and lighter-weight than
// `POST /api/spans` when only trace IDs are needed.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/trace/ids (the `PostApiTraceIds` operationId).
PostApiTraceIdsWithResponse(ctx context.Context, body PostApiTraceIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTraceIdsResponse, error)
// GetApiViewsWithResponse Receive a list of views
//
// Receive a list of your organization views.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/views (the `GetApiViews` operationId).
GetApiViewsWithResponse(ctx context.Context, params *GetApiViewsParams, reqEditors ...RequestEditorFn) (*GetApiViewsResponse, error)
// PostApiViewsWithBodyWithResponse Create a view
//
// Create a view.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/views (the `PostApiViews` operationId).
PostApiViewsWithBodyWithResponse(ctx context.Context, params *PostApiViewsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiViewsResponse, error)
// PostApiViewsWithResponse Create a view
//
// Create a view.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/views (the `PostApiViews` operationId).
PostApiViewsWithResponse(ctx context.Context, params *PostApiViewsParams, body PostApiViewsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiViewsResponse, error)
// DeleteApiViewsOriginOrIdWithResponse Delete a specific view by origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/views/{originOrId} (the `DeleteApiViewsOriginOrId` operationId).
DeleteApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *DeleteApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*DeleteApiViewsOriginOrIdResponse, error)
// GetApiViewsOriginOrIdWithResponse Receive a specific view by its origin or id
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/views/{originOrId} (the `GetApiViewsOriginOrId` operationId).
GetApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *GetApiViewsOriginOrIdParams, reqEditors ...RequestEditorFn) (*GetApiViewsOriginOrIdResponse, error)
// PutApiViewsOriginOrIdWithBodyWithResponse Update or insert a specific view by its origin or id
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
PutApiViewsOriginOrIdWithBodyWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiViewsOriginOrIdResponse, error)
// PutApiViewsOriginOrIdWithResponse Update or insert a specific view by its origin or id
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/views/{originOrId} (the `PutApiViewsOriginOrId` operationId).
PutApiViewsOriginOrIdWithResponse(ctx context.Context, originOrId string, params *PutApiViewsOriginOrIdParams, body PutApiViewsOriginOrIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiViewsOriginOrIdResponse, error)
// PostApiWebEventsDownloadWithBodyWithResponse Download web events as a file
//
// Returns the web events matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 web events.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 events, the export carries the first 5000 in result-set
// order; there is no CLI equivalent for web events, so a larger export has to be taken
// as several narrower queries.
//
// Web-event retrieval does not sample, so no sampling has to be disabled for the file to
// be the query's whole result set.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first event
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
PostApiWebEventsDownloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiWebEventsDownloadResponse, error)
// PostApiWebEventsDownloadWithResponse Download web events as a file
//
// Returns the web events matching the given query as a downloadable file in the
// requested format (`txt`, `ndjson`, `yaml` or `csv`).
//
// **A single export is capped at 5000 web events.** A `limit` above that cap is rejected
// rather than silently clamped: the response is a client error naming the cap. When the
// query matches more than 5000 events, the export carries the first 5000 in result-set
// order; there is no CLI equivalent for web events, so a larger export has to be taken
// as several narrower queries.
//
// Web-event retrieval does not sample, so no sampling has to be disabled for the file to
// be the query's whole result set.
//
// The response is streamed as pages are retrieved and therefore carries no
// `Content-Length`. Because the response headers are committed before the first event
// is written, a failure partway through cannot be reported as a status code — it
// terminates the transfer instead. Clients MUST confirm the body was received completely
// before treating the download as a successful export.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/web-events/download (the `PostApiWebEventsDownload` operationId).
PostApiWebEventsDownloadWithResponse(ctx context.Context, body PostApiWebEventsDownloadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiWebEventsDownloadResponse, error)
// GetOauthAuthorizeWithResponse OAuth 2.0 Authorization Endpoint (Unauthenticated)
//
// Unauthenticated authorization endpoint (RFC 6749 section 3.1). Validates the client,
// redirect URI, PKCE parameters, and scopes. Creates a pending authorization request
// and always redirects to the consent UI.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /oauth/authorize (the `GetOauthAuthorize` operationId).
GetOauthAuthorizeWithResponse(ctx context.Context, params *GetOauthAuthorizeParams, reqEditors ...RequestEditorFn) (*GetOauthAuthorizeResponse, error)
// PostOauthRegisterWithBodyWithResponse Register a new OAuth client
//
// Dynamic Client Registration endpoint (RFC 7591). Allows clients to register
// themselves and obtain a client_id for use in the authorization code flow.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
PostOauthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthRegisterResponse, error)
// PostOauthRegisterWithResponse Register a new OAuth client
//
// Dynamic Client Registration endpoint (RFC 7591). Allows clients to register
// themselves and obtain a client_id for use in the authorization code flow.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/register (the `PostOauthRegister` operationId).
PostOauthRegisterWithResponse(ctx context.Context, body PostOauthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOauthRegisterResponse, error)
// PostOauthRevokeWithBodyWithResponse OAuth 2.0 Token Revocation
//
// Token revocation endpoint (RFC 7009). Revokes an access or refresh token.
// The server responds with HTTP 200 regardless of whether the token was valid,
// to prevent token scanning attacks.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
PostOauthRevokeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthRevokeResponse, error)
// PostOauthRevokeWithFormdataBodyWithResponse OAuth 2.0 Token Revocation
//
// Token revocation endpoint (RFC 7009). Revokes an access or refresh token.
// The server responds with HTTP 200 regardless of whether the token was valid,
// to prevent token scanning attacks.
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/revoke (the `PostOauthRevoke` operationId).
PostOauthRevokeWithFormdataBodyWithResponse(ctx context.Context, body PostOauthRevokeFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauthRevokeResponse, error)
// PostOauthTokenWithBodyWithResponse OAuth 2.0 Token Endpoint
//
// Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for
// access and refresh tokens (authorization_code grant), or exchanges a refresh
// token for new tokens (refresh_token grant).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
PostOauthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOauthTokenResponse, error)
// PostOauthTokenWithFormdataBodyWithResponse OAuth 2.0 Token Endpoint
//
// Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for
// access and refresh tokens (authorization_code grant), or exchanges a refresh
// token for new tokens (refresh_token grant).
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /oauth/token (the `PostOauthToken` operationId).
PostOauthTokenWithFormdataBodyWithResponse(ctx context.Context, body PostOauthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostOauthTokenResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CrdSource ¶ added in v1.12.0
type CrdSource string
CrdSource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
- `ui`: created interactively in the Dash0 UI.
- `terraform`: managed via the Dash0 Terraform provider.
- `operator`: managed via the Dash0 Kubernetes operator.
- `dash0-cli`: managed via the Dash0 CLI.
- `platform`: owned by Dash0 rather than by anyone in your organization. Covers both resources Dash0 generates from another resource you own (the recording rules an SLO produces) and resources Dash0 ships with the product (the built-in views).
- `identity-provider`: a team whose membership Dash0 keeps in sync with a directory group from the organization's identity provider. Membership edits made by hand revert on the next reconcile.
- `api`: created directly through the API, and the fallback for any origin whose prefix is not recognized.
New values may be added over time. Treat an unrecognized value as `api` rather than rejecting the response.
type Cursor ¶
type Cursor = string
Cursor The cursor to another set of results. The value of this field is opaque to the client and may be used as a parameter to the next request to get the another set of results. Cursors do not implement any ordering.
type CursorPagination ¶
type CursorPagination struct {
// Cursor The cursor to another set of results. The value of this field is opaque to the
// client and may be used as a parameter to the next request to get the another set of results.
// Cursors do not implement any ordering.
Cursor *Cursor `json:"cursor,omitempty"`
// Limit The maximum number of results to return. If not set, there is a default limit to the number of results returned.
Limit *int64 `json:"limit,omitempty"`
}
CursorPagination Cursor pagination is a technique for paging through a result set using a cursor. It is similar to offset pagination except that the cursor is an opaque value that encodes the position within the result set. This allows for fetching the next page of results from the current position without having to skip over a potentially large number of rows.
It is also more resilient against late-arriving data which otherwise would cause issues with offset pagination. For example, if a row is inserted between two pages of results then the second page would contain a duplicate row and the third page would be missing.
type CustomSkillAction ¶ added in v1.29.0
type CustomSkillAction string
CustomSkillAction defines model for CustomSkillAction.
const ( CustomSkillDelete CustomSkillAction = "custom_skill:delete" CustomSkillRead CustomSkillAction = "custom_skill:read" CustomSkillWrite CustomSkillAction = "custom_skill:write" )
Defines values for CustomSkillAction.
func (CustomSkillAction) Valid ¶ added in v1.29.0
func (e CustomSkillAction) Valid() bool
Valid indicates whether the value is a known member of the CustomSkillAction enum.
type D0QLWarnings ¶ added in v1.6.0
type D0QLWarnings = []string
D0QLWarnings defines model for D0QLWarnings.
type DarkplaneAutoApprovalDecision ¶ added in v1.23.0
type DarkplaneAutoApprovalDecision string
DarkplaneAutoApprovalDecision The Darkplane AutoMerge evaluation decision. In dry-run mode, `approve` means the pull request would be approved.
const ( Approve DarkplaneAutoApprovalDecision = "approve" Hold DarkplaneAutoApprovalDecision = "hold" )
Defines values for DarkplaneAutoApprovalDecision.
func (DarkplaneAutoApprovalDecision) Valid ¶ added in v1.29.0
func (e DarkplaneAutoApprovalDecision) Valid() bool
Valid indicates whether the value is a known member of the DarkplaneAutoApprovalDecision enum.
type DarkplaneAutoApprovalMode ¶ added in v1.23.0
type DarkplaneAutoApprovalMode string
DarkplaneAutoApprovalMode The effective Darkplane AutoMerge mode after path rules, not necessarily the repository's configured mode.
const ( AutoApprove DarkplaneAutoApprovalMode = "auto_approve" AutoMerge DarkplaneAutoApprovalMode = "auto_merge" DryRun DarkplaneAutoApprovalMode = "dry_run" )
Defines values for DarkplaneAutoApprovalMode.
func (DarkplaneAutoApprovalMode) Valid ¶ added in v1.29.0
func (e DarkplaneAutoApprovalMode) Valid() bool
Valid indicates whether the value is a known member of the DarkplaneAutoApprovalMode enum.
type DarkplaneConfig ¶ added in v1.21.0
type DarkplaneConfig struct {
// RespectNativeCodingAgentTelemetry Darkplane processing of OpenTelemetry telemetry natively emitted by coding agents.
RespectNativeCodingAgentTelemetry *RespectNativeCodingAgentTelemetry `json:"respectNativeCodingAgentTelemetry,omitempty"`
}
DarkplaneConfig Darkplane-specific opt-ins for this dataset.
type DarkplaneEvaluationTriggerDelivery ¶ added in v1.23.0
type DarkplaneEvaluationTriggerDelivery string
DarkplaneEvaluationTriggerDelivery Starts a new automation run for the Darkplane AutoMerge evaluation.
const (
DarkplaneEvaluationTriggerDeliverySpawn DarkplaneEvaluationTriggerDelivery = "spawn"
)
Defines values for DarkplaneEvaluationTriggerDelivery.
func (DarkplaneEvaluationTriggerDelivery) Valid ¶ added in v1.29.0
func (e DarkplaneEvaluationTriggerDelivery) Valid() bool
Valid indicates whether the value is a known member of the DarkplaneEvaluationTriggerDelivery enum.
type DarkplaneEvaluationTriggerVariableName ¶ added in v1.23.0
type DarkplaneEvaluationTriggerVariableName string
DarkplaneEvaluationTriggerVariableName Variables provided by the `darkplane.pull_request.evaluation` trigger. Optional evaluation fields are omitted when unavailable.
- `darkplane.auto_approval.decision`: `approve` or `hold`, independent of whether approval was applied.
- `darkplane.auto_approval.mode`: The effective mode, one of `dry_run`, `auto_approve`, or `auto_merge`.
- `darkplane.provider`: The source control provider, `github` or `gitlab`.
- `darkplane.repository`: Repository full name, including its owner or GitLab namespace.
- `darkplane.repository_id`: Darkplane's internal repository ID, not the provider's.
- `darkplane.pull_request_id`: Darkplane's internal pull request ID, not the provider-facing number.
- `darkplane.pull_request_number`: GitHub pull request number or GitLab merge request IID.
- `darkplane.commit_sha`: The commit Darkplane evaluated, which may no longer be the head.
- `darkplane.auto_approval.evaluation_id`: Darkplane's ID for this evaluation run.
- `darkplane.auto_approval.score`: Weighted score from 0 to 100. Omitted when a hard gate skipped scoring.
- `darkplane.auto_approval.reasoning`: Darkplane's prose explanation of the verdict, in the wording it writes on its own verdict comment. Branch on the decision, not on this.
- `darkplane.pull_request_url`: Browser URL of the pull request or merge request.
const ( DarkplaneEvaluationTriggerVariableNameAutoApprovalDecision DarkplaneEvaluationTriggerVariableName = "darkplane.auto_approval.decision" DarkplaneAutoApprovalEvaluationId DarkplaneEvaluationTriggerVariableName = "darkplane.auto_approval.evaluation_id" DarkplaneEvaluationTriggerVariableNameAutoApprovalMode DarkplaneEvaluationTriggerVariableName = "darkplane.auto_approval.mode" DarkplaneAutoApprovalReasoning DarkplaneEvaluationTriggerVariableName = "darkplane.auto_approval.reasoning" DarkplaneAutoApprovalScore DarkplaneEvaluationTriggerVariableName = "darkplane.auto_approval.score" DarkplaneCommitSha DarkplaneEvaluationTriggerVariableName = "darkplane.commit_sha" DarkplaneEvaluationTriggerVariableNameProvider DarkplaneEvaluationTriggerVariableName = "darkplane.provider" DarkplanePullRequestId DarkplaneEvaluationTriggerVariableName = "darkplane.pull_request_id" DarkplanePullRequestNumber DarkplaneEvaluationTriggerVariableName = "darkplane.pull_request_number" DarkplanePullRequestUrl DarkplaneEvaluationTriggerVariableName = "darkplane.pull_request_url" DarkplaneRepository DarkplaneEvaluationTriggerVariableName = "darkplane.repository" DarkplaneRepositoryId DarkplaneEvaluationTriggerVariableName = "darkplane.repository_id" )
Defines values for DarkplaneEvaluationTriggerVariableName.
func (DarkplaneEvaluationTriggerVariableName) Valid ¶ added in v1.29.0
func (e DarkplaneEvaluationTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the DarkplaneEvaluationTriggerVariableName enum.
type DarkplaneProvider ¶ added in v1.23.0
type DarkplaneProvider string
DarkplaneProvider The source control provider evaluated by Darkplane AutoMerge.
const ( DarkplaneProviderGithub DarkplaneProvider = "github" DarkplaneProviderGitlab DarkplaneProvider = "gitlab" )
Defines values for DarkplaneProvider.
func (DarkplaneProvider) Valid ¶ added in v1.29.0
func (e DarkplaneProvider) Valid() bool
Valid indicates whether the value is a known member of the DarkplaneProvider enum.
type DarkplanePullRequestEvaluationAgenticWorkflowTrigger ¶ added in v1.23.0
type DarkplanePullRequestEvaluationAgenticWorkflowTrigger struct {
// Delivery Must be omitted or `spawn`; Darkplane AutoMerge evaluations cannot continue a thread.
Delivery *DarkplaneEvaluationTriggerDelivery `json:"delivery,omitempty"`
Kind DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind `json:"kind"`
Spec DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
DarkplanePullRequestEvaluationAgenticWorkflowTrigger defines model for DarkplanePullRequestEvaluationAgenticWorkflowTrigger.
type DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind ¶ added in v1.23.0
type DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind string
DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind defines model for DarkplanePullRequestEvaluationAgenticWorkflowTrigger.Kind.
const ( DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindFailedCheckNew DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "failed_check.new" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubCheckRun DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.check_run" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubCheckSuite DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.check_suite" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubDeployment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.deployment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubDeploymentStatus DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.deployment_status" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubIssueComment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.issue_comment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubPullRequest DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.pull_request" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubPullRequestReview DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.pull_request_review" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubPullRequestReviewComment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.pull_request_review_comment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubPush DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.push" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubRelease DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.release" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubWorkflowDispatch DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.workflow_dispatch" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubWorkflowJob DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.workflow_job" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGithubWorkflowRun DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "github.workflow_run" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGitlabMergeRequest DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "gitlab.merge_request" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindGitlabNote DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "gitlab.note" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearComment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.comment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearCommentReaction DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.comment_reaction" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearInitiative DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.initiative" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearInitiativeUpdate DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.initiative_update" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearIssue DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.issue" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearIssueAttachment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.issue_attachment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearIssueComment DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.issue_comment" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearProject DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.project" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindLinearProjectUpdate DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "linear.project_update" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindManual DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "manual" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindSchedule DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "schedule" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindSlackBotFailedCheckNew DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindSlackBotMessage DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "slack_bot.message" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindSlackBotReaction DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "slack_bot.reaction" DarkplanePullRequestEvaluationAgenticWorkflowTriggerKindWebhook DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind = "webhook" )
Defines values for DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind.
func (DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the DarkplanePullRequestEvaluationAgenticWorkflowTriggerKind enum.
type DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec struct {
AvailableVariables *[]DarkplaneEvaluationTriggerVariableName `json:"availableVariables,omitempty"`
// Decisions Decisions to match. When omitted or empty, all decisions match.
Decisions *[]DarkplaneAutoApprovalDecision `json:"decisions,omitempty"`
// Modes Darkplane AutoMerge modes to match. When omitted or empty, all modes match.
Modes *[]DarkplaneAutoApprovalMode `json:"modes,omitempty"`
// Providers Source control providers to match. When omitted or empty, all providers match.
Providers *[]DarkplaneProvider `json:"providers,omitempty"`
// Repositories Repository full names to match. When omitted or empty, all repositories match.
Repositories *[]string `json:"repositories,omitempty"`
}
DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec defines model for DarkplanePullRequestEvaluationAgenticWorkflowTriggerSpec.
type DashboardAnnotations ¶
type DashboardAnnotations struct {
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on assets that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on an asset that declares no dash0.com/origin is rejected with a 400 — manage that asset's access via the UI share dialog instead.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
}
DashboardAnnotations defines model for DashboardAnnotations.
type DashboardApiListItem ¶
type DashboardApiListItem struct {
Dataset string `json:"dataset"`
Description *string `json:"description,omitempty"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
Origin *string `json:"origin,omitempty"`
Tags []string `json:"tags"`
}
DashboardApiListItem defines model for DashboardApiListItem.
type DashboardDefinition ¶
type DashboardDefinition struct {
Kind DashboardDefinitionKind `json:"kind"`
Metadata DashboardMetadata `json:"metadata"`
// Spec The dashboard content in the Perses dashboard format: `display`, `datasources`, `variables`,
// `panels`, `layouts`, `duration` and `refreshInterval`. See the
// [Perses dashboard reference](https://perses.dev/perses/docs/api/dashboard/).
Spec map[string]interface{} `json:"spec"`
}
DashboardDefinition A dashboard definition that is compatible with Perses' dashboarding system.
func ConvertPersesDashboardToDashboard ¶ added in v1.6.0
func ConvertPersesDashboardToDashboard(perses *PersesDashboard) *DashboardDefinition
ConvertPersesDashboardToDashboard converts a PersesDashboard CRD into a Dash0 DashboardDefinition. It normalizes v1alpha1/v1alpha2 differences (the v1alpha2 CRD wraps the spec in a "config" key) and ensures a display name is set, falling back to metadata.name.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
perses := &dash0.PersesDashboard{
APIVersion: "perses.dev/v1alpha1",
Kind: "PersesDashboard",
Metadata: dash0.PersesDashboardMetadata{Name: "my-perses-dashboard"},
Spec: map[string]any{
"display": map[string]any{"name": "Perses Dashboard"},
},
}
dashboard := dash0.ConvertPersesDashboardToDashboard(perses)
fmt.Println(dashboard.Metadata.Name)
}
Output: Perses Dashboard
type DashboardDefinitionKind ¶
type DashboardDefinitionKind string
DashboardDefinitionKind defines model for DashboardDefinition.Kind.
const (
Dashboard DashboardDefinitionKind = "Dashboard"
)
Defines values for DashboardDefinitionKind.
func (DashboardDefinitionKind) Valid ¶ added in v1.29.0
func (e DashboardDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the DashboardDefinitionKind enum.
type DashboardLabels ¶ added in v1.12.3
type DashboardLabels struct {
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
DashboardLabels defines model for DashboardLabels.
type DashboardMetadata ¶
type DashboardMetadata struct {
Annotations *DashboardAnnotations `json:"annotations,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Dash0Extensions *DashboardMetadataExtensions `json:"dash0Extensions,omitempty"`
Labels *DashboardLabels `json:"labels,omitempty"`
Name string `json:"name"`
Project *string `json:"project,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Version *int64 `json:"version,omitempty"`
}
DashboardMetadata defines model for DashboardMetadata.
type DashboardMetadataExtensions ¶
type DashboardMetadataExtensions struct {
// CreatedBy The Dash0 user ID (`dash0.com/userId` in `GET /api/members`) of the user who created this dashboard or dashboard version.
CreatedBy *string `json:"createdBy,omitempty"`
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// Id An immutable id field to support automatic dashboard creation based on Kubernetes CRDs. This
// field essentially acts as an external ID for the dashboard. We support a way to upsert dashboards based
// on this field.
Id *string `json:"id,omitempty"`
// Origin This field is deprecated and is replaced by id field.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Origin *string `json:"origin,omitempty"`
Tags *[]string `json:"tags,omitempty"`
}
DashboardMetadataExtensions defines model for DashboardMetadataExtensions.
type DashboardSource
deprecated
added in
v1.2.0
type Dataset ¶
type Dataset = string
Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
type DatasetAction ¶ added in v1.12.3
type DatasetAction string
DatasetAction defines model for DatasetAction.
const ( DatasetCreateAgent0Automation DatasetAction = "dataset:createAgent0Automation" DatasetCreateCheckRule DatasetAction = "dataset:createCheckRule" DatasetCreateRecordingRuleGroup DatasetAction = "dataset:createRecordingRuleGroup" DatasetCreateSLO DatasetAction = "dataset:createSLO" DatasetCreateSyntheticCheck DatasetAction = "dataset:createSyntheticCheck" DatasetDelete DatasetAction = "dataset:delete" DatasetRead DatasetAction = "dataset:read" DatasetWrite DatasetAction = "dataset:write" )
Defines values for DatasetAction.
func (DatasetAction) Valid ¶ added in v1.29.0
func (e DatasetAction) Valid() bool
Valid indicates whether the value is a known member of the DatasetAction enum.
type DatasetAnnotations ¶ added in v1.24.0
type DatasetAnnotations struct {
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
DatasetAnnotations defines model for DatasetAnnotations.
type DatasetCreateRequest ¶ added in v1.24.0
type DatasetCreateRequest = DatasetDefinition
DatasetCreateRequest A Dash0 dataset. See [Datasets](https://www.dash0.com/docs/dash0/miscellaneous/glossary/datasets).
type DatasetDefinition ¶ added in v1.24.0
type DatasetDefinition struct {
// ApiVersion Version of the dataset document format. The only supported value is `dash0.com/v1alpha1`.
ApiVersion string `json:"apiVersion"`
Kind DatasetDefinitionKind `json:"kind"`
Metadata DatasetMetadata `json:"metadata"`
// Spec Every field is optional. A field omitted on create takes the server default; a field omitted on
// update keeps its stored value. Enumerations may gain values in later versions, so clients must
// accept values they do not recognize.
Spec DatasetSpec `json:"spec"`
}
DatasetDefinition A Dash0 dataset. See [Datasets](https://www.dash0.com/docs/dash0/miscellaneous/glossary/datasets).
type DatasetDefinitionKind ¶ added in v1.24.0
type DatasetDefinitionKind string
DatasetDefinitionKind defines model for DatasetDefinition.Kind.
const (
Dash0Dataset DatasetDefinitionKind = "Dash0Dataset"
)
Defines values for DatasetDefinitionKind.
func (DatasetDefinitionKind) Valid ¶ added in v1.29.0
func (e DatasetDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the DatasetDefinitionKind enum.
type DatasetGeoLocationPrivacy ¶ added in v1.25.0
type DatasetGeoLocationPrivacy struct {
EndUser *DatasetGeoLocationStorage `json:"endUser,omitempty"`
}
DatasetGeoLocationPrivacy defines model for DatasetGeoLocationPrivacy.
type DatasetGeoLocationStorage ¶ added in v1.25.0
type DatasetGeoLocationStorage struct {
// Storage How much geolocation derived from end-user IP addresses is stored.
Storage *GeoLocationStorageStrategy `json:"storage,omitempty"`
}
DatasetGeoLocationStorage defines model for DatasetGeoLocationStorage.
type DatasetIpAddressPrivacy ¶ added in v1.25.0
type DatasetIpAddressPrivacy struct {
EndUser *DatasetIpAddressStorage `json:"endUser,omitempty"`
}
DatasetIpAddressPrivacy defines model for DatasetIpAddressPrivacy.
type DatasetIpAddressStorage ¶ added in v1.25.0
type DatasetIpAddressStorage struct {
// Storage How end-user IP addresses derived from the `X-FORWARDED-FOR` and `X-REAL-IP` HTTP headers
// are stored.
Storage *IpAddressStorageStrategy `json:"storage,omitempty"`
}
DatasetIpAddressStorage defines model for DatasetIpAddressStorage.
type DatasetLabels ¶ added in v1.24.0
type DatasetLabels struct {
// Dash0Comid The same slug as `spec.slug`, kept for compatibility. When both are set, they must match.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for this dataset, used by Infrastructure-as-Code tools such as
// Terraform and the Kubernetes operator. Unique per organization and different from every
// dataset slug. When a machine token with no user omits it on create, Dash0 sets
// `api-<uuid>`. A deleted dataset keeps its origin until it is purged; creating the deleted
// slug again restores the dataset with the origin of that request.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
// Dash0Comversion Optimistic concurrency token. Server-set on create; required on update from the Dash0 UI
// and optional for machine tokens.
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
DatasetLabels defines model for DatasetLabels.
type DatasetListResponse ¶ added in v1.24.0
type DatasetListResponse = []DatasetResponse
DatasetListResponse defines model for DatasetListResponse.
type DatasetLoggingSettings ¶ added in v1.12.3
type DatasetLoggingSettings struct {
// Retention The retention class selected for a signal, per dataset. The value is the
// total retention in days, not an increase on top of a baseline.
// Customer-selectable signals (logs, spans, web events) expose the full
// set.
//
// - `30d`: 30 days total (the included baseline).
// - `60d`: 60 days total.
// - `90d`: 90 days total.
// - `120d`: 120 days total.
// - `210d`: 210 days total.
// - `390d`: 390 days total.
Retention RetentionClass `json:"retention"`
}
DatasetLoggingSettings defines model for DatasetLoggingSettings.
type DatasetMetadata ¶ added in v1.24.0
type DatasetMetadata struct {
Annotations *DatasetAnnotations `json:"annotations,omitempty"`
Labels *DatasetLabels `json:"labels,omitempty"`
// Name Human-readable name for the dataset.
Name string `json:"name"`
}
DatasetMetadata defines model for DatasetMetadata.
type DatasetMetricsSettings ¶ added in v1.12.3
type DatasetMetricsSettings struct {
// Retention The retention of a signal that is not customer-selectable (metrics, profiling): always
// 30 days.
Retention PinnedRetentionClass `json:"retention"`
}
DatasetMetricsSettings defines model for DatasetMetricsSettings.
type DatasetPermission ¶ added in v1.12.3
type DatasetPermission struct {
Actions []DatasetAction `json:"actions"`
Role *string `json:"role,omitempty"`
TeamId *string `json:"teamId,omitempty"`
UserId *string `json:"userId,omitempty"`
}
DatasetPermission defines model for DatasetPermission.
type DatasetPrivacy ¶ added in v1.25.0
type DatasetPrivacy struct {
GeoLocation *DatasetGeoLocationPrivacy `json:"geoLocation,omitempty"`
IpAddresses *DatasetIpAddressPrivacy `json:"ipAddresses,omitempty"`
Redaction *DatasetRedaction `json:"redaction,omitempty"`
}
DatasetPrivacy What Dash0 derives, stores and redacts for this dataset.
type DatasetProcessing ¶ added in v1.25.0
type DatasetProcessing struct {
// Darkplane Darkplane-specific opt-ins for this dataset.
Darkplane *DarkplaneConfig `json:"darkplane,omitempty"`
// SemanticConventionUpgrades Omitted on create, it is `disabled`. A new organization's `default` dataset starts with
// the newest version Dash0 can migrate to.
SemanticConventionUpgrades *SemanticConventionUpgrades `json:"semanticConventionUpgrades,omitempty"`
// SpanEventsToLogs Convert span events to log records correlated with the parent span via `traceId` and
// `spanId`. Converted log records carry the `dash0.span_event.converted` attribute.
SpanEventsToLogs *bool `json:"spanEventsToLogs,omitempty"`
}
DatasetProcessing Transformations Dash0 applies to ingested telemetry.
type DatasetProfilingSettings ¶ added in v1.12.3
type DatasetProfilingSettings struct {
// Retention The retention of a signal that is not customer-selectable (metrics, profiling): always
// 30 days.
Retention PinnedRetentionClass `json:"retention"`
}
DatasetProfilingSettings defines model for DatasetProfilingSettings.
type DatasetRedaction ¶ added in v1.25.0
type DatasetRedaction struct {
// CardholderData Detection and redaction of payment card numbers and related sensitive data before Dash0
// persists the signal.
CardholderData *CardholderDataRedactionSettings `json:"cardholderData,omitempty"`
// GenAi Redaction of supported GenAI attributes before Collector export.
GenAi *GenAIAttributeRedactionSettings `json:"genAi,omitempty"`
}
DatasetRedaction defines model for DatasetRedaction.
type DatasetResponse ¶ added in v1.24.0
type DatasetResponse = DatasetDefinition
DatasetResponse A Dash0 dataset. See [Datasets](https://www.dash0.com/docs/dash0/miscellaneous/glossary/datasets).
type DatasetRestriction ¶ added in v1.6.0
type DatasetRestriction string
DatasetRestriction Whether the list of datasets on an auth token limits what it can reach. Clients must accept values they do not recognize.
const ( DatasetRestrictionRestricted DatasetRestriction = "restricted" DatasetRestrictionUnrestricted DatasetRestriction = "unrestricted" )
Defines values for DatasetRestriction.
func (DatasetRestriction) Valid ¶ added in v1.29.0
func (e DatasetRestriction) Valid() bool
Valid indicates whether the value is a known member of the DatasetRestriction enum.
type DatasetRetention ¶ added in v1.25.0
type DatasetRetention struct {
Logs *RetentionClass `json:"logs,omitempty"`
Metrics *PinnedRetentionClass `json:"metrics,omitempty"`
Profiles *PinnedRetentionClass `json:"profiles,omitempty"`
Traces *RetentionClass `json:"traces,omitempty"`
WebEvents *RetentionClass `json:"webEvents,omitempty"`
}
DatasetRetention How long each signal is kept.
type DatasetSettings ¶ added in v1.12.3
type DatasetSettings struct {
// CardholderDataRedaction Controls detection and redaction of payment card numbers and related sensitive data before
// Dash0 persists the signal. Absent means disabled for new and existing datasets.
CardholderDataRedaction *CardholderDataRedactionSettings `json:"cardholderDataRedaction,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Darkplane Darkplane-specific opt-ins for this dataset.
// Absent opt-ins default to `disabled` for new and existing datasets.
Darkplane *DarkplaneConfig `json:"darkplane,omitempty"`
// GenAiAttributeRedaction Controls redaction of supported GenAI attributes before Collector export.
// Absent policies default to `disabled` for new and existing datasets.
GenAiAttributeRedaction *GenAIAttributeRedactionSettings `json:"genAiAttributeRedaction,omitempty"`
GeoLocation GeoLocationSettings `json:"geoLocation"`
IpAddresses IpAddressesSettings `json:"ipAddresses"`
Logging DatasetLoggingSettings `json:"logging"`
Metrics DatasetMetricsSettings `json:"metrics"`
Name string `json:"name"`
Permissions *[]DatasetPermission `json:"permissions,omitempty"`
PermittedActions *[]DatasetAction `json:"permittedActions,omitempty"`
Preferred *bool `json:"preferred,omitempty"`
Profiling DatasetProfilingSettings `json:"profiling"`
// SemanticConventionUpgrades Choose whether or not semantic convention upgrades should be executed. Can be one of:
//
// - disabled: No upgrade will be executed
// - latest: We will always upgrade to the latest and greatest
// - vX.X.X: A SEMVER version. We will automatically upgrade up to that version (inclusive)
SemanticConventionUpgrades SemanticConventionUpgrades `json:"semanticConventionUpgrades"`
// Slug The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Slug Dataset `json:"slug"`
TelemetryFilters []TelemetryFilter `json:"telemetryFilters"`
Tracing DatasetTracingSettings `json:"tracing"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Version *int `json:"version,omitempty"`
WebEvents DatasetWebEventsSettings `json:"webEvents"`
}
DatasetSettings defines model for DatasetSettings.
type DatasetSpec ¶ added in v1.24.0
type DatasetSpec struct {
// Permissions Who may do what with this dataset. Each grant names exactly one `userId`, `teamId` or
// `role`, and each principal appears once. The only role you can grant is `basic_member`;
// Dash0 sets the `admin` grant, and it is not listed. The list replaces the stored grants;
// an omitted or empty list keeps them unchanged. A dataset created without grants gives
// `basic_member` `dataset:read`. Reads list role, then user, then team grants, each with
// its actions sorted.
Permissions *[]DatasetPermission `json:"permissions,omitempty"`
// PermittedActions What the calling identity may do with this dataset. Read-only and derived per request
// from the caller's role, the dataset's permissions and its origin; values supplied on a
// write are ignored.
PermittedActions *[]DatasetAction `json:"permittedActions,omitempty"`
// Preferred Whether this dataset is the organization's preferred dataset, which the Dash0 UI opens by
// default. At most one dataset per organization is preferred; setting it here clears the
// flag on the previous one.
Preferred *bool `json:"preferred,omitempty"`
// Privacy What Dash0 derives, stores and redacts for this dataset.
Privacy *DatasetPrivacy `json:"privacy,omitempty"`
// Processing Transformations Dash0 applies to ingested telemetry.
Processing *DatasetProcessing `json:"processing,omitempty"`
// Retention How long each signal is kept.
Retention *DatasetRetention `json:"retention,omitempty"`
// Slug The identifier that telemetry and queries use for this dataset. It cannot change after
// create. On create, the slug is `spec.slug`, else `metadata.labels["dash0.com/id"]`, else
// derived from `metadata.name`: accents removed, lowercased, each run of characters outside
// `[a-z0-9_-]` replaced by `-`, leading and trailing `-` removed, cut to 26 characters. Set
// `spec.slug` when the derived slug is too short, is `default` or is already in use.
Slug *string `json:"slug,omitempty"`
}
DatasetSpec Every field is optional. A field omitted on create takes the server default; a field omitted on update keeps its stored value. Enumerations may gain values in later versions, so clients must accept values they do not recognize.
type DatasetTracingSettings ¶ added in v1.12.3
type DatasetTracingSettings struct {
// ConvertSpanEventsToLogRecords When enabled, span events are automatically converted to log records correlated with the parent span
// via traceId and spanId. This supports the migration away from the deprecated Span Event API towards
// the unified OTel event model where events are log records with names. Converted log records are tagged
// with the `dash0.span_event.converted` attribute.
ConvertSpanEventsToLogRecords *bool `json:"convertSpanEventsToLogRecords,omitempty"`
// Retention The retention class selected for a signal, per dataset. The value is the
// total retention in days, not an increase on top of a baseline.
// Customer-selectable signals (logs, spans, web events) expose the full
// set.
//
// - `30d`: 30 days total (the included baseline).
// - `60d`: 60 days total.
// - `90d`: 90 days total.
// - `120d`: 120 days total.
// - `210d`: 210 days total.
// - `390d`: 390 days total.
Retention RetentionClass `json:"retention"`
}
DatasetTracingSettings defines model for DatasetTracingSettings.
type DatasetUpdateRequest ¶ added in v1.24.0
type DatasetUpdateRequest = DatasetDefinition
DatasetUpdateRequest A Dash0 dataset. See [Datasets](https://www.dash0.com/docs/dash0/miscellaneous/glossary/datasets).
type DatasetWebEventsSettings ¶ added in v1.17.0
type DatasetWebEventsSettings struct {
// Retention The retention class selected for a signal, per dataset. The value is the
// total retention in days, not an increase on top of a baseline.
// Customer-selectable signals (logs, spans, web events) expose the full
// set.
//
// - `30d`: 30 days total (the included baseline).
// - `60d`: 60 days total.
// - `90d`: 90 days total.
// - `120d`: 120 days total.
// - `210d`: 210 days total.
// - `390d`: 390 days total.
Retention RetentionClass `json:"retention"`
}
DatasetWebEventsSettings defines model for DatasetWebEventsSettings.
type DeeplinkAssetType ¶ added in v1.13.0
type DeeplinkAssetType string
DeeplinkAssetType identifies a Dash0 asset type for which a web app deep link can be built.
const ( DeeplinkAssetTypeDashboard DeeplinkAssetType = "dashboard" DeeplinkAssetTypeCheckRule DeeplinkAssetType = "check-rule" DeeplinkAssetTypeSyntheticCheck DeeplinkAssetType = "synthetic-check" DeeplinkAssetTypeSLO DeeplinkAssetType = "slo" DeeplinkAssetTypeView DeeplinkAssetType = "view" DeeplinkAssetTypeTeam DeeplinkAssetType = "team" DeeplinkAssetTypeMember DeeplinkAssetType = "member" DeeplinkAssetTypeNotificationChannel DeeplinkAssetType = "notification-channel" )
Supported deep link asset types.
type DeeplinkFilter ¶ added in v1.13.0
type DeeplinkFilter struct {
Key string `json:"key"`
Operator string `json:"operator"`
Value string `json:"value,omitempty"`
}
DeeplinkFilter represents a single filter criterion for explorer deep links.
func FiltersToDeeplinkFilters ¶ added in v1.13.0
func FiltersToDeeplinkFilters(filters *FilterCriteria) []DeeplinkFilter
FiltersToDeeplinkFilters converts parsed API filter criteria to deep link filter objects suitable for URL serialization. It returns nil when filters is nil.
type DeleteApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
type DeleteApiAgent0CustomSkillsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
func ParseDeleteApiAgent0CustomSkillsOriginOrIdResponse(rsp *http.Response) (*DeleteApiAgent0CustomSkillsOriginOrIdResponse, error)
ParseDeleteApiAgent0CustomSkillsOriginOrIdResponse parses an HTTP response from a DeleteApiAgent0CustomSkillsOriginOrIdWithResponse call
func (DeleteApiAgent0CustomSkillsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiAgent0CustomSkillsOriginOrIdResponse) Status ¶ added in v1.29.0
func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiAgent0CustomSkillsOriginOrIdResponse) StatusCode ¶ added in v1.29.0
func (r DeleteApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiAgenticWorkflowsOriginOrIdParams ¶ added in v1.17.0
type DeleteApiAgenticWorkflowsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiAgenticWorkflowsOriginOrIdParams defines parameters for DeleteApiAgenticWorkflowsOriginOrId.
type DeleteApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
type DeleteApiAgenticWorkflowsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
func ParseDeleteApiAgenticWorkflowsOriginOrIdResponse(rsp *http.Response) (*DeleteApiAgenticWorkflowsOriginOrIdResponse, error)
ParseDeleteApiAgenticWorkflowsOriginOrIdResponse parses an HTTP response from a DeleteApiAgenticWorkflowsOriginOrIdWithResponse call
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiAgenticWorkflowsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r DeleteApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiAlertingCheckRulesOriginOrIdParams ¶
type DeleteApiAlertingCheckRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiAlertingCheckRulesOriginOrIdParams defines parameters for DeleteApiAlertingCheckRulesOriginOrId.
type DeleteApiAlertingCheckRulesOriginOrIdResponse ¶
type DeleteApiAlertingCheckRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiAlertingCheckRulesOriginOrIdResponse ¶
func ParseDeleteApiAlertingCheckRulesOriginOrIdResponse(rsp *http.Response) (*DeleteApiAlertingCheckRulesOriginOrIdResponse, error)
ParseDeleteApiAlertingCheckRulesOriginOrIdResponse parses an HTTP response from a DeleteApiAlertingCheckRulesOriginOrIdWithResponse call
func (DeleteApiAlertingCheckRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiAlertingCheckRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiAlertingCheckRulesOriginOrIdResponse) Status ¶
func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiAlertingCheckRulesOriginOrIdResponse) StatusCode ¶
func (r DeleteApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
type DeleteApiAuthTokensOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
func ParseDeleteApiAuthTokensOriginOrIdResponse(rsp *http.Response) (*DeleteApiAuthTokensOriginOrIdResponse, error)
ParseDeleteApiAuthTokensOriginOrIdResponse parses an HTTP response from a DeleteApiAuthTokensOriginOrIdWithResponse call
func (DeleteApiAuthTokensOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiAuthTokensOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiAuthTokensOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiAuthTokensOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiAuthTokensOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiAuthTokensOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiAuthTokensOriginOrIdResponse) Status ¶ added in v1.25.0
func (r DeleteApiAuthTokensOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiAuthTokensOriginOrIdResponse) StatusCode ¶ added in v1.25.0
func (r DeleteApiAuthTokensOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
type DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
func ParseDeleteApiAwsMetricScrapeConfigsIntegrationIdResponse(rsp *http.Response) (*DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
ParseDeleteApiAwsMetricScrapeConfigsIntegrationIdResponse parses an HTTP response from a DeleteApiAwsMetricScrapeConfigsIntegrationIdWithResponse call
func (DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) Status ¶ added in v1.28.0
func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode ¶ added in v1.28.0
func (r DeleteApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiDashboardsOriginOrIdParams ¶
type DeleteApiDashboardsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiDashboardsOriginOrIdParams defines parameters for DeleteApiDashboardsOriginOrId.
type DeleteApiDashboardsOriginOrIdResponse ¶
type DeleteApiDashboardsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiDashboardsOriginOrIdResponse ¶
func ParseDeleteApiDashboardsOriginOrIdResponse(rsp *http.Response) (*DeleteApiDashboardsOriginOrIdResponse, error)
ParseDeleteApiDashboardsOriginOrIdResponse parses an HTTP response from a DeleteApiDashboardsOriginOrIdWithResponse call
func (DeleteApiDashboardsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiDashboardsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiDashboardsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiDashboardsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiDashboardsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiDashboardsOriginOrIdResponse) Status ¶
func (r DeleteApiDashboardsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiDashboardsOriginOrIdResponse) StatusCode ¶
func (r DeleteApiDashboardsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
type DeleteApiDatasetsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
func ParseDeleteApiDatasetsOriginOrIdResponse(rsp *http.Response) (*DeleteApiDatasetsOriginOrIdResponse, error)
ParseDeleteApiDatasetsOriginOrIdResponse parses an HTTP response from a DeleteApiDatasetsOriginOrIdWithResponse call
func (DeleteApiDatasetsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiDatasetsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiDatasetsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiDatasetsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiDatasetsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiDatasetsOriginOrIdResponse) Status ¶ added in v1.24.0
func (r DeleteApiDatasetsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiDatasetsOriginOrIdResponse) StatusCode ¶ added in v1.24.0
func (r DeleteApiDatasetsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiMembersInvitationsInvitationIDResponse ¶ added in v1.23.0
type DeleteApiMembersInvitationsInvitationIDResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiMembersInvitationsInvitationIDResponse ¶ added in v1.23.0
func ParseDeleteApiMembersInvitationsInvitationIDResponse(rsp *http.Response) (*DeleteApiMembersInvitationsInvitationIDResponse, error)
ParseDeleteApiMembersInvitationsInvitationIDResponse parses an HTTP response from a DeleteApiMembersInvitationsInvitationIDWithResponse call
func (DeleteApiMembersInvitationsInvitationIDResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiMembersInvitationsInvitationIDResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiMembersInvitationsInvitationIDResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiMembersInvitationsInvitationIDResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiMembersInvitationsInvitationIDResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiMembersInvitationsInvitationIDResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiMembersInvitationsInvitationIDResponse) Status ¶ added in v1.23.0
func (r DeleteApiMembersInvitationsInvitationIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiMembersInvitationsInvitationIDResponse) StatusCode ¶ added in v1.23.0
func (r DeleteApiMembersInvitationsInvitationIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiMembersMemberIDResponse ¶ added in v1.4.0
type DeleteApiMembersMemberIDResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiMembersMemberIDResponse ¶ added in v1.4.0
func ParseDeleteApiMembersMemberIDResponse(rsp *http.Response) (*DeleteApiMembersMemberIDResponse, error)
ParseDeleteApiMembersMemberIDResponse parses an HTTP response from a DeleteApiMembersMemberIDWithResponse call
func (DeleteApiMembersMemberIDResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiMembersMemberIDResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiMembersMemberIDResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiMembersMemberIDResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiMembersMemberIDResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiMembersMemberIDResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiMembersMemberIDResponse) Status ¶ added in v1.4.0
func (r DeleteApiMembersMemberIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiMembersMemberIDResponse) StatusCode ¶ added in v1.4.0
func (r DeleteApiMembersMemberIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
type DeleteApiNotificationChannelsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
func ParseDeleteApiNotificationChannelsOriginOrIdResponse(rsp *http.Response) (*DeleteApiNotificationChannelsOriginOrIdResponse, error)
ParseDeleteApiNotificationChannelsOriginOrIdResponse parses an HTTP response from a DeleteApiNotificationChannelsOriginOrIdWithResponse call
func (DeleteApiNotificationChannelsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiNotificationChannelsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON409 ¶ added in v1.29.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (DeleteApiNotificationChannelsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiNotificationChannelsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiNotificationChannelsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r DeleteApiNotificationChannelsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiRecordingRulesOriginOrIdParams ¶ added in v1.9.0
type DeleteApiRecordingRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiRecordingRulesOriginOrIdParams defines parameters for DeleteApiRecordingRulesOriginOrId.
type DeleteApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
type DeleteApiRecordingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
func ParseDeleteApiRecordingRulesOriginOrIdResponse(rsp *http.Response) (*DeleteApiRecordingRulesOriginOrIdResponse, error)
ParseDeleteApiRecordingRulesOriginOrIdResponse parses an HTTP response from a DeleteApiRecordingRulesOriginOrIdWithResponse call
func (DeleteApiRecordingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiRecordingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiRecordingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiRecordingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiRecordingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiRecordingRulesOriginOrIdResponse) Status ¶ added in v1.9.0
func (r DeleteApiRecordingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiRecordingRulesOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r DeleteApiRecordingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiSamplingRulesOriginOrIdParams ¶ added in v1.1.0
type DeleteApiSamplingRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiSamplingRulesOriginOrIdParams defines parameters for DeleteApiSamplingRulesOriginOrId.
type DeleteApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
type DeleteApiSamplingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
func ParseDeleteApiSamplingRulesOriginOrIdResponse(rsp *http.Response) (*DeleteApiSamplingRulesOriginOrIdResponse, error)
ParseDeleteApiSamplingRulesOriginOrIdResponse parses an HTTP response from a DeleteApiSamplingRulesOriginOrIdWithResponse call
func (DeleteApiSamplingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiSamplingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiSamplingRulesOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiSamplingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiSamplingRulesOriginOrIdResponse) Status ¶ added in v1.1.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiSamplingRulesOriginOrIdResponse) StatusCode ¶ added in v1.1.0
func (r DeleteApiSamplingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiSignalToMetricsOriginOrIdParams ¶ added in v1.9.0
type DeleteApiSignalToMetricsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiSignalToMetricsOriginOrIdParams defines parameters for DeleteApiSignalToMetricsOriginOrId.
type DeleteApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
type DeleteApiSignalToMetricsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
func ParseDeleteApiSignalToMetricsOriginOrIdResponse(rsp *http.Response) (*DeleteApiSignalToMetricsOriginOrIdResponse, error)
ParseDeleteApiSignalToMetricsOriginOrIdResponse parses an HTTP response from a DeleteApiSignalToMetricsOriginOrIdWithResponse call
func (DeleteApiSignalToMetricsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiSignalToMetricsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiSignalToMetricsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiSignalToMetricsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiSignalToMetricsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiSignalToMetricsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r DeleteApiSignalToMetricsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiSlosOriginOrIdParams ¶ added in v1.14.0
type DeleteApiSlosOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiSlosOriginOrIdParams defines parameters for DeleteApiSlosOriginOrId.
type DeleteApiSlosOriginOrIdResponse ¶ added in v1.14.0
type DeleteApiSlosOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiSlosOriginOrIdResponse ¶ added in v1.14.0
func ParseDeleteApiSlosOriginOrIdResponse(rsp *http.Response) (*DeleteApiSlosOriginOrIdResponse, error)
ParseDeleteApiSlosOriginOrIdResponse parses an HTTP response from a DeleteApiSlosOriginOrIdWithResponse call
func (DeleteApiSlosOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiSlosOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiSlosOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiSlosOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiSlosOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiSlosOriginOrIdResponse) Status ¶ added in v1.14.0
func (r DeleteApiSlosOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiSlosOriginOrIdResponse) StatusCode ¶ added in v1.14.0
func (r DeleteApiSlosOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiSpamFiltersOriginOrIdParams ¶ added in v1.12.0
type DeleteApiSpamFiltersOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiSpamFiltersOriginOrIdParams defines parameters for DeleteApiSpamFiltersOriginOrId.
type DeleteApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
type DeleteApiSpamFiltersOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
func ParseDeleteApiSpamFiltersOriginOrIdResponse(rsp *http.Response) (*DeleteApiSpamFiltersOriginOrIdResponse, error)
ParseDeleteApiSpamFiltersOriginOrIdResponse parses an HTTP response from a DeleteApiSpamFiltersOriginOrIdWithResponse call
func (DeleteApiSpamFiltersOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiSpamFiltersOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiSpamFiltersOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiSpamFiltersOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiSpamFiltersOriginOrIdResponse) Status ¶ added in v1.12.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiSpamFiltersOriginOrIdResponse) StatusCode ¶ added in v1.12.0
func (r DeleteApiSpamFiltersOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiSyntheticChecksOriginOrIdParams ¶
type DeleteApiSyntheticChecksOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiSyntheticChecksOriginOrIdParams defines parameters for DeleteApiSyntheticChecksOriginOrId.
type DeleteApiSyntheticChecksOriginOrIdResponse ¶
type DeleteApiSyntheticChecksOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiSyntheticChecksOriginOrIdResponse ¶
func ParseDeleteApiSyntheticChecksOriginOrIdResponse(rsp *http.Response) (*DeleteApiSyntheticChecksOriginOrIdResponse, error)
ParseDeleteApiSyntheticChecksOriginOrIdResponse parses an HTTP response from a DeleteApiSyntheticChecksOriginOrIdWithResponse call
func (DeleteApiSyntheticChecksOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiSyntheticChecksOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiSyntheticChecksOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiSyntheticChecksOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiSyntheticChecksOriginOrIdResponse) Status ¶
func (r DeleteApiSyntheticChecksOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiSyntheticChecksOriginOrIdResponse) StatusCode ¶
func (r DeleteApiSyntheticChecksOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTeamsOriginOrIdMembersMemberIDResponse ¶ added in v1.4.0
type DeleteApiTeamsOriginOrIdMembersMemberIDResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiTeamsOriginOrIdMembersMemberIDResponse ¶ added in v1.4.0
func ParseDeleteApiTeamsOriginOrIdMembersMemberIDResponse(rsp *http.Response) (*DeleteApiTeamsOriginOrIdMembersMemberIDResponse, error)
ParseDeleteApiTeamsOriginOrIdMembersMemberIDResponse parses an HTTP response from a DeleteApiTeamsOriginOrIdMembersMemberIDWithResponse call
func (DeleteApiTeamsOriginOrIdMembersMemberIDResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiTeamsOriginOrIdMembersMemberIDResponse) Status ¶ added in v1.4.0
func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTeamsOriginOrIdMembersMemberIDResponse) StatusCode ¶ added in v1.4.0
func (r DeleteApiTeamsOriginOrIdMembersMemberIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTeamsOriginOrIdResponse ¶ added in v1.4.0
type DeleteApiTeamsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiTeamsOriginOrIdResponse ¶ added in v1.4.0
func ParseDeleteApiTeamsOriginOrIdResponse(rsp *http.Response) (*DeleteApiTeamsOriginOrIdResponse, error)
ParseDeleteApiTeamsOriginOrIdResponse parses an HTTP response from a DeleteApiTeamsOriginOrIdWithResponse call
func (DeleteApiTeamsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTeamsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTeamsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiTeamsOriginOrIdResponse) Status ¶ added in v1.4.0
func (r DeleteApiTeamsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTeamsOriginOrIdResponse) StatusCode ¶ added in v1.4.0
func (r DeleteApiTeamsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTimeSeriesAggregationsOriginOrIdParams ¶ added in v1.17.0
type DeleteApiTimeSeriesAggregationsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiTimeSeriesAggregationsOriginOrIdParams defines parameters for DeleteApiTimeSeriesAggregationsOriginOrId.
type DeleteApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
type DeleteApiTimeSeriesAggregationsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
func ParseDeleteApiTimeSeriesAggregationsOriginOrIdResponse(rsp *http.Response) (*DeleteApiTimeSeriesAggregationsOriginOrIdResponse, error)
ParseDeleteApiTimeSeriesAggregationsOriginOrIdResponse parses an HTTP response from a DeleteApiTimeSeriesAggregationsOriginOrIdWithResponse call
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r DeleteApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiViewsOriginOrIdParams ¶
type DeleteApiViewsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
DeleteApiViewsOriginOrIdParams defines parameters for DeleteApiViewsOriginOrId.
type DeleteApiViewsOriginOrIdResponse ¶
type DeleteApiViewsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteApiViewsOriginOrIdResponse ¶
func ParseDeleteApiViewsOriginOrIdResponse(rsp *http.Response) (*DeleteApiViewsOriginOrIdResponse, error)
ParseDeleteApiViewsOriginOrIdResponse parses an HTTP response from a DeleteApiViewsOriginOrIdWithResponse call
func (DeleteApiViewsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r DeleteApiViewsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiViewsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r DeleteApiViewsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiViewsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r DeleteApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiViewsOriginOrIdResponse) Status ¶
func (r DeleteApiViewsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiViewsOriginOrIdResponse) StatusCode ¶
func (r DeleteApiViewsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DiscordWebhookConfig ¶ added in v1.9.0
type DiscordWebhookConfig struct {
Url string `json:"url"`
}
DiscordWebhookConfig defines model for DiscordWebhookConfig.
type EmailConfig
deprecated
added in
v1.9.0
type EmailConfig struct {
Plaintext *bool `json:"plaintext,omitempty"`
Recipient openapi_types.Email `json:"recipient"`
}
EmailConfig defines model for EmailConfig.
Deprecated: Superseded by EmailV2Config
type EmailV2Config ¶ added in v1.9.0
type EmailV2Config struct {
Plaintext *bool `json:"plaintext,omitempty"`
Recipients []openapi_types.Email `json:"recipients"`
}
EmailV2Config defines model for EmailV2Config.
type EmptyAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type EmptyAgenticWorkflowTriggerSpec = interface{}
EmptyAgenticWorkflowTriggerSpec defines model for EmptyAgenticWorkflowTriggerSpec.
type Error ¶
type Error struct {
// Code HTTP status code.
Code int `json:"code"`
// Message Human-readable description of the error. Safe to display.
Message string `json:"message"`
// TraceId Trace ID for the request that produced the error, for correlating with logs and traces.
TraceId *string `json:"traceId,omitempty"`
// Type Stable `snake_case` identifier for the kind of error, safe for clients to branch on. Not
// an enum: treat an unrecognized value the same as an absent one and fall back to `message`,
// so a new error kind never breaks the contract. Optional — absent means unclassified, not
// success.
Type *string `json:"type,omitempty"`
}
Error defines model for Error.
func (*Error) UnmarshalJSON ¶ added in v1.12.2
UnmarshalJSON tolerates two wire shapes for the generated Error type that the Dash0 control plane is observed to emit:
{"code": int, "message": string, "traceId": string} (canonical struct)
"<message>" (bare string)
The bare-string form is lifted into Message; Code stays 0 and TraceId stays nil. Marshal always emits the struct form, regardless of how the value was decoded; consumers that round-trip an Error through JSON will get the canonical shape on the way out.
type ErrorAssertion ¶
type ErrorAssertion struct {
Kind ErrorAssertionKind `json:"kind"`
Spec ErrorAssertionSpec `json:"spec"`
}
ErrorAssertion defines model for ErrorAssertion.
type ErrorAssertionKind ¶
type ErrorAssertionKind string
ErrorAssertionKind defines model for ErrorAssertion.Kind.
const (
ErrorAssertionKindError ErrorAssertionKind = "error"
)
Defines values for ErrorAssertionKind.
func (ErrorAssertionKind) Valid ¶ added in v1.29.0
func (e ErrorAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the ErrorAssertionKind enum.
type ErrorAssertionSpec ¶
type ErrorAssertionSpec struct {
// Value `location_unavailable` marks a run that was never dispatched because its location could not run it. It is reported on results only and is rejected in error assertions.
Value SyntheticHttpErrorType `json:"value"`
}
ErrorAssertionSpec defines model for ErrorAssertionSpec.
type ErrorResponse ¶
type ErrorResponse struct {
Error Error `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type ExecuteSqlRequest ¶ added in v1.6.0
type ExecuteSqlRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Query string `json:"query"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
ExecuteSqlRequest defines model for ExecuteSqlRequest.
type ExecuteSqlResponse ¶ added in v1.6.0
type ExecuteSqlResponse struct {
Error *string `json:"error,omitempty"`
// ExecutionTime A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
ExecutionTime FixedTime `json:"executionTime"`
Progress *Progress `json:"progress,omitempty"`
// QueryError Structured error information for query errors. Present alongside the error string when the error is related to the user's query (syntax, semantic, or execution errors). Not present for system-level errors (unauthorized access, unexpected failures).
QueryError *QueryError `json:"queryError,omitempty"`
ResultRows *ResultRows `json:"resultRows,omitempty"`
TimeRange TimeRange `json:"timeRange"`
Warnings D0QLWarnings `json:"warnings"`
}
ExecuteSqlResponse defines model for ExecuteSqlResponse.
type FailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
type FailedCheckAgenticWorkflowTrigger struct {
Kind FailedCheckAgenticWorkflowTriggerKind `json:"kind"`
Spec FailedCheckAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
FailedCheckAgenticWorkflowTrigger defines model for FailedCheckAgenticWorkflowTrigger.
type FailedCheckAgenticWorkflowTriggerKind ¶ added in v1.17.0
type FailedCheckAgenticWorkflowTriggerKind string
FailedCheckAgenticWorkflowTriggerKind defines model for FailedCheckAgenticWorkflowTrigger.Kind.
const ( FailedCheckAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation FailedCheckAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" FailedCheckAgenticWorkflowTriggerKindFailedCheckNew FailedCheckAgenticWorkflowTriggerKind = "failed_check.new" FailedCheckAgenticWorkflowTriggerKindGithubCheckRun FailedCheckAgenticWorkflowTriggerKind = "github.check_run" FailedCheckAgenticWorkflowTriggerKindGithubCheckSuite FailedCheckAgenticWorkflowTriggerKind = "github.check_suite" FailedCheckAgenticWorkflowTriggerKindGithubDeployment FailedCheckAgenticWorkflowTriggerKind = "github.deployment" FailedCheckAgenticWorkflowTriggerKindGithubDeploymentStatus FailedCheckAgenticWorkflowTriggerKind = "github.deployment_status" FailedCheckAgenticWorkflowTriggerKindGithubIssueComment FailedCheckAgenticWorkflowTriggerKind = "github.issue_comment" FailedCheckAgenticWorkflowTriggerKindGithubPullRequest FailedCheckAgenticWorkflowTriggerKind = "github.pull_request" FailedCheckAgenticWorkflowTriggerKindGithubPullRequestReview FailedCheckAgenticWorkflowTriggerKind = "github.pull_request_review" FailedCheckAgenticWorkflowTriggerKindGithubPullRequestReviewComment FailedCheckAgenticWorkflowTriggerKind = "github.pull_request_review_comment" FailedCheckAgenticWorkflowTriggerKindGithubPush FailedCheckAgenticWorkflowTriggerKind = "github.push" FailedCheckAgenticWorkflowTriggerKindGithubRelease FailedCheckAgenticWorkflowTriggerKind = "github.release" FailedCheckAgenticWorkflowTriggerKindGithubWorkflowDispatch FailedCheckAgenticWorkflowTriggerKind = "github.workflow_dispatch" FailedCheckAgenticWorkflowTriggerKindGithubWorkflowJob FailedCheckAgenticWorkflowTriggerKind = "github.workflow_job" FailedCheckAgenticWorkflowTriggerKindGithubWorkflowRun FailedCheckAgenticWorkflowTriggerKind = "github.workflow_run" FailedCheckAgenticWorkflowTriggerKindGitlabMergeRequest FailedCheckAgenticWorkflowTriggerKind = "gitlab.merge_request" FailedCheckAgenticWorkflowTriggerKindGitlabNote FailedCheckAgenticWorkflowTriggerKind = "gitlab.note" FailedCheckAgenticWorkflowTriggerKindLinearComment FailedCheckAgenticWorkflowTriggerKind = "linear.comment" FailedCheckAgenticWorkflowTriggerKindLinearCommentReaction FailedCheckAgenticWorkflowTriggerKind = "linear.comment_reaction" FailedCheckAgenticWorkflowTriggerKindLinearInitiative FailedCheckAgenticWorkflowTriggerKind = "linear.initiative" FailedCheckAgenticWorkflowTriggerKindLinearInitiativeUpdate FailedCheckAgenticWorkflowTriggerKind = "linear.initiative_update" FailedCheckAgenticWorkflowTriggerKindLinearIssue FailedCheckAgenticWorkflowTriggerKind = "linear.issue" FailedCheckAgenticWorkflowTriggerKindLinearIssueAttachment FailedCheckAgenticWorkflowTriggerKind = "linear.issue_attachment" FailedCheckAgenticWorkflowTriggerKindLinearIssueComment FailedCheckAgenticWorkflowTriggerKind = "linear.issue_comment" FailedCheckAgenticWorkflowTriggerKindLinearProject FailedCheckAgenticWorkflowTriggerKind = "linear.project" FailedCheckAgenticWorkflowTriggerKindLinearProjectUpdate FailedCheckAgenticWorkflowTriggerKind = "linear.project_update" FailedCheckAgenticWorkflowTriggerKindManual FailedCheckAgenticWorkflowTriggerKind = "manual" FailedCheckAgenticWorkflowTriggerKindSchedule FailedCheckAgenticWorkflowTriggerKind = "schedule" FailedCheckAgenticWorkflowTriggerKindSlackBotFailedCheckNew FailedCheckAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" FailedCheckAgenticWorkflowTriggerKindSlackBotMessage FailedCheckAgenticWorkflowTriggerKind = "slack_bot.message" FailedCheckAgenticWorkflowTriggerKindSlackBotReaction FailedCheckAgenticWorkflowTriggerKind = "slack_bot.reaction" FailedCheckAgenticWorkflowTriggerKindWebhook FailedCheckAgenticWorkflowTriggerKind = "webhook" )
Defines values for FailedCheckAgenticWorkflowTriggerKind.
func (FailedCheckAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e FailedCheckAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the FailedCheckAgenticWorkflowTriggerKind enum.
type FailedCheckAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type FailedCheckAgenticWorkflowTriggerSpec struct {
// AnnotationFilters Optional filters applied to check annotations at dispatch time. When defined
// and not empty, only failed checks whose annotations satisfy all filter
// criteria trigger this automation (AND semantics). Each criterion specifies an
// annotation key and a matching operator (e.g., is, contains, starts_with, matches).
AnnotationFilters *FilterCriteria `json:"annotationFilters,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item `json:"availableVariables,omitempty"`
// CheckRuleIDs Optional list of check rule IDs. When specified, only failed checks
// whose rule ID matches one of the listed values trigger the automation.
CheckRuleIDs *[]string `json:"checkRuleIDs,omitempty"`
// LabelFilters Optional filters applied to check labels at dispatch time. When defined
// and not empty, only failed checks whose labels satisfy all filter criteria
// trigger this automation (AND semantics). Each criterion specifies a label key
// and a matching operator (e.g., is, contains, starts_with, matches).
LabelFilters *FilterCriteria `json:"labelFilters,omitempty"`
// Silenced Optional filter on whether a silence covers the failed check when it fires. `true`
// matches only silenced failed checks, `false` only unsilenced ones. When omitted,
// silenced state is not considered.
Silenced *bool `json:"silenced,omitempty"`
}
FailedCheckAgenticWorkflowTriggerSpec defines model for FailedCheckAgenticWorkflowTriggerSpec.
type FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item ¶ added in v1.25.0
type FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item struct {
// contains filtered or unexported fields
}
FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item defines model for FailedCheckAgenticWorkflowTriggerSpec.availableVariables.Item.
func (FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckSilencedTriggerVariableName ¶ added in v1.25.0
func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckSilencedTriggerVariableName() (FailedCheckSilencedTriggerVariableName, error)
AsFailedCheckSilencedTriggerVariableName returns the union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as a FailedCheckSilencedTriggerVariableName
func (FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName ¶ added in v1.25.0
func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName() (FailedCheckTriggerVariableName, error)
AsFailedCheckTriggerVariableName returns the union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as a FailedCheckTriggerVariableName
func (*FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckSilencedTriggerVariableName ¶ added in v1.25.0
func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckSilencedTriggerVariableName(v FailedCheckSilencedTriggerVariableName) error
FromFailedCheckSilencedTriggerVariableName overwrites any union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided FailedCheckSilencedTriggerVariableName
func (*FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName ¶ added in v1.25.0
func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
FromFailedCheckTriggerVariableName overwrites any union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided FailedCheckTriggerVariableName
func (FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON ¶ added in v1.25.0
func (t FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
func (*FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckSilencedTriggerVariableName ¶ added in v1.25.0
func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckSilencedTriggerVariableName(v FailedCheckSilencedTriggerVariableName) error
MergeFailedCheckSilencedTriggerVariableName performs a merge with any union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided FailedCheckSilencedTriggerVariableName
func (*FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName ¶ added in v1.25.0
func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
MergeFailedCheckTriggerVariableName performs a merge with any union data inside the FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided FailedCheckTriggerVariableName
func (*FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON ¶ added in v1.25.0
func (t *FailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
type FailedCheckSilencedTriggerVariableName ¶ added in v1.25.0
type FailedCheckSilencedTriggerVariableName string
FailedCheckSilencedTriggerVariableName Variable provided only by the `failed_check.new` trigger. A silenced failed check never reaches Slack, so `slack_bot.failed_check.new` does not provide it.
- `issue.silenced`: `true` when a silence covered the failed check when it fired, `false` otherwise.
const (
IssueSilenced FailedCheckSilencedTriggerVariableName = "issue.silenced"
)
Defines values for FailedCheckSilencedTriggerVariableName.
func (FailedCheckSilencedTriggerVariableName) Valid ¶ added in v1.29.0
func (e FailedCheckSilencedTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the FailedCheckSilencedTriggerVariableName enum.
type FailedCheckTriggerVariableName ¶ added in v1.17.0
type FailedCheckTriggerVariableName string
FailedCheckTriggerVariableName Variables provided by every failed-check trigger.
- `check.id`: The ID of the check rule that failed. - `check.name`: The name of the check rule that failed. - `issue.identifier`: The specific issue that fired. One rule can have several concurrent issues, so this identifies which one triggered the run. Absent when the dispatching producer predates the field.
const ( CheckId FailedCheckTriggerVariableName = "check.id" CheckName FailedCheckTriggerVariableName = "check.name" IssueIdentifier FailedCheckTriggerVariableName = "issue.identifier" )
Defines values for FailedCheckTriggerVariableName.
func (FailedCheckTriggerVariableName) Valid ¶ added in v1.29.0
func (e FailedCheckTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the FailedCheckTriggerVariableName enum.
type FailedHttpCheckAssertion ¶ added in v1.4.0
type FailedHttpCheckAssertion struct {
// ActualValue The actual value that was received in the response
ActualValue *string `json:"actualValue,omitempty"`
// Assertion The assertion that
Assertion HttpCheckAssertion `json:"assertion"`
// Explanation A human-readable message explaining why the assertion failed
Explanation string `json:"explanation"`
}
FailedHttpCheckAssertion Information about a failed HTTP check assertion
type FilterCriteria ¶
type FilterCriteria = []AttributeFilter
FilterCriteria defines model for FilterCriteria.
type FixedTime ¶
FixedTime A fixed point in time represented as an RFC 3339 date-time string.
**Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
**Examples**: - `2024-01-15T14:30:00Z` - `2024-01-15T14:30:00+08:00`
type FixedTimeUnix ¶
type FixedTimeUnix = string
FixedTimeUnix The time corresponding to the given unix time in seconds and nanoseconds (as decimal places) since January 1, 1970 UTC.
type GenAIAttributeRedaction ¶ added in v1.17.0
type GenAIAttributeRedaction string
GenAIAttributeRedaction Controls whether sensitive GenAI attribute values are redacted by the Collector.
- `disabled`: Preserve GenAI attribute values unchanged. - `redact`: Replace the affected GenAI attribute content with a redacted value.
const ( GenAIAttributeRedactionDisabled GenAIAttributeRedaction = "disabled" GenAIAttributeRedactionRedact GenAIAttributeRedaction = "redact" )
Defines values for GenAIAttributeRedaction.
func (GenAIAttributeRedaction) Valid ¶ added in v1.29.0
func (e GenAIAttributeRedaction) Valid() bool
Valid indicates whether the value is a known member of the GenAIAttributeRedaction enum.
type GenAIAttributeRedactionSettings ¶ added in v1.17.0
type GenAIAttributeRedactionSettings struct {
// Conversation Redaction of conversation content: `gen_ai.input.messages`, `gen_ai.output.messages`,
// and `gen_ai.system_instructions`.
Conversation *GenAIAttributeRedaction `json:"conversation,omitempty"`
// ConversationName Redaction of the conversation name: `gen_ai.conversation.name`.
// The conversation ID is preserved. Defaults to `disabled` when omitted.
ConversationName *GenAIAttributeRedaction `json:"conversationName,omitempty"`
// Errors Redaction of tool-call error messages: the span status message and `exception.message`
// attributes on spans, span events and log records that carry a `gen_ai.tool.name`
// attribute.
Errors *GenAIAttributeRedaction `json:"errors,omitempty"`
// ToolCalls Redaction of tool-call input and output: `gen_ai.tool.call.arguments` and
// `gen_ai.tool.call.result`.
ToolCalls *GenAIAttributeRedaction `json:"toolCalls,omitempty"`
}
GenAIAttributeRedactionSettings Fine-grained redaction policies for GenAI attributes, applied by the Collector before export. Conversation names, conversation content, tool-call I/O and tool-call error messages are controlled independently, e.g. to keep conversation content private while still storing names.
type GenerativeAiEvaluationDefinition ¶ added in v1.23.0
type GenerativeAiEvaluationDefinition struct {
Kind GenerativeAiEvaluationDefinitionKind `json:"kind"`
Metadata GenerativeAiEvaluationMetadata `json:"metadata"`
Spec GenerativeAiEvaluationSpec `json:"spec"`
}
GenerativeAiEvaluationDefinition defines model for GenerativeAiEvaluationDefinition.
type GenerativeAiEvaluationDefinitionKind ¶ added in v1.23.0
type GenerativeAiEvaluationDefinitionKind string
GenerativeAiEvaluationDefinitionKind defines model for GenerativeAiEvaluationDefinition.Kind.
const (
Dash0GenerativeAiEvaluation GenerativeAiEvaluationDefinitionKind = "Dash0GenerativeAiEvaluation"
)
Defines values for GenerativeAiEvaluationDefinitionKind.
func (GenerativeAiEvaluationDefinitionKind) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationDefinitionKind enum.
type GenerativeAiEvaluationDisplay ¶ added in v1.23.0
type GenerativeAiEvaluationDisplay struct {
// Description Optional free-text note on what this evaluation judges and why. It carries no meaning for the judge itself; the rubric the model follows is the judge's prompts.
Description *string `json:"description,omitempty"`
Name string `json:"name"`
}
GenerativeAiEvaluationDisplay defines model for GenerativeAiEvaluationDisplay.
type GenerativeAiEvaluationGroupAnnotations ¶ added in v1.23.0
type GenerativeAiEvaluationGroupAnnotations struct {
// Dash0ComcreatedAt Timestamp when the rule was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComcreatedBy The member ID of the user who originally created the eval. Set by the server; read-only. Absent when no user was behind the create (operator, Terraform, API) or the eval predates this annotation and its first version had no recorded author.
Dash0ComcreatedBy *string `json:"dash0.com/created-by,omitempty"`
// Dash0ComdeletedAt Soft-delete timestamp. Present when the rule has been deleted but not yet purged. Set by the server; read-only.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Note: this resource type does not currently enforce sharing; the field is accepted but has no effect on access.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
GenerativeAiEvaluationGroupAnnotations defines model for GenerativeAiEvaluationGroupAnnotations.
type GenerativeAiEvaluationIntent ¶ added in v1.23.0
type GenerativeAiEvaluationIntent string
GenerativeAiEvaluationIntent - `positive`: this label represents a desirable outcome. - `neutral`: this label carries no polarity. - `negative`: this label represents an undesirable outcome.
const ( GenerativeAiEvaluationIntentNegative GenerativeAiEvaluationIntent = "negative" GenerativeAiEvaluationIntentNeutral GenerativeAiEvaluationIntent = "neutral" GenerativeAiEvaluationIntentPositive GenerativeAiEvaluationIntent = "positive" )
Defines values for GenerativeAiEvaluationIntent.
func (GenerativeAiEvaluationIntent) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationIntent) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationIntent enum.
type GenerativeAiEvaluationJudge ¶ added in v1.23.0
type GenerativeAiEvaluationJudge struct {
// AllowPartialPrompt Judge spans that carry only some of the attributes the user prompt references. A
// missing or empty attribute is replaced with `<missing attribute key>`. A span is still
// skipped when no referenced attribute resolves to non-redacted content. Defaults to false.
AllowPartialPrompt *bool `json:"allowPartialPrompt,omitempty"`
// Model The model class used to judge an evaluation. Availability depends on the region and
// evaluation workload. Dash0 manages the serving model privately.
//
// - `light`: Fast, low-cost evaluations.
// - `standard`: Balanced quality and cost.
Model GenerativeAiEvaluationModel `json:"model"`
Output GenerativeAiEvaluationJudgeOutput `json:"output"`
SystemPrompt string `json:"systemPrompt"`
// UserPrompt The prompt sent to the judge for each evaluated span. `{{ key }}` is replaced with the
// value of the span or resource attribute `key`. A span is skipped when a referenced
// attribute is missing or empty, unless `allowPartialPrompt` is set.
UserPrompt string `json:"userPrompt"`
}
GenerativeAiEvaluationJudge defines model for GenerativeAiEvaluationJudge.
type GenerativeAiEvaluationJudgeOutput ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutput struct {
// contains filtered or unexported fields
}
GenerativeAiEvaluationJudgeOutput defines model for GenerativeAiEvaluationJudgeOutput.
func (GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputBoolean ¶ added in v1.23.0
func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputBoolean() (GenerativeAiEvaluationJudgeOutputBoolean, error)
AsGenerativeAiEvaluationJudgeOutputBoolean returns the union data inside the GenerativeAiEvaluationJudgeOutput as a GenerativeAiEvaluationJudgeOutputBoolean
func (GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputCategorical ¶ added in v1.23.0
func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputCategorical() (GenerativeAiEvaluationJudgeOutputCategorical, error)
AsGenerativeAiEvaluationJudgeOutputCategorical returns the union data inside the GenerativeAiEvaluationJudgeOutput as a GenerativeAiEvaluationJudgeOutputCategorical
func (GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputNumeric ¶ added in v1.23.0
func (t GenerativeAiEvaluationJudgeOutput) AsGenerativeAiEvaluationJudgeOutputNumeric() (GenerativeAiEvaluationJudgeOutputNumeric, error)
AsGenerativeAiEvaluationJudgeOutputNumeric returns the union data inside the GenerativeAiEvaluationJudgeOutput as a GenerativeAiEvaluationJudgeOutputNumeric
func (*GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputBoolean ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputBoolean(v GenerativeAiEvaluationJudgeOutputBoolean) error
FromGenerativeAiEvaluationJudgeOutputBoolean overwrites any union data inside the GenerativeAiEvaluationJudgeOutput as the provided GenerativeAiEvaluationJudgeOutputBoolean
func (*GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputCategorical ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputCategorical(v GenerativeAiEvaluationJudgeOutputCategorical) error
FromGenerativeAiEvaluationJudgeOutputCategorical overwrites any union data inside the GenerativeAiEvaluationJudgeOutput as the provided GenerativeAiEvaluationJudgeOutputCategorical
func (*GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputNumeric ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) FromGenerativeAiEvaluationJudgeOutputNumeric(v GenerativeAiEvaluationJudgeOutputNumeric) error
FromGenerativeAiEvaluationJudgeOutputNumeric overwrites any union data inside the GenerativeAiEvaluationJudgeOutput as the provided GenerativeAiEvaluationJudgeOutputNumeric
func (GenerativeAiEvaluationJudgeOutput) MarshalJSON ¶ added in v1.23.0
func (t GenerativeAiEvaluationJudgeOutput) MarshalJSON() ([]byte, error)
func (*GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputBoolean ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputBoolean(v GenerativeAiEvaluationJudgeOutputBoolean) error
MergeGenerativeAiEvaluationJudgeOutputBoolean performs a merge with any union data inside the GenerativeAiEvaluationJudgeOutput, using the provided GenerativeAiEvaluationJudgeOutputBoolean
func (*GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputCategorical ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputCategorical(v GenerativeAiEvaluationJudgeOutputCategorical) error
MergeGenerativeAiEvaluationJudgeOutputCategorical performs a merge with any union data inside the GenerativeAiEvaluationJudgeOutput, using the provided GenerativeAiEvaluationJudgeOutputCategorical
func (*GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputNumeric ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) MergeGenerativeAiEvaluationJudgeOutputNumeric(v GenerativeAiEvaluationJudgeOutputNumeric) error
MergeGenerativeAiEvaluationJudgeOutputNumeric performs a merge with any union data inside the GenerativeAiEvaluationJudgeOutput, using the provided GenerativeAiEvaluationJudgeOutputNumeric
func (*GenerativeAiEvaluationJudgeOutput) UnmarshalJSON ¶ added in v1.23.0
func (t *GenerativeAiEvaluationJudgeOutput) UnmarshalJSON(b []byte) error
type GenerativeAiEvaluationJudgeOutputBoolean ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputBoolean struct {
Kind GenerativeAiEvaluationJudgeOutputBooleanKind `json:"kind"`
}
GenerativeAiEvaluationJudgeOutputBoolean Carries no configuration, so it has no `spec`. `true` is always the desirable outcome, so a verdict is labelled "pass"/"fail" unconditionally. Write the rubric so that `true` means the eval passed.
type GenerativeAiEvaluationJudgeOutputBooleanKind ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputBooleanKind string
GenerativeAiEvaluationJudgeOutputBooleanKind defines model for GenerativeAiEvaluationJudgeOutputBoolean.Kind.
const (
Boolean GenerativeAiEvaluationJudgeOutputBooleanKind = "boolean"
)
Defines values for GenerativeAiEvaluationJudgeOutputBooleanKind.
func (GenerativeAiEvaluationJudgeOutputBooleanKind) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationJudgeOutputBooleanKind) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationJudgeOutputBooleanKind enum.
type GenerativeAiEvaluationJudgeOutputCategorical ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputCategorical struct {
Kind GenerativeAiEvaluationJudgeOutputCategoricalKind `json:"kind"`
Spec GenerativeAiEvaluationJudgeOutputCategoricalSpec `json:"spec"`
}
GenerativeAiEvaluationJudgeOutputCategorical defines model for GenerativeAiEvaluationJudgeOutputCategorical.
type GenerativeAiEvaluationJudgeOutputCategoricalItem ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputCategoricalItem struct {
// Intent Defaults to no declared intent, in which case this label renders without polarity.
Intent *GenerativeAiEvaluationIntent `json:"intent,omitempty"`
Label string `json:"label"`
}
GenerativeAiEvaluationJudgeOutputCategoricalItem defines model for GenerativeAiEvaluationJudgeOutputCategoricalItem.
type GenerativeAiEvaluationJudgeOutputCategoricalKind ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputCategoricalKind string
GenerativeAiEvaluationJudgeOutputCategoricalKind defines model for GenerativeAiEvaluationJudgeOutputCategorical.Kind.
const (
Categorical GenerativeAiEvaluationJudgeOutputCategoricalKind = "categorical"
)
Defines values for GenerativeAiEvaluationJudgeOutputCategoricalKind.
func (GenerativeAiEvaluationJudgeOutputCategoricalKind) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationJudgeOutputCategoricalKind) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationJudgeOutputCategoricalKind enum.
type GenerativeAiEvaluationJudgeOutputCategoricalSpec ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputCategoricalSpec struct {
Options []GenerativeAiEvaluationJudgeOutputCategoricalItem `json:"options"`
}
GenerativeAiEvaluationJudgeOutputCategoricalSpec defines model for GenerativeAiEvaluationJudgeOutputCategoricalSpec.
type GenerativeAiEvaluationJudgeOutputNumeric ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputNumeric struct {
Kind GenerativeAiEvaluationJudgeOutputNumericKind `json:"kind"`
// Spec Scores are between 0 and 1, inclusive. A higher score is always the desirable
// outcome. Write the rubric so that 1 is the best result.
Spec GenerativeAiEvaluationJudgeOutputNumericSpec `json:"spec"`
}
GenerativeAiEvaluationJudgeOutputNumeric defines model for GenerativeAiEvaluationJudgeOutputNumeric.
type GenerativeAiEvaluationJudgeOutputNumericKind ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputNumericKind string
GenerativeAiEvaluationJudgeOutputNumericKind defines model for GenerativeAiEvaluationJudgeOutputNumeric.Kind.
const (
Numeric GenerativeAiEvaluationJudgeOutputNumericKind = "numeric"
)
Defines values for GenerativeAiEvaluationJudgeOutputNumericKind.
func (GenerativeAiEvaluationJudgeOutputNumericKind) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationJudgeOutputNumericKind) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationJudgeOutputNumericKind enum.
type GenerativeAiEvaluationJudgeOutputNumericSpec ¶ added in v1.23.0
type GenerativeAiEvaluationJudgeOutputNumericSpec struct {
// Threshold A value between 0 and 1, inclusive. Absent when the eval declares no
// threshold.
Threshold *float32 `json:"threshold,omitempty"`
}
GenerativeAiEvaluationJudgeOutputNumericSpec Scores are between 0 and 1, inclusive. A higher score is always the desirable outcome. Write the rubric so that 1 is the best result.
type GenerativeAiEvaluationLabels ¶ added in v1.23.0
type GenerativeAiEvaluationLabels struct {
// Dash0Comdataset Dataset this rule belongs to. Defaults to the default dataset when absent.
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
// Dash0Comid Unique internal ID of the eval config. Set by the server on creation; do not set manually.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for API-managed resources (e.g. the CRD name from an operator or Terraform resource ID). Empty for user-created rules; non-empty for rules created via the internal API.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
// Dash0Comversion Current version of the rule. Needs to be set when updating a rule to prevent conflicting writes.
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
GenerativeAiEvaluationLabels defines model for GenerativeAiEvaluationLabels.
type GenerativeAiEvaluationMatch ¶ added in v1.23.0
type GenerativeAiEvaluationMatch struct {
// Filters All filters must match. Create and update requests must include an is_set filter for gen_ai.operation.name without values.
Filters FilterCriteria `json:"filters"`
}
GenerativeAiEvaluationMatch defines model for GenerativeAiEvaluationMatch.
type GenerativeAiEvaluationMetadata ¶ added in v1.23.0
type GenerativeAiEvaluationMetadata struct {
Annotations *GenerativeAiEvaluationGroupAnnotations `json:"annotations,omitempty"`
Labels *GenerativeAiEvaluationLabels `json:"labels,omitempty"`
// Name Identifies the evaluation within its dataset and cannot change after create. The display name is `spec.display.name`.
Name string `json:"name"`
}
GenerativeAiEvaluationMetadata defines model for GenerativeAiEvaluationMetadata.
type GenerativeAiEvaluationModel ¶ added in v1.23.0
type GenerativeAiEvaluationModel string
GenerativeAiEvaluationModel The model class used to judge an evaluation. Availability depends on the region and evaluation workload. Dash0 manages the serving model privately.
- `light`: Fast, low-cost evaluations. - `standard`: Balanced quality and cost.
const ( GenerativeAiEvaluationModelLight GenerativeAiEvaluationModel = "light" GenerativeAiEvaluationModelStandard GenerativeAiEvaluationModel = "standard" )
Defines values for GenerativeAiEvaluationModel.
func (GenerativeAiEvaluationModel) Valid ¶ added in v1.29.0
func (e GenerativeAiEvaluationModel) Valid() bool
Valid indicates whether the value is a known member of the GenerativeAiEvaluationModel enum.
type GenerativeAiEvaluationResponse ¶ added in v1.23.0
type GenerativeAiEvaluationResponse = GenerativeAiEvaluationDefinition
GenerativeAiEvaluationResponse defines model for GenerativeAiEvaluationResponse.
type GenerativeAiEvaluationSampling ¶ added in v1.23.0
type GenerativeAiEvaluationSampling struct {
// Rate A value between 0 and 1 reflecting the percentage of traces that should be sampled probabilistically.
// This sampling decision is made deterministically by inspecting the trace ID.
Rate float32 `json:"rate"`
}
GenerativeAiEvaluationSampling defines model for GenerativeAiEvaluationSampling.
type GenerativeAiEvaluationSpec ¶ added in v1.23.0
type GenerativeAiEvaluationSpec struct {
Display GenerativeAiEvaluationDisplay `json:"display"`
Enabled bool `json:"enabled"`
Judge GenerativeAiEvaluationJudge `json:"judge"`
Match GenerativeAiEvaluationMatch `json:"match"`
Sample GenerativeAiEvaluationSampling `json:"sample"`
}
GenerativeAiEvaluationSpec defines model for GenerativeAiEvaluationSpec.
type GeoLocationSettings ¶ added in v1.12.3
type GeoLocationSettings struct {
// EndUserGeoLocationStorageStrategy How much geolocation we derive from end-user IP addresses and store.
EndUserGeoLocationStorageStrategy GeoLocationStorageStrategy `json:"endUserGeoLocationStorageStrategy"`
}
GeoLocationSettings defines model for GeoLocationSettings.
type GeoLocationStorageStrategy ¶ added in v1.12.3
type GeoLocationStorageStrategy string
GeoLocationStorageStrategy What kind of geolocation information we are allowed to derive and store. Clients must accept values they do not recognize.
const ( GeoLocationStorageStrategyDoNotStore GeoLocationStorageStrategy = "do_not_store" GeoLocationStorageStrategyUpToCity GeoLocationStorageStrategy = "up_to_city" GeoLocationStorageStrategyUpToCountry GeoLocationStorageStrategy = "up_to_country" )
Defines values for GeoLocationStorageStrategy.
func (GeoLocationStorageStrategy) Valid ¶ added in v1.29.0
func (e GeoLocationStorageStrategy) Valid() bool
Valid indicates whether the value is a known member of the GeoLocationStorageStrategy enum.
type GetAgenticWorkflowsResponse ¶ added in v1.17.0
type GetAgenticWorkflowsResponse struct {
AgenticWorkflows []AgenticWorkflowDefinition `json:"agenticWorkflows"`
}
GetAgenticWorkflowsResponse defines model for GetAgenticWorkflowsResponse.
type GetApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
type GetApiAgent0CustomSkillsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
func ParseGetApiAgent0CustomSkillsOriginOrIdResponse(rsp *http.Response) (*GetApiAgent0CustomSkillsOriginOrIdResponse, error)
ParseGetApiAgent0CustomSkillsOriginOrIdResponse parses an HTTP response from a GetApiAgent0CustomSkillsOriginOrIdWithResponse call
func (GetApiAgent0CustomSkillsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAgent0CustomSkillsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200() *SkillResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAgent0CustomSkillsOriginOrIdResponse) Status ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAgent0CustomSkillsOriginOrIdResponse) StatusCode ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAgent0CustomSkillsParams ¶ added in v1.29.0
type GetApiAgent0CustomSkillsParams struct {
// OriginPrefix Filter by origin prefix.
OriginPrefix *string `form:"originPrefix,omitempty" json:"originPrefix,omitempty"`
// Enabled Filter by whether the skill is on for the calling user. When omitted, skills are returned whether they are on or off.
Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"`
// Name Filter by exact skill name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
}
GetApiAgent0CustomSkillsParams defines parameters for GetApiAgent0CustomSkills.
type GetApiAgent0CustomSkillsResponse ¶ added in v1.29.0
type GetApiAgent0CustomSkillsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillListResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAgent0CustomSkillsResponse ¶ added in v1.29.0
func ParseGetApiAgent0CustomSkillsResponse(rsp *http.Response) (*GetApiAgent0CustomSkillsResponse, error)
ParseGetApiAgent0CustomSkillsResponse parses an HTTP response from a GetApiAgent0CustomSkillsWithResponse call
func (GetApiAgent0CustomSkillsResponse) ContentType ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAgent0CustomSkillsResponse) GetBody ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAgent0CustomSkillsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) GetJSON200() *SkillListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAgent0CustomSkillsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAgent0CustomSkillsResponse) Status ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAgent0CustomSkillsResponse) StatusCode ¶ added in v1.29.0
func (r GetApiAgent0CustomSkillsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAgenticWorkflowsOriginOrIdParams ¶ added in v1.17.0
type GetApiAgenticWorkflowsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiAgenticWorkflowsOriginOrIdParams defines parameters for GetApiAgenticWorkflowsOriginOrId.
type GetApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
type GetApiAgenticWorkflowsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgenticWorkflowResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
func ParseGetApiAgenticWorkflowsOriginOrIdResponse(rsp *http.Response) (*GetApiAgenticWorkflowsOriginOrIdResponse, error)
ParseGetApiAgenticWorkflowsOriginOrIdResponse parses an HTTP response from a GetApiAgenticWorkflowsOriginOrIdWithResponse call
func (GetApiAgenticWorkflowsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAgenticWorkflowsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAgenticWorkflowsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetJSON200() *AgenticWorkflowResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAgenticWorkflowsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAgenticWorkflowsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r GetApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAgenticWorkflowsParams ¶ added in v1.17.0
type GetApiAgenticWorkflowsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
// FolderPath Filter by folder path (exact match on dash0.com/folder-path annotation).
FolderPath *string `form:"folderPath,omitempty" json:"folderPath,omitempty"`
}
GetApiAgenticWorkflowsParams defines parameters for GetApiAgenticWorkflows.
type GetApiAgenticWorkflowsResponse ¶ added in v1.17.0
type GetApiAgenticWorkflowsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetAgenticWorkflowsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAgenticWorkflowsResponse ¶ added in v1.17.0
func ParseGetApiAgenticWorkflowsResponse(rsp *http.Response) (*GetApiAgenticWorkflowsResponse, error)
ParseGetApiAgenticWorkflowsResponse parses an HTTP response from a GetApiAgenticWorkflowsWithResponse call
func (GetApiAgenticWorkflowsResponse) ContentType ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAgenticWorkflowsResponse) GetBody ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAgenticWorkflowsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsResponse) GetJSON200() *GetAgenticWorkflowsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAgenticWorkflowsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAgenticWorkflowsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAgenticWorkflowsResponse) Status ¶ added in v1.17.0
func (r GetApiAgenticWorkflowsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAgenticWorkflowsResponse) StatusCode ¶ added in v1.17.0
func (r GetApiAgenticWorkflowsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAlertingCheckRulesOriginOrIdParams ¶
type GetApiAlertingCheckRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiAlertingCheckRulesOriginOrIdParams defines parameters for GetApiAlertingCheckRulesOriginOrId.
type GetApiAlertingCheckRulesOriginOrIdResponse ¶
type GetApiAlertingCheckRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAlertingCheckRulesOriginOrIdResponse ¶
func ParseGetApiAlertingCheckRulesOriginOrIdResponse(rsp *http.Response) (*GetApiAlertingCheckRulesOriginOrIdResponse, error)
ParseGetApiAlertingCheckRulesOriginOrIdResponse parses an HTTP response from a GetApiAlertingCheckRulesOriginOrIdWithResponse call
func (GetApiAlertingCheckRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAlertingCheckRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAlertingCheckRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetJSON200() *PrometheusAlertRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAlertingCheckRulesOriginOrIdResponse) Status ¶
func (r GetApiAlertingCheckRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAlertingCheckRulesOriginOrIdResponse) StatusCode ¶
func (r GetApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAlertingCheckRulesParams ¶
type GetApiAlertingCheckRulesParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
// IdPrefix If provided, only check rules for which the origin starts with the given string are returned. (deprecated)
//
// The `originPrefix` query parameter takes precedence over this parameter if both are provided.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
IdPrefix *string `form:"idPrefix,omitempty" json:"idPrefix,omitempty"`
// OriginPrefix If provided, only check rules for which the origin starts with the given string are returned.
OriginPrefix *string `form:"originPrefix,omitempty" json:"originPrefix,omitempty"`
}
GetApiAlertingCheckRulesParams defines parameters for GetApiAlertingCheckRules.
type GetApiAlertingCheckRulesResponse ¶
type GetApiAlertingCheckRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]PrometheusAlertRuleApiListItem
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAlertingCheckRulesResponse ¶
func ParseGetApiAlertingCheckRulesResponse(rsp *http.Response) (*GetApiAlertingCheckRulesResponse, error)
ParseGetApiAlertingCheckRulesResponse parses an HTTP response from a GetApiAlertingCheckRulesWithResponse call
func (GetApiAlertingCheckRulesResponse) ContentType ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAlertingCheckRulesResponse) GetBody ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAlertingCheckRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesResponse) GetJSON200() *[]PrometheusAlertRuleApiListItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAlertingCheckRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAlertingCheckRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAlertingCheckRulesResponse) Status ¶
func (r GetApiAlertingCheckRulesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAlertingCheckRulesResponse) StatusCode ¶
func (r GetApiAlertingCheckRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
type GetApiAuthTokensOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthTokenResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
func ParseGetApiAuthTokensOriginOrIdResponse(rsp *http.Response) (*GetApiAuthTokensOriginOrIdResponse, error)
ParseGetApiAuthTokensOriginOrIdResponse parses an HTTP response from a GetApiAuthTokensOriginOrIdWithResponse call
func (GetApiAuthTokensOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiAuthTokensOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAuthTokensOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiAuthTokensOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAuthTokensOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAuthTokensOriginOrIdResponse) GetJSON200() *AuthTokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAuthTokensOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r GetApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiAuthTokensOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAuthTokensOriginOrIdResponse) Status ¶ added in v1.25.0
func (r GetApiAuthTokensOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAuthTokensOriginOrIdResponse) StatusCode ¶ added in v1.25.0
func (r GetApiAuthTokensOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAuthTokensResponse ¶ added in v1.25.0
type GetApiAuthTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthTokenListResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAuthTokensResponse ¶ added in v1.25.0
func ParseGetApiAuthTokensResponse(rsp *http.Response) (*GetApiAuthTokensResponse, error)
ParseGetApiAuthTokensResponse parses an HTTP response from a GetApiAuthTokensWithResponse call
func (GetApiAuthTokensResponse) ContentType ¶ added in v1.29.0
func (r GetApiAuthTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAuthTokensResponse) GetBody ¶ added in v1.29.0
func (r GetApiAuthTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAuthTokensResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAuthTokensResponse) GetJSON200() *AuthTokenListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAuthTokensResponse) GetJSON403 ¶ added in v1.29.0
func (r GetApiAuthTokensResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiAuthTokensResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAuthTokensResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAuthTokensResponse) Status ¶ added in v1.25.0
func (r GetApiAuthTokensResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAuthTokensResponse) StatusCode ¶ added in v1.25.0
func (r GetApiAuthTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
type GetApiAwsMetricScrapeConfigsIntegrationIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AwsMetricScrapeConfigDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
func ParseGetApiAwsMetricScrapeConfigsIntegrationIdResponse(rsp *http.Response) (*GetApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
ParseGetApiAwsMetricScrapeConfigsIntegrationIdResponse parses an HTTP response from a GetApiAwsMetricScrapeConfigsIntegrationIdWithResponse call
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200() *AwsMetricScrapeConfigDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) Status ¶ added in v1.28.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode ¶ added in v1.28.0
func (r GetApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiDashboardsOriginOrIdParams ¶
type GetApiDashboardsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiDashboardsOriginOrIdParams defines parameters for GetApiDashboardsOriginOrId.
type GetApiDashboardsOriginOrIdResponse ¶
type GetApiDashboardsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DashboardDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiDashboardsOriginOrIdResponse ¶
func ParseGetApiDashboardsOriginOrIdResponse(rsp *http.Response) (*GetApiDashboardsOriginOrIdResponse, error)
ParseGetApiDashboardsOriginOrIdResponse parses an HTTP response from a GetApiDashboardsOriginOrIdWithResponse call
func (GetApiDashboardsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiDashboardsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiDashboardsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiDashboardsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiDashboardsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiDashboardsOriginOrIdResponse) GetJSON200() *DashboardDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiDashboardsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiDashboardsOriginOrIdResponse) Status ¶
func (r GetApiDashboardsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDashboardsOriginOrIdResponse) StatusCode ¶
func (r GetApiDashboardsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiDashboardsParams ¶
type GetApiDashboardsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiDashboardsParams defines parameters for GetApiDashboards.
type GetApiDashboardsResponse ¶
type GetApiDashboardsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DashboardApiListItem
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiDashboardsResponse ¶
func ParseGetApiDashboardsResponse(rsp *http.Response) (*GetApiDashboardsResponse, error)
ParseGetApiDashboardsResponse parses an HTTP response from a GetApiDashboardsWithResponse call
func (GetApiDashboardsResponse) ContentType ¶ added in v1.29.0
func (r GetApiDashboardsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiDashboardsResponse) GetBody ¶ added in v1.29.0
func (r GetApiDashboardsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiDashboardsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiDashboardsResponse) GetJSON200() *[]DashboardApiListItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiDashboardsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiDashboardsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiDashboardsResponse) Status ¶
func (r GetApiDashboardsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDashboardsResponse) StatusCode ¶
func (r GetApiDashboardsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
type GetApiDatasetsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DatasetResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
func ParseGetApiDatasetsOriginOrIdResponse(rsp *http.Response) (*GetApiDatasetsOriginOrIdResponse, error)
ParseGetApiDatasetsOriginOrIdResponse parses an HTTP response from a GetApiDatasetsOriginOrIdWithResponse call
func (GetApiDatasetsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiDatasetsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiDatasetsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiDatasetsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiDatasetsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiDatasetsOriginOrIdResponse) GetJSON200() *DatasetResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiDatasetsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiDatasetsOriginOrIdResponse) Status ¶ added in v1.24.0
func (r GetApiDatasetsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDatasetsOriginOrIdResponse) StatusCode ¶ added in v1.24.0
func (r GetApiDatasetsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiDatasetsResponse ¶ added in v1.24.0
type GetApiDatasetsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DatasetListResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiDatasetsResponse ¶ added in v1.24.0
func ParseGetApiDatasetsResponse(rsp *http.Response) (*GetApiDatasetsResponse, error)
ParseGetApiDatasetsResponse parses an HTTP response from a GetApiDatasetsWithResponse call
func (GetApiDatasetsResponse) ContentType ¶ added in v1.29.0
func (r GetApiDatasetsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiDatasetsResponse) GetBody ¶ added in v1.29.0
func (r GetApiDatasetsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiDatasetsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiDatasetsResponse) GetJSON200() *DatasetListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiDatasetsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiDatasetsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiDatasetsResponse) Status ¶ added in v1.24.0
func (r GetApiDatasetsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDatasetsResponse) StatusCode ¶ added in v1.24.0
func (r GetApiDatasetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiEdgeSettingsParams ¶ added in v1.29.0
type GetApiEdgeSettingsParams struct {
// IfNoneMatch The `ETag` of an earlier response. When it still matches the current settings, the response is a `304` without a body.
IfNoneMatch *string `json:"If-None-Match,omitempty"`
}
GetApiEdgeSettingsParams defines parameters for GetApiEdgeSettings.
type GetApiEdgeSettingsResponse ¶ added in v1.12.3
type GetApiEdgeSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SettingsPerOrganizationAndDatasetInfo
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetApiEdgeSettingsResponse200Headers
// Headers304 the parsed response headers for an HTTP 304 response
Headers304 *GetApiEdgeSettingsResponse304Headers
}
func ParseGetApiEdgeSettingsResponse ¶ added in v1.12.3
func ParseGetApiEdgeSettingsResponse(rsp *http.Response) (*GetApiEdgeSettingsResponse, error)
ParseGetApiEdgeSettingsResponse parses an HTTP response from a GetApiEdgeSettingsWithResponse call
func (GetApiEdgeSettingsResponse) ContentType ¶ added in v1.29.0
func (r GetApiEdgeSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiEdgeSettingsResponse) GetBody ¶ added in v1.29.0
func (r GetApiEdgeSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiEdgeSettingsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiEdgeSettingsResponse) GetJSON200() *SettingsPerOrganizationAndDatasetInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiEdgeSettingsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiEdgeSettingsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiEdgeSettingsResponse) Status ¶ added in v1.12.3
func (r GetApiEdgeSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiEdgeSettingsResponse) StatusCode ¶ added in v1.12.3
func (r GetApiEdgeSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiEdgeSettingsResponse200Headers ¶ added in v1.29.0
type GetApiEdgeSettingsResponse200Headers struct {
ETag *string
}
GetApiEdgeSettingsResponse200Headers the declared response headers of an HTTP 200 response for GetApiEdgeSettings
type GetApiEdgeSettingsResponse304Headers ¶ added in v1.29.0
type GetApiEdgeSettingsResponse304Headers struct {
ETag *string
}
GetApiEdgeSettingsResponse304Headers the declared response headers of an HTTP 304 response for GetApiEdgeSettings
type GetApiMembersInvitationsResponse ¶ added in v1.23.0
type GetApiMembersInvitationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]MemberInvitationDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiMembersInvitationsResponse ¶ added in v1.23.0
func ParseGetApiMembersInvitationsResponse(rsp *http.Response) (*GetApiMembersInvitationsResponse, error)
ParseGetApiMembersInvitationsResponse parses an HTTP response from a GetApiMembersInvitationsWithResponse call
func (GetApiMembersInvitationsResponse) ContentType ¶ added in v1.29.0
func (r GetApiMembersInvitationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiMembersInvitationsResponse) GetBody ¶ added in v1.29.0
func (r GetApiMembersInvitationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiMembersInvitationsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiMembersInvitationsResponse) GetJSON200() *[]MemberInvitationDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiMembersInvitationsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiMembersInvitationsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiMembersInvitationsResponse) Status ¶ added in v1.23.0
func (r GetApiMembersInvitationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiMembersInvitationsResponse) StatusCode ¶ added in v1.23.0
func (r GetApiMembersInvitationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiMembersResponse ¶ added in v1.4.0
type GetApiMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]MemberDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiMembersResponse ¶ added in v1.4.0
func ParseGetApiMembersResponse(rsp *http.Response) (*GetApiMembersResponse, error)
ParseGetApiMembersResponse parses an HTTP response from a GetApiMembersWithResponse call
func (GetApiMembersResponse) ContentType ¶ added in v1.29.0
func (r GetApiMembersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiMembersResponse) GetBody ¶ added in v1.29.0
func (r GetApiMembersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiMembersResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiMembersResponse) GetJSON200() *[]MemberDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiMembersResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiMembersResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiMembersResponse) Status ¶ added in v1.4.0
func (r GetApiMembersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiMembersResponse) StatusCode ¶ added in v1.4.0
func (r GetApiMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
type GetApiNotificationChannelsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NotificationChannelDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
func ParseGetApiNotificationChannelsOriginOrIdResponse(rsp *http.Response) (*GetApiNotificationChannelsOriginOrIdResponse, error)
ParseGetApiNotificationChannelsOriginOrIdResponse parses an HTTP response from a GetApiNotificationChannelsOriginOrIdWithResponse call
func (GetApiNotificationChannelsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiNotificationChannelsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotificationChannelsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotificationChannelsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiNotificationChannelsOriginOrIdResponse) GetJSON200() *NotificationChannelDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotificationChannelsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiNotificationChannelsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r GetApiNotificationChannelsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotificationChannelsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r GetApiNotificationChannelsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotificationChannelsResponse ¶ added in v1.9.0
type GetApiNotificationChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NotificationChannelDefinitions
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiNotificationChannelsResponse ¶ added in v1.9.0
func ParseGetApiNotificationChannelsResponse(rsp *http.Response) (*GetApiNotificationChannelsResponse, error)
ParseGetApiNotificationChannelsResponse parses an HTTP response from a GetApiNotificationChannelsWithResponse call
func (GetApiNotificationChannelsResponse) ContentType ¶ added in v1.29.0
func (r GetApiNotificationChannelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotificationChannelsResponse) GetBody ¶ added in v1.29.0
func (r GetApiNotificationChannelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotificationChannelsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiNotificationChannelsResponse) GetJSON200() *NotificationChannelDefinitions
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotificationChannelsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiNotificationChannelsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiNotificationChannelsResponse) Status ¶ added in v1.9.0
func (r GetApiNotificationChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotificationChannelsResponse) StatusCode ¶ added in v1.9.0
func (r GetApiNotificationChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1FormatQueryParams ¶ added in v1.13.1
type GetApiPrometheusApiV1FormatQueryParams struct {
// Query PromQL expression to validate and pretty-print. The response `data` is the
// formatted expression. If the query contains Dash0 template variables (e.g.
// `$__range`, `$__interval`), the original query is returned unmodified.
Query string `form:"query" json:"query"`
}
GetApiPrometheusApiV1FormatQueryParams defines parameters for GetApiPrometheusApiV1FormatQuery.
type GetApiPrometheusApiV1FormatQueryResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1FormatQueryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusFormatQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1FormatQueryResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1FormatQueryResponse(rsp *http.Response) (*GetApiPrometheusApiV1FormatQueryResponse, error)
ParseGetApiPrometheusApiV1FormatQueryResponse parses an HTTP response from a GetApiPrometheusApiV1FormatQueryWithResponse call
func (GetApiPrometheusApiV1FormatQueryResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1FormatQueryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1FormatQueryResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1FormatQueryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1FormatQueryResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1FormatQueryResponse) GetJSON200() *PrometheusFormatQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1FormatQueryResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1FormatQueryResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1FormatQueryResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1FormatQueryResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1FormatQueryResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1FormatQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1LabelLabelNameValuesParams ¶ added in v1.13.1
type GetApiPrometheusApiV1LabelLabelNameValuesParams struct {
// Start Start timestamp to restrict the set of returned label values. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `form:"start,omitempty" json:"start,omitempty"`
// End End timestamp to restrict the set of returned label values. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `form:"end,omitempty" json:"end,omitempty"`
// Match Repeated series selector that restricts the label values returned.
Match *[]string `form:"match[],omitempty" json:"match[],omitempty"`
// Limit Maximum number of results. Defaults to and is capped at the server-configured maximum.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1LabelLabelNameValuesParams defines parameters for GetApiPrometheusApiV1LabelLabelNameValues.
type GetApiPrometheusApiV1LabelLabelNameValuesResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1LabelLabelNameValuesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusLabelNamesOrValuesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1LabelLabelNameValuesResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1LabelLabelNameValuesResponse(rsp *http.Response) (*GetApiPrometheusApiV1LabelLabelNameValuesResponse, error)
ParseGetApiPrometheusApiV1LabelLabelNameValuesResponse parses an HTTP response from a GetApiPrometheusApiV1LabelLabelNameValuesWithResponse call
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1LabelsParams ¶ added in v1.13.1
type GetApiPrometheusApiV1LabelsParams struct {
// Start Start timestamp to restrict the set of returned label names. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `form:"start,omitempty" json:"start,omitempty"`
// End End timestamp to restrict the set of returned label names. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `form:"end,omitempty" json:"end,omitempty"`
// Match Repeated series selector that restricts the label names returned.
Match *[]string `form:"match[],omitempty" json:"match[],omitempty"`
// Limit Maximum number of results. Defaults to and is capped at the server-configured maximum.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1LabelsParams defines parameters for GetApiPrometheusApiV1Labels.
type GetApiPrometheusApiV1LabelsResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1LabelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusLabelNamesOrValuesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1LabelsResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1LabelsResponse(rsp *http.Response) (*GetApiPrometheusApiV1LabelsResponse, error)
ParseGetApiPrometheusApiV1LabelsResponse parses an HTTP response from a GetApiPrometheusApiV1LabelsWithResponse call
func (GetApiPrometheusApiV1LabelsResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1LabelsResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1LabelsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelsResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1LabelsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1LabelsResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1LabelsResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1LabelsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1LabelsResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1LabelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1MetadataParams ¶ added in v1.13.1
type GetApiPrometheusApiV1MetadataParams struct {
// Limit Maximum number of metrics to return. When omitted, all metrics are returned.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// LimitPerMetric Maximum number of metadata entries to return per metric.
LimitPerMetric *int64 `form:"limit_per_metric,omitempty" json:"limit_per_metric,omitempty"`
// Metric If provided, only metadata for this metric name is returned. When omitted,
// metadata for all metrics is returned.
Metric *string `form:"metric,omitempty" json:"metric,omitempty"`
// Start Start timestamp. Must be provided together with `end`. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `form:"start,omitempty" json:"start,omitempty"`
// End End timestamp. Must be provided together with `start`. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `form:"end,omitempty" json:"end,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1MetadataParams defines parameters for GetApiPrometheusApiV1Metadata.
type GetApiPrometheusApiV1MetadataResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1MetadataResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusMetadataResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1MetadataResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1MetadataResponse(rsp *http.Response) (*GetApiPrometheusApiV1MetadataResponse, error)
ParseGetApiPrometheusApiV1MetadataResponse parses an HTTP response from a GetApiPrometheusApiV1MetadataWithResponse call
func (GetApiPrometheusApiV1MetadataResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1MetadataResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1MetadataResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1MetadataResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1MetadataResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1MetadataResponse) GetJSON200() *PrometheusMetadataResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1MetadataResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1MetadataResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1MetadataResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1MetadataResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1MetadataResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1MetadataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1QueryParams ¶ added in v1.13.1
type GetApiPrometheusApiV1QueryParams struct {
// Query PromQL expression to evaluate.
Query string `form:"query" json:"query"`
// Time Evaluation timestamp. Defaults to the current server time when omitted. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Time *string `form:"time,omitempty" json:"time,omitempty"`
// Timeout Per-query timeout, clamped to the server-configured maximum. Accepts a duration such as `30s` or `1m`, or a number of seconds.
Timeout *string `form:"timeout,omitempty" json:"timeout,omitempty"`
// Limit Maximum number of returned series. Defaults to and is capped at the
// server-configured maximum.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1QueryParams defines parameters for GetApiPrometheusApiV1Query.
type GetApiPrometheusApiV1QueryRangeParams ¶ added in v1.13.1
type GetApiPrometheusApiV1QueryRangeParams struct {
// Query PromQL expression to evaluate.
Query string `form:"query" json:"query"`
// Start Start timestamp of the range (inclusive). Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `form:"start,omitempty" json:"start,omitempty"`
// End End timestamp of the range (inclusive). Must not be before `start`. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `form:"end,omitempty" json:"end,omitempty"`
// Step Query resolution step width, as a duration or a number of seconds.
Step string `form:"step" json:"step"`
// Timeout Per-query timeout, clamped to the server-configured maximum. Accepts a duration such as `30s` or `1m`, or a number of seconds.
Timeout *string `form:"timeout,omitempty" json:"timeout,omitempty"`
// Limit Maximum number of returned series. Defaults to and is capped at the
// server-configured maximum.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1QueryRangeParams defines parameters for GetApiPrometheusApiV1QueryRange.
type GetApiPrometheusApiV1QueryRangeResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1QueryRangeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1QueryRangeResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1QueryRangeResponse(rsp *http.Response) (*GetApiPrometheusApiV1QueryRangeResponse, error)
ParseGetApiPrometheusApiV1QueryRangeResponse parses an HTTP response from a GetApiPrometheusApiV1QueryRangeWithResponse call
func (GetApiPrometheusApiV1QueryRangeResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryRangeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1QueryRangeResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryRangeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1QueryRangeResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryRangeResponse) GetJSON200() *PrometheusQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1QueryRangeResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryRangeResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1QueryRangeResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1QueryRangeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1QueryRangeResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1QueryRangeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1QueryResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1QueryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1QueryResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1QueryResponse(rsp *http.Response) (*GetApiPrometheusApiV1QueryResponse, error)
ParseGetApiPrometheusApiV1QueryResponse parses an HTTP response from a GetApiPrometheusApiV1QueryWithResponse call
func (GetApiPrometheusApiV1QueryResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1QueryResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1QueryResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryResponse) GetJSON200() *PrometheusQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1QueryResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1QueryResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1QueryResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1QueryResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1QueryResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1QueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1SeriesParams ¶ added in v1.13.1
type GetApiPrometheusApiV1SeriesParams struct {
// Start Start timestamp to restrict the set of returned series. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `form:"start,omitempty" json:"start,omitempty"`
// End End timestamp to restrict the set of returned series. Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `form:"end,omitempty" json:"end,omitempty"`
// Match Repeated series selector that selects the series to return. Optional in Dash0: without
// one, every series in the time range is returned, up to `limit`. Upstream Prometheus
// requires at least one selector.
Match *[]string `form:"match[],omitempty" json:"match[],omitempty"`
// Limit Maximum number of results. Defaults to and is capped at the server-configured maximum.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Dataset Dataset to query. When omitted, the `Dash0-Dataset` request header selects it, and without that header the organization's default dataset is used.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiPrometheusApiV1SeriesParams defines parameters for GetApiPrometheusApiV1Series.
type GetApiPrometheusApiV1SeriesResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1SeriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusSeriesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1SeriesResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1SeriesResponse(rsp *http.Response) (*GetApiPrometheusApiV1SeriesResponse, error)
ParseGetApiPrometheusApiV1SeriesResponse parses an HTTP response from a GetApiPrometheusApiV1SeriesWithResponse call
func (GetApiPrometheusApiV1SeriesResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1SeriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1SeriesResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1SeriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1SeriesResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1SeriesResponse) GetJSON200() *PrometheusSeriesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1SeriesResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1SeriesResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1SeriesResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1SeriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1SeriesResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1SeriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1StatusBuildinfoResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1StatusBuildinfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusBuildInfoResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1StatusBuildinfoResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1StatusBuildinfoResponse(rsp *http.Response) (*GetApiPrometheusApiV1StatusBuildinfoResponse, error)
ParseGetApiPrometheusApiV1StatusBuildinfoResponse parses an HTTP response from a GetApiPrometheusApiV1StatusBuildinfoWithResponse call
func (GetApiPrometheusApiV1StatusBuildinfoResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1StatusBuildinfoResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSON200() *PrometheusBuildInfoResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1StatusBuildinfoResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1StatusBuildinfoResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1StatusBuildinfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPrometheusApiV1StatusRuntimeinfoResponse ¶ added in v1.13.1
type GetApiPrometheusApiV1StatusRuntimeinfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusRuntimeInfoResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParseGetApiPrometheusApiV1StatusRuntimeinfoResponse ¶ added in v1.13.1
func ParseGetApiPrometheusApiV1StatusRuntimeinfoResponse(rsp *http.Response) (*GetApiPrometheusApiV1StatusRuntimeinfoResponse, error)
ParseGetApiPrometheusApiV1StatusRuntimeinfoResponse parses an HTTP response from a GetApiPrometheusApiV1StatusRuntimeinfoWithResponse call
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) ContentType ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetBody ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSON200() *PrometheusRuntimeInfoResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) Status ¶ added in v1.13.1
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPrometheusApiV1StatusRuntimeinfoResponse) StatusCode ¶ added in v1.13.1
func (r GetApiPrometheusApiV1StatusRuntimeinfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiRecordingRulesOriginOrIdParams ¶ added in v1.9.0
type GetApiRecordingRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiRecordingRulesOriginOrIdParams defines parameters for GetApiRecordingRulesOriginOrId.
type GetApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
type GetApiRecordingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *generatedPrometheusRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
func ParseGetApiRecordingRulesOriginOrIdResponse(rsp *http.Response) (*GetApiRecordingRulesOriginOrIdResponse, error)
ParseGetApiRecordingRulesOriginOrIdResponse parses an HTTP response from a GetApiRecordingRulesOriginOrIdWithResponse call
func (GetApiRecordingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiRecordingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiRecordingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiRecordingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiRecordingRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiRecordingRulesOriginOrIdResponse) GetJSON200() *generatedPrometheusRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiRecordingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiRecordingRulesOriginOrIdResponse) Status ¶ added in v1.9.0
func (r GetApiRecordingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiRecordingRulesOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r GetApiRecordingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiRecordingRulesParams ¶ added in v1.9.0
type GetApiRecordingRulesParams struct {
// Dataset Filter by dataset.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
// OriginPrefix Filter by origin prefix.
OriginPrefix *string `form:"originPrefix,omitempty" json:"originPrefix,omitempty"`
}
GetApiRecordingRulesParams defines parameters for GetApiRecordingRules.
type GetApiRecordingRulesResponse ¶ added in v1.9.0
type GetApiRecordingRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]generatedPrometheusRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiRecordingRulesResponse ¶ added in v1.9.0
func ParseGetApiRecordingRulesResponse(rsp *http.Response) (*GetApiRecordingRulesResponse, error)
ParseGetApiRecordingRulesResponse parses an HTTP response from a GetApiRecordingRulesWithResponse call
func (GetApiRecordingRulesResponse) ContentType ¶ added in v1.29.0
func (r GetApiRecordingRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiRecordingRulesResponse) GetBody ¶ added in v1.29.0
func (r GetApiRecordingRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiRecordingRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiRecordingRulesResponse) GetJSON200() *[]generatedPrometheusRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiRecordingRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiRecordingRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiRecordingRulesResponse) Status ¶ added in v1.9.0
func (r GetApiRecordingRulesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiRecordingRulesResponse) StatusCode ¶ added in v1.9.0
func (r GetApiRecordingRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSamplingRulesOriginOrIdParams ¶ added in v1.1.0
type GetApiSamplingRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSamplingRulesOriginOrIdParams defines parameters for GetApiSamplingRulesOriginOrId.
type GetApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
type GetApiSamplingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SamplingRuleResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
func ParseGetApiSamplingRulesOriginOrIdResponse(rsp *http.Response) (*GetApiSamplingRulesOriginOrIdResponse, error)
ParseGetApiSamplingRulesOriginOrIdResponse parses an HTTP response from a GetApiSamplingRulesOriginOrIdWithResponse call
func (GetApiSamplingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiSamplingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSamplingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiSamplingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSamplingRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSamplingRulesOriginOrIdResponse) GetJSON200() *SamplingRuleResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSamplingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSamplingRulesOriginOrIdResponse) Status ¶ added in v1.1.0
func (r GetApiSamplingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSamplingRulesOriginOrIdResponse) StatusCode ¶ added in v1.1.0
func (r GetApiSamplingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSamplingRulesParams ¶ added in v1.1.0
type GetApiSamplingRulesParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSamplingRulesParams defines parameters for GetApiSamplingRules.
type GetApiSamplingRulesResponse ¶ added in v1.1.0
type GetApiSamplingRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetSamplingRulesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSamplingRulesResponse ¶ added in v1.1.0
func ParseGetApiSamplingRulesResponse(rsp *http.Response) (*GetApiSamplingRulesResponse, error)
ParseGetApiSamplingRulesResponse parses an HTTP response from a GetApiSamplingRulesWithResponse call
func (GetApiSamplingRulesResponse) ContentType ¶ added in v1.29.0
func (r GetApiSamplingRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSamplingRulesResponse) GetBody ¶ added in v1.29.0
func (r GetApiSamplingRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSamplingRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSamplingRulesResponse) GetJSON200() *GetSamplingRulesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSamplingRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSamplingRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSamplingRulesResponse) Status ¶ added in v1.1.0
func (r GetApiSamplingRulesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSamplingRulesResponse) StatusCode ¶ added in v1.1.0
func (r GetApiSamplingRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSignalToMetricsOriginOrIdParams ¶ added in v1.9.0
type GetApiSignalToMetricsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSignalToMetricsOriginOrIdParams defines parameters for GetApiSignalToMetricsOriginOrId.
type GetApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
type GetApiSignalToMetricsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignalToMetricsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
func ParseGetApiSignalToMetricsOriginOrIdResponse(rsp *http.Response) (*GetApiSignalToMetricsOriginOrIdResponse, error)
ParseGetApiSignalToMetricsOriginOrIdResponse parses an HTTP response from a GetApiSignalToMetricsOriginOrIdWithResponse call
func (GetApiSignalToMetricsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiSignalToMetricsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSignalToMetricsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSignalToMetricsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSignalToMetricsOriginOrIdResponse) GetJSON200() *SignalToMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSignalToMetricsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSignalToMetricsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r GetApiSignalToMetricsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSignalToMetricsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r GetApiSignalToMetricsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSignalToMetricsParams ¶ added in v1.9.0
type GetApiSignalToMetricsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
// Limit Maximum number of items to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Number of items to skip.
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
// OriginPrefix Filter by origin prefix.
OriginPrefix *string `form:"originPrefix,omitempty" json:"originPrefix,omitempty"`
// Name Case-insensitive substring search on the rule name, or an exact match on the rule id.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// Signal Filter by signal type.
Signal *SignalToMetricsSignalType `form:"signal,omitempty" json:"signal,omitempty"`
// Enabled Filter by enabled state.
Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty"`
}
GetApiSignalToMetricsParams defines parameters for GetApiSignalToMetrics.
type GetApiSignalToMetricsResponse ¶ added in v1.9.0
type GetApiSignalToMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetSignalToMetricsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSignalToMetricsResponse ¶ added in v1.9.0
func ParseGetApiSignalToMetricsResponse(rsp *http.Response) (*GetApiSignalToMetricsResponse, error)
ParseGetApiSignalToMetricsResponse parses an HTTP response from a GetApiSignalToMetricsWithResponse call
func (GetApiSignalToMetricsResponse) ContentType ¶ added in v1.29.0
func (r GetApiSignalToMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSignalToMetricsResponse) GetBody ¶ added in v1.29.0
func (r GetApiSignalToMetricsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSignalToMetricsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSignalToMetricsResponse) GetJSON200() *GetSignalToMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSignalToMetricsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSignalToMetricsResponse) Status ¶ added in v1.9.0
func (r GetApiSignalToMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSignalToMetricsResponse) StatusCode ¶ added in v1.9.0
func (r GetApiSignalToMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSlosOriginOrIdParams ¶ added in v1.14.0
type GetApiSlosOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSlosOriginOrIdParams defines parameters for GetApiSlosOriginOrId.
type GetApiSlosOriginOrIdResponse ¶ added in v1.14.0
type GetApiSlosOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SloDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSlosOriginOrIdResponse ¶ added in v1.14.0
func ParseGetApiSlosOriginOrIdResponse(rsp *http.Response) (*GetApiSlosOriginOrIdResponse, error)
ParseGetApiSlosOriginOrIdResponse parses an HTTP response from a GetApiSlosOriginOrIdWithResponse call
func (GetApiSlosOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiSlosOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSlosOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiSlosOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSlosOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSlosOriginOrIdResponse) GetJSON200() *SloDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSlosOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSlosOriginOrIdResponse) Status ¶ added in v1.14.0
func (r GetApiSlosOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSlosOriginOrIdResponse) StatusCode ¶ added in v1.14.0
func (r GetApiSlosOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSlosParams ¶ added in v1.14.0
type GetApiSlosParams struct {
// Dataset Filter by dataset.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
// OriginPrefix Filter by origin prefix.
OriginPrefix *string `form:"originPrefix,omitempty" json:"originPrefix,omitempty"`
}
GetApiSlosParams defines parameters for GetApiSlos.
type GetApiSlosResponse ¶ added in v1.14.0
type GetApiSlosResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]SloDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSlosResponse ¶ added in v1.14.0
func ParseGetApiSlosResponse(rsp *http.Response) (*GetApiSlosResponse, error)
ParseGetApiSlosResponse parses an HTTP response from a GetApiSlosWithResponse call
func (GetApiSlosResponse) ContentType ¶ added in v1.29.0
func (r GetApiSlosResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSlosResponse) GetBody ¶ added in v1.29.0
func (r GetApiSlosResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSlosResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSlosResponse) GetJSON200() *[]SloDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSlosResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSlosResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSlosResponse) Status ¶ added in v1.14.0
func (r GetApiSlosResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSlosResponse) StatusCode ¶ added in v1.14.0
func (r GetApiSlosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSpamFiltersOriginOrIdParams ¶ added in v1.12.0
type GetApiSpamFiltersOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSpamFiltersOriginOrIdParams defines parameters for GetApiSpamFiltersOriginOrId.
type GetApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
type GetApiSpamFiltersOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SpamFilterResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
func ParseGetApiSpamFiltersOriginOrIdResponse(rsp *http.Response) (*GetApiSpamFiltersOriginOrIdResponse, error)
ParseGetApiSpamFiltersOriginOrIdResponse parses an HTTP response from a GetApiSpamFiltersOriginOrIdWithResponse call
func (GetApiSpamFiltersOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiSpamFiltersOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSpamFiltersOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiSpamFiltersOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSpamFiltersOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSpamFiltersOriginOrIdResponse) GetJSON200() *SpamFilterResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSpamFiltersOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSpamFiltersOriginOrIdResponse) Status ¶ added in v1.12.0
func (r GetApiSpamFiltersOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSpamFiltersOriginOrIdResponse) StatusCode ¶ added in v1.12.0
func (r GetApiSpamFiltersOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSpamFiltersParams ¶ added in v1.12.0
type GetApiSpamFiltersParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSpamFiltersParams defines parameters for GetApiSpamFilters.
type GetApiSpamFiltersResponse ¶ added in v1.12.0
type GetApiSpamFiltersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetSpamFiltersResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSpamFiltersResponse ¶ added in v1.12.0
func ParseGetApiSpamFiltersResponse(rsp *http.Response) (*GetApiSpamFiltersResponse, error)
ParseGetApiSpamFiltersResponse parses an HTTP response from a GetApiSpamFiltersWithResponse call
func (GetApiSpamFiltersResponse) ContentType ¶ added in v1.29.0
func (r GetApiSpamFiltersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSpamFiltersResponse) GetBody ¶ added in v1.29.0
func (r GetApiSpamFiltersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSpamFiltersResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSpamFiltersResponse) GetJSON200() *GetSpamFiltersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSpamFiltersResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSpamFiltersResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSpamFiltersResponse) Status ¶ added in v1.12.0
func (r GetApiSpamFiltersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSpamFiltersResponse) StatusCode ¶ added in v1.12.0
func (r GetApiSpamFiltersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSyntheticChecksLocationsResponse ¶ added in v1.6.0
type GetApiSyntheticChecksLocationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]SyntheticCheckLocationEntry
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSyntheticChecksLocationsResponse ¶ added in v1.6.0
func ParseGetApiSyntheticChecksLocationsResponse(rsp *http.Response) (*GetApiSyntheticChecksLocationsResponse, error)
ParseGetApiSyntheticChecksLocationsResponse parses an HTTP response from a GetApiSyntheticChecksLocationsWithResponse call
func (GetApiSyntheticChecksLocationsResponse) ContentType ¶ added in v1.29.0
func (r GetApiSyntheticChecksLocationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSyntheticChecksLocationsResponse) GetBody ¶ added in v1.29.0
func (r GetApiSyntheticChecksLocationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSyntheticChecksLocationsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSyntheticChecksLocationsResponse) GetJSON200() *[]SyntheticCheckLocationEntry
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSyntheticChecksLocationsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSyntheticChecksLocationsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSyntheticChecksLocationsResponse) Status ¶ added in v1.6.0
func (r GetApiSyntheticChecksLocationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSyntheticChecksLocationsResponse) StatusCode ¶ added in v1.6.0
func (r GetApiSyntheticChecksLocationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSyntheticChecksOriginOrIdParams ¶
type GetApiSyntheticChecksOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSyntheticChecksOriginOrIdParams defines parameters for GetApiSyntheticChecksOriginOrId.
type GetApiSyntheticChecksOriginOrIdResponse ¶
type GetApiSyntheticChecksOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SyntheticCheckDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSyntheticChecksOriginOrIdResponse ¶
func ParseGetApiSyntheticChecksOriginOrIdResponse(rsp *http.Response) (*GetApiSyntheticChecksOriginOrIdResponse, error)
ParseGetApiSyntheticChecksOriginOrIdResponse parses an HTTP response from a GetApiSyntheticChecksOriginOrIdWithResponse call
func (GetApiSyntheticChecksOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiSyntheticChecksOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSyntheticChecksOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSyntheticChecksOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSyntheticChecksOriginOrIdResponse) GetJSON200() *SyntheticCheckDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSyntheticChecksOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSyntheticChecksOriginOrIdResponse) Status ¶
func (r GetApiSyntheticChecksOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSyntheticChecksOriginOrIdResponse) StatusCode ¶
func (r GetApiSyntheticChecksOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSyntheticChecksParams ¶
type GetApiSyntheticChecksParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiSyntheticChecksParams defines parameters for GetApiSyntheticChecks.
type GetApiSyntheticChecksResponse ¶
type GetApiSyntheticChecksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]SyntheticChecksApiListItem
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiSyntheticChecksResponse ¶
func ParseGetApiSyntheticChecksResponse(rsp *http.Response) (*GetApiSyntheticChecksResponse, error)
ParseGetApiSyntheticChecksResponse parses an HTTP response from a GetApiSyntheticChecksWithResponse call
func (GetApiSyntheticChecksResponse) ContentType ¶ added in v1.29.0
func (r GetApiSyntheticChecksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSyntheticChecksResponse) GetBody ¶ added in v1.29.0
func (r GetApiSyntheticChecksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSyntheticChecksResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiSyntheticChecksResponse) GetJSON200() *[]SyntheticChecksApiListItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSyntheticChecksResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiSyntheticChecksResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiSyntheticChecksResponse) Status ¶
func (r GetApiSyntheticChecksResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSyntheticChecksResponse) StatusCode ¶
func (r GetApiSyntheticChecksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTeamsOriginOrIdResponse ¶ added in v1.4.0
type GetApiTeamsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetTeamResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiTeamsOriginOrIdResponse ¶ added in v1.4.0
func ParseGetApiTeamsOriginOrIdResponse(rsp *http.Response) (*GetApiTeamsOriginOrIdResponse, error)
ParseGetApiTeamsOriginOrIdResponse parses an HTTP response from a GetApiTeamsOriginOrIdWithResponse call
func (GetApiTeamsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiTeamsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTeamsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiTeamsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTeamsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiTeamsOriginOrIdResponse) GetJSON200() *GetTeamResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTeamsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiTeamsOriginOrIdResponse) Status ¶ added in v1.4.0
func (r GetApiTeamsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTeamsOriginOrIdResponse) StatusCode ¶ added in v1.4.0
func (r GetApiTeamsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTeamsResponse ¶ added in v1.4.0
type GetApiTeamsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]TeamsListItem
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiTeamsResponse ¶ added in v1.4.0
func ParseGetApiTeamsResponse(rsp *http.Response) (*GetApiTeamsResponse, error)
ParseGetApiTeamsResponse parses an HTTP response from a GetApiTeamsWithResponse call
func (GetApiTeamsResponse) ContentType ¶ added in v1.29.0
func (r GetApiTeamsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTeamsResponse) GetBody ¶ added in v1.29.0
func (r GetApiTeamsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTeamsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiTeamsResponse) GetJSON200() *[]TeamsListItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTeamsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiTeamsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiTeamsResponse) Status ¶ added in v1.4.0
func (r GetApiTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTeamsResponse) StatusCode ¶ added in v1.4.0
func (r GetApiTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTimeSeriesAggregationsOriginOrIdParams ¶ added in v1.17.0
type GetApiTimeSeriesAggregationsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiTimeSeriesAggregationsOriginOrIdParams defines parameters for GetApiTimeSeriesAggregationsOriginOrId.
type GetApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
type GetApiTimeSeriesAggregationsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TimeSeriesAggregationDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
func ParseGetApiTimeSeriesAggregationsOriginOrIdResponse(rsp *http.Response) (*GetApiTimeSeriesAggregationsOriginOrIdResponse, error)
ParseGetApiTimeSeriesAggregationsOriginOrIdResponse parses an HTTP response from a GetApiTimeSeriesAggregationsOriginOrIdWithResponse call
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200() *TimeSeriesAggregationDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r GetApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTimeSeriesAggregationsParams ¶ added in v1.17.0
type GetApiTimeSeriesAggregationsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiTimeSeriesAggregationsParams defines parameters for GetApiTimeSeriesAggregations.
type GetApiTimeSeriesAggregationsResponse ¶ added in v1.17.0
type GetApiTimeSeriesAggregationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TimeSeriesAggregationListResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiTimeSeriesAggregationsResponse ¶ added in v1.17.0
func ParseGetApiTimeSeriesAggregationsResponse(rsp *http.Response) (*GetApiTimeSeriesAggregationsResponse, error)
ParseGetApiTimeSeriesAggregationsResponse parses an HTTP response from a GetApiTimeSeriesAggregationsWithResponse call
func (GetApiTimeSeriesAggregationsResponse) ContentType ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTimeSeriesAggregationsResponse) GetBody ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTimeSeriesAggregationsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsResponse) GetJSON200() *TimeSeriesAggregationListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTimeSeriesAggregationsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiTimeSeriesAggregationsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiTimeSeriesAggregationsResponse) Status ¶ added in v1.17.0
func (r GetApiTimeSeriesAggregationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTimeSeriesAggregationsResponse) StatusCode ¶ added in v1.17.0
func (r GetApiTimeSeriesAggregationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiViewsOriginOrIdParams ¶
type GetApiViewsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiViewsOriginOrIdParams defines parameters for GetApiViewsOriginOrId.
type GetApiViewsOriginOrIdResponse ¶
type GetApiViewsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ViewDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiViewsOriginOrIdResponse ¶
func ParseGetApiViewsOriginOrIdResponse(rsp *http.Response) (*GetApiViewsOriginOrIdResponse, error)
ParseGetApiViewsOriginOrIdResponse parses an HTTP response from a GetApiViewsOriginOrIdWithResponse call
func (GetApiViewsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r GetApiViewsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiViewsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r GetApiViewsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiViewsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiViewsOriginOrIdResponse) GetJSON200() *ViewDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiViewsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiViewsOriginOrIdResponse) Status ¶
func (r GetApiViewsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiViewsOriginOrIdResponse) StatusCode ¶
func (r GetApiViewsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiViewsParams ¶
type GetApiViewsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
GetApiViewsParams defines parameters for GetApiViews.
type GetApiViewsResponse ¶
type GetApiViewsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ViewApiListItem
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetApiViewsResponse ¶
func ParseGetApiViewsResponse(rsp *http.Response) (*GetApiViewsResponse, error)
ParseGetApiViewsResponse parses an HTTP response from a GetApiViewsWithResponse call
func (GetApiViewsResponse) ContentType ¶ added in v1.29.0
func (r GetApiViewsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiViewsResponse) GetBody ¶ added in v1.29.0
func (r GetApiViewsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiViewsResponse) GetJSON200 ¶ added in v1.29.0
func (r GetApiViewsResponse) GetJSON200() *[]ViewApiListItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiViewsResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetApiViewsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetApiViewsResponse) Status ¶
func (r GetApiViewsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiViewsResponse) StatusCode ¶
func (r GetApiViewsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFailedChecksRequest ¶ added in v1.16.0
type GetFailedChecksRequest struct {
// Dataset selects the dataset to query.
// When nil, the organization's default dataset is used.
Dataset *Dataset `json:"dataset,omitempty"`
// Filter narrows the results to issues matching the criteria.
Filter *FilterCriteria `json:"filter,omitempty"`
// Ordering controls the result order.
// Defaults to descending start time when nil.
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// Pagination controls cursor-based paging.
Pagination *CursorPagination `json:"pagination,omitempty"`
// TimeRange is the time range to query.
TimeRange TimeReferenceRange `json:"timeRange"`
}
GetFailedChecksRequest is the request body for Client.GetFailedChecks.
type GetFailedChecksResponse ¶ added in v1.16.0
type GetFailedChecksResponse struct {
// Cursors carries the pagination cursors for fetching adjacent result pages.
Cursors *NextCursors `json:"cursors,omitempty"`
// ExecutionTime is the server-side execution timestamp of the request.
ExecutionTime *FixedTime `json:"executionTime,omitempty"`
// Issues holds the failed-check instances matching the request.
Issues []Issue `json:"issues"`
// TimeRange is the resolved time range for the response.
TimeRange *TimeRange `json:"timeRange,omitempty"`
}
GetFailedChecksResponse is the response of Client.GetFailedChecks.
type GetLogRecordsRequest ¶
type GetLogRecordsRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// IncludeOTLPSchemaExtensions If true, the response will contain extension to the OTLP schema that are commonly used by API consumers.
// These extensions are optional and may be omitted from the response for integration with other systems
// that do not support them, e.g., those that use the OTLP schema directly.
IncludeOTLPSchemaExtensions *bool `json:"includeOTLPSchemaExtensions,omitempty"`
// Ordering The ordering criteria for the returned logs.
// Supported ordering key: `otel.log.time` (log timestamp, defaults to descending)
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// Pagination Cursor pagination for log records.
// - Maximum and default limit: 200 elements per page
// - We do not guarantee that the requested number of elements will be returned per page
// - Multiple pages may be required to retrieve the requested number of signals
Pagination *CursorPagination `json:"pagination,omitempty"`
Sampling *Sampling `json:"sampling,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
GetLogRecordsRequest defines model for GetLogRecordsRequest.
type GetLogRecordsResponse ¶
type GetLogRecordsResponse struct {
// Cursors The cursors for the next sets of results. This property is included
// to support pagination through the result set when additional pages are available.
Cursors *NextCursors `json:"cursors,omitempty"`
// ExecutionTime The property is only included when `includeOTLPSchemaExtensions` is `true`.
ExecutionTime *FixedTime `json:"executionTime,omitempty"`
// ResourceLogs There is one `ResourceLogs` per resource. This is aligned to the data most OTLP batching algorithms would
// produce, where there is one `ResourceLogs` per resource. This is done to aid compatibility with existing
// OTLP consumers.
//
// `ResourceLogs` are **NOT** sorted. There is no guarantee that `ResourceLogs` are sorted or that
// `LogRecord`s within them are sorted. However, it is guaranteed that all data is sorted across paged
// requests.
//
// Clients are advised to implement sorting within a page descending by the `LogRecord`'s `timeUnixNano`,
// `observedTimeUnixNano` and then `id`.
ResourceLogs []ResourceLogs `json:"resourceLogs"`
// TimeRange The property is only included when `includeOTLPSchemaExtensions` is `true`.
TimeRange *TimeRange `json:"timeRange,omitempty"`
}
GetLogRecordsResponse Response for `POST /api/logs`. The response contains the log records that match the request.
This API deliberately reuses the full OTLP JSON format for logs. This is done to aid compatibility with existing OTLP consumers.
type GetOauthAuthorizeParams ¶ added in v1.6.0
type GetOauthAuthorizeParams struct {
// ResponseType Must be "code" for the authorization code flow.
ResponseType string `form:"response_type" json:"response_type"`
// ClientId The client identifier obtained during registration.
ClientId string `form:"client_id" json:"client_id"`
// RedirectUri Must match one of the client's registered redirect URIs.
RedirectUri string `form:"redirect_uri" json:"redirect_uri"`
// Scope Space-separated list of requested scopes.
Scope *string `form:"scope,omitempty" json:"scope,omitempty"`
// State Opaque value for CSRF protection, returned unchanged in the redirect.
State *string `form:"state,omitempty" json:"state,omitempty"`
// CodeChallenge PKCE code challenge (RFC 7636).
CodeChallenge string `form:"code_challenge" json:"code_challenge"`
// CodeChallengeMethod Must be "S256".
CodeChallengeMethod string `form:"code_challenge_method" json:"code_challenge_method"`
// Prompt Space-separated list of prompt directives. Supported value: "consent".
Prompt *string `form:"prompt,omitempty" json:"prompt,omitempty"`
}
GetOauthAuthorizeParams defines parameters for GetOauthAuthorize.
type GetOauthAuthorizeResponse ¶ added in v1.6.0
type GetOauthAuthorizeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetOauthAuthorizeResponse ¶ added in v1.6.0
func ParseGetOauthAuthorizeResponse(rsp *http.Response) (*GetOauthAuthorizeResponse, error)
ParseGetOauthAuthorizeResponse parses an HTTP response from a GetOauthAuthorizeWithResponse call
func (GetOauthAuthorizeResponse) ContentType ¶ added in v1.29.0
func (r GetOauthAuthorizeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOauthAuthorizeResponse) GetBody ¶ added in v1.29.0
func (r GetOauthAuthorizeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOauthAuthorizeResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetOauthAuthorizeResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetOauthAuthorizeResponse) Status ¶ added in v1.6.0
func (r GetOauthAuthorizeResponse) Status() string
Status returns HTTPResponse.Status
func (GetOauthAuthorizeResponse) StatusCode ¶ added in v1.6.0
func (r GetOauthAuthorizeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSamplingRulesResponse ¶ added in v1.1.0
type GetSamplingRulesResponse struct {
SamplingRules []SamplingDefinition `json:"samplingRules"`
}
GetSamplingRulesResponse defines model for GetSamplingRulesResponse.
type GetSignalToMetricsResponse ¶ added in v1.9.0
type GetSignalToMetricsResponse struct {
// Counts Rule counts per source signal, matching the request filters and ignoring pagination.
// Present under the same conditions as `total`, and absent rather than zero-filled when
// unavailable — a consumer must not read a missing `counts` as "no rules".
Counts *SignalToMetricsCounts `json:"counts,omitempty"`
// HasMore Whether there are more results beyond the current page. Only present when pagination is used.
HasMore *bool `json:"hasMore,omitempty"`
SignalToMetrics []SignalToMetricsDefinition `json:"signalToMetrics"`
// Total Total number of rules matching the request filters, ignoring pagination.
Total *int `json:"total,omitempty"`
}
GetSignalToMetricsResponse defines model for GetSignalToMetricsResponse.
type GetSpamFiltersResponse ¶ added in v1.12.0
type GetSpamFiltersResponse struct {
SpamFilters []SpamFilterDefinition `json:"spamFilters"`
}
GetSpamFiltersResponse defines model for GetSpamFiltersResponse.
type GetSpansRequest ¶
type GetSpansRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// IncludeOTLPSchemaExtensions If true, the response will contain extension to the OTLP schema that are commonly used by API consumers.
// These extensions are optional and may be omitted from the response for integration with other systems
// that do not support them, e.g., those that use the OTLP schema directly.
IncludeOTLPSchemaExtensions *bool `json:"includeOTLPSchemaExtensions,omitempty"`
// Ordering The ordering criteria for the returned spans.
// Supported ordering key: `otel.span.start_time` (span start timestamp, defaults to descending)
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// Pagination Cursor pagination for spans.
// - Maximum and default limit: 200 elements per page
// - We do not guarantee that the requested number of elements will be returned per page
// - Multiple pages may be required to retrieve the requested number of signals
Pagination *CursorPagination `json:"pagination,omitempty"`
Sampling *Sampling `json:"sampling,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
GetSpansRequest defines model for GetSpansRequest.
type GetSpansResponse ¶
type GetSpansResponse struct {
// Cursors The cursors for the next sets of results. This property is included
// to support pagination through the result set when additional pages are available.
Cursors *NextCursors `json:"cursors,omitempty"`
// ExecutionTime The property is only included when `includeOTLPSchemaExtensions` is `true`.
ExecutionTime *FixedTime `json:"executionTime,omitempty"`
// ResourceSpans There is one `ResourceSpan` per resource. This is aligned to the data most OTLP batching algorithms would
// produce, where there is one `ResourceSpan` per resource. This is done to aid compatibility with existing
// OTLP consumers.
//
// `Spans` nested in `ResourceSpans` are **ONLY** sorted if an explicit ordering has been defined. However,
// it is guaranteed that all data is sorted across paged requests.
ResourceSpans []ResourceSpans `json:"resourceSpans"`
// TimeRange The property is only included when `includeOTLPSchemaExtensions` is `true`.
TimeRange *TimeRange `json:"timeRange,omitempty"`
}
GetSpansResponse Response for `POST /api/spans`. The response contains the spans that match the request.
This API deliberately reuses the full OTLP JSON format for spans. This is done to aid compatibility with existing OTLP consumers.
type GetTeamResponse ¶ added in v1.4.0
type GetTeamResponse struct {
AgenticWorkflows []AccessibleAsset `json:"agenticWorkflows"`
CheckRules []AccessibleAsset `json:"checkRules"`
Dashboards []AccessibleAsset `json:"dashboards"`
Datasets []AccessibleAsset `json:"datasets"`
Members []MemberDefinition `json:"members"`
SyntheticChecks []AccessibleAsset `json:"syntheticChecks"`
// Team v1alpha1 team definition. `metadata.name` is the team's technical name
// (used e.g. as the CRD name in an operator manifest or a Terraform
// resource ID), `spec.display` carries the human-facing attributes
// (name, description, color) and `spec.members` is the declarative list
// of member IDs that make up the team. `metadata.name` and
// `spec.display.name` are persisted independently.
Team TeamDefinitionV1Alpha1 `json:"team"`
Views []AccessibleAsset `json:"views"`
}
GetTeamResponse defines model for GetTeamResponse.
type GetTopologyRequest ¶ added in v1.28.0
type GetTopologyRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// EdgeStatistics Statistics to compute per edge, from the connection metric.
// Defaults to `count`, `statusCounts` and `duration.p50`. An empty
// array returns edge endpoints only, which is the cheapest way to
// fetch the graph's shape.
//
// This selects what each edge carries, never which edges exist: the
// same time range and filter return the same nodes and edges whatever
// is requested here. An edge whose duration cannot be determined — a
// connection observed with no completed calls in the range — is
// returned without that statistic rather than omitted.
EdgeStatistics *[]TopologyEdgeStatistic `json:"edgeStatistics,omitempty"`
// Filter Selects services by **resource** attributes. Applied to both halves
// of the graph, but they are not the same predicate, and the
// difference shows in the response. Read both limits below before
// relying on this field.
//
// **The edge half filters on the called service only.** An edge's
// attributes are the callee's: the connection metric carries the
// caller as nothing but `service.name` and `service.namespace`, so
// there is no caller-side attribute to match on. An edge is returned
// when its `target` matches, whatever its `source` is. A caller
// outside the filter still comes back as a node — as `inferred`,
// since it is not in the filtered service list — while the matching
// service's own outbound edges are absent, their targets having not
// matched. Filtering by `service.name` returns that service's inbound
// traffic, not its neighbourhood.
//
// **Beyond resource attributes, two keys behave differently from the
// rest.** `dash0.operation.name` and `dash0.operation.type` are
// carried on the connection metric, copied from the server span, so
// they do filter edges — by the *callee's* operation, keeping the
// edges whose inbound calls had that operation. The result is a graph
// of who calls that operation, which is a narrower thing than the
// node half returns for the same criterion.
//
// Every other non-resource key — `http.route` and the span attributes
// generally — is accepted, is applied correctly to the node half, and
// matches no connection series, so the response is the filtered
// services with no edges at all. That is not rejected, and is
// indistinguishable from a tenant whose filtered services make no
// calls.
//
// A `400` is returned only for a criterion that cannot be parsed, not
// for one that is merely inapplicable to edges.
Filter *FilterCriteria `json:"filter,omitempty"`
// NodeLimit Maximum number of services read from the service list. When more
// match, the list is truncated and the response carries a `warnings`
// entry naming the limit.
//
// **This caps the services that carry statistics, not the size of the
// graph.** It bounds neither the edges nor the nodes synthesized from
// them, so a response can contain more than `nodeLimit` nodes.
// Truncation punches no holes: a service dropped here still appears
// as an `inferred` node wherever an edge references it, without
// statistics of its own.
//
// **The cut is by identity, not by traffic.** The service list is
// ordered by `service.namespace` then `service.name`, both ascending,
// so services with no namespace sort first and survive the cut. On a
// tenant whose un-namespaced peers — hosts, external endpoints —
// exceed the limit, the namespaced services are the ones that lose
// their statistics, however busy they are. Raise the limit or narrow
// `filter`; there is no way to ask for the busiest services instead.
NodeLimit *int `json:"nodeLimit,omitempty"`
// NodeStatistics Statistics to compute per node, from the node's own RED metrics.
// Defaults to `count`, `statusCounts` and `duration.p50`. An empty
// array returns node identities only.
//
// Same vocabulary and same cost rules as
// `GetServiceCatalogRequest.statistics`.
NodeStatistics *[]ServiceStatistic `json:"nodeStatistics,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
GetTopologyRequest Request for `POST /api/topology`. Returns the service topology for the time range: one node per `service.namespace` + `service.name` pair, and one edge per observed direction of calls between two nodes.
Grouping is not client-selectable, and deliberately so. The connection metric carries only `service.name` and `service.namespace` from the calling side of a call, so no other grouping can identify a caller; offering a `groupBy` would return a silently wrong graph for every other value.
type GetTraceIdsRequest ¶ added in v1.12.1
type GetTraceIdsRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// Ordering The ordering criteria for the returned trace IDs. Only `otel.trace.start_time` descending
// is supported (this is also the default when omitted). Any other key, ascending direction,
// or multiple criteria will be rejected with a 400 response. A trace's start time is the
// timestamp of its earliest matching span; trace IDs are returned ordered by that value.
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// Pagination Cursor pagination for trace IDs.
// - Maximum and default limit: 5000 elements per page
// - Multiple pages may be required to retrieve all matching trace IDs
Pagination *CursorPagination `json:"pagination,omitempty"`
Sampling *Sampling `json:"sampling,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
GetTraceIdsRequest Request to retrieve unique trace IDs of traces that contain at least one span matching the given filters. This is a lightweight alternative to `POST /api/spans` for two-step workflows where only trace IDs are needed first, and full trace details are subsequently retrieved via `POST /api/trace/details`.
type GetTraceIdsResponse ¶ added in v1.12.1
type GetTraceIdsResponse struct {
// Cursors The cursors for the next sets of results. This property is included to support
// pagination through the result set when additional pages are available.
Cursors *NextCursors `json:"cursors,omitempty"`
// TraceIds Array of unique trace IDs as hex-encoded strings, ordered by the timestamp of each
// trace's earliest matching span (descending).
TraceIds []string `json:"traceIds"`
}
GetTraceIdsResponse Response for `POST /api/trace/ids`. Contains an array of unique trace IDs that match the request filters, ordered by the timestamp of their earliest matching span (descending).
type GetTraceRequest ¶ added in v1.12.0
type GetTraceRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// IncludeLinkedTraces If true, recursively fetches all traces referenced via forward links (dash0ForwardLinks)
// and returns them in `additionalResourceSpans`. Implies includeOTLPSchemaExtensions=true.
IncludeLinkedTraces *bool `json:"includeLinkedTraces,omitempty"`
// IncludeOTLPSchemaExtensions If true, the response will contain extension to the OTLP schema that are commonly used by API consumers.
// These extensions are optional and may be omitted from the response for integration with other systems
// that do not support them, e.g., those that use the OTLP schema directly.
IncludeOTLPSchemaExtensions *bool `json:"includeOTLPSchemaExtensions,omitempty"`
// TimeRange Optional time range hint to bound the trace metadata lookup. When provided, the backend
// restricts the `AggregatedTraceMetadata` query to this window (with a small buffer) and
// will not fall back to a full-table scan. When absent, the backend uses a default short
// window with a full-scan fallback for backward compatibility — this fallback can be
// expensive on large datasets. API consumers are strongly encouraged to provide a
// `timeRange` covering when the trace occurred.
TimeRange *TimeReferenceRange `json:"timeRange,omitempty"`
TraceId string `json:"traceId"`
}
GetTraceRequest defines model for GetTraceRequest.
type GetTraceResponse ¶ added in v1.12.0
type GetTraceResponse struct {
// AdditionalResourceSpans Resource spans from linked traces. Only populated when includeLinkedTraces=true.
AdditionalResourceSpans *[]ResourceSpans `json:"additionalResourceSpans,omitempty"`
ResourceLogs []ResourceLogs `json:"resourceLogs"`
ResourceSpans []ResourceSpans `json:"resourceSpans"`
SyntheticCheckAttemptDetails *SyntheticCheckAttemptDetails `json:"syntheticCheckAttemptDetails,omitempty"`
WebEvents []ResourceLogs `json:"webEvents"`
}
GetTraceResponse Response for `POST /api/trace/details`. The response contains the spans and logs that match the request.
This API deliberately reuses the full OTLP JSON format for spans and logs. This is done to aid compatibility with existing OTLP consumers.
type GetWellKnownOauthAuthorizationServerResponse ¶ added in v1.6.0
type GetWellKnownOauthAuthorizationServerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OAuthAuthorizationServerMetadata
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetWellKnownOauthAuthorizationServerResponse ¶ added in v1.6.0
func ParseGetWellKnownOauthAuthorizationServerResponse(rsp *http.Response) (*GetWellKnownOauthAuthorizationServerResponse, error)
ParseGetWellKnownOauthAuthorizationServerResponse parses an HTTP response from a GetWellKnownOauthAuthorizationServerWithResponse call
func (GetWellKnownOauthAuthorizationServerResponse) ContentType ¶ added in v1.29.0
func (r GetWellKnownOauthAuthorizationServerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetWellKnownOauthAuthorizationServerResponse) GetBody ¶ added in v1.29.0
func (r GetWellKnownOauthAuthorizationServerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetWellKnownOauthAuthorizationServerResponse) GetJSON200 ¶ added in v1.29.0
func (r GetWellKnownOauthAuthorizationServerResponse) GetJSON200() *OAuthAuthorizationServerMetadata
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetWellKnownOauthAuthorizationServerResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetWellKnownOauthAuthorizationServerResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetWellKnownOauthAuthorizationServerResponse) Status ¶ added in v1.6.0
func (r GetWellKnownOauthAuthorizationServerResponse) Status() string
Status returns HTTPResponse.Status
func (GetWellKnownOauthAuthorizationServerResponse) StatusCode ¶ added in v1.6.0
func (r GetWellKnownOauthAuthorizationServerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWellKnownOauthProtectedResourceResponse ¶ added in v1.6.0
type GetWellKnownOauthProtectedResourceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OAuthProtectedResourceMetadata
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetWellKnownOauthProtectedResourceResponse ¶ added in v1.6.0
func ParseGetWellKnownOauthProtectedResourceResponse(rsp *http.Response) (*GetWellKnownOauthProtectedResourceResponse, error)
ParseGetWellKnownOauthProtectedResourceResponse parses an HTTP response from a GetWellKnownOauthProtectedResourceWithResponse call
func (GetWellKnownOauthProtectedResourceResponse) ContentType ¶ added in v1.29.0
func (r GetWellKnownOauthProtectedResourceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetWellKnownOauthProtectedResourceResponse) GetBody ¶ added in v1.29.0
func (r GetWellKnownOauthProtectedResourceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetWellKnownOauthProtectedResourceResponse) GetJSON200 ¶ added in v1.29.0
func (r GetWellKnownOauthProtectedResourceResponse) GetJSON200() *OAuthProtectedResourceMetadata
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetWellKnownOauthProtectedResourceResponse) GetJSONDefault ¶ added in v1.29.0
func (r GetWellKnownOauthProtectedResourceResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetWellKnownOauthProtectedResourceResponse) Status ¶ added in v1.6.0
func (r GetWellKnownOauthProtectedResourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetWellKnownOauthProtectedResourceResponse) StatusCode ¶ added in v1.6.0
func (r GetWellKnownOauthProtectedResourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GitHubAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type GitHubAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
}
GitHubAgenticWorkflowTriggerSpec defines model for GitHubAgenticWorkflowTriggerSpec.
type GitHubCheckActivityAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubCheckActivityAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch names to filter on, matched against the check's associated
// commit branch. When omitted, checks on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
}
GitHubCheckActivityAgenticWorkflowTriggerSpec defines model for GitHubCheckActivityAgenticWorkflowTriggerSpec.
type GitHubCheckRunAgenticWorkflowTrigger ¶ added in v1.23.0
type GitHubCheckRunAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull request
// the check ran on, falling back to the branch when no pull request is associated.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubCheckRunAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubCheckRunAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubCheckRunAgenticWorkflowTrigger defines model for GitHubCheckRunAgenticWorkflowTrigger.
type GitHubCheckRunAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitHubCheckRunAgenticWorkflowTriggerKind string
GitHubCheckRunAgenticWorkflowTriggerKind defines model for GitHubCheckRunAgenticWorkflowTrigger.Kind.
const ( GitHubCheckRunAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubCheckRunAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubCheckRunAgenticWorkflowTriggerKindFailedCheckNew GitHubCheckRunAgenticWorkflowTriggerKind = "failed_check.new" GitHubCheckRunAgenticWorkflowTriggerKindGithubCheckRun GitHubCheckRunAgenticWorkflowTriggerKind = "github.check_run" GitHubCheckRunAgenticWorkflowTriggerKindGithubCheckSuite GitHubCheckRunAgenticWorkflowTriggerKind = "github.check_suite" GitHubCheckRunAgenticWorkflowTriggerKindGithubDeployment GitHubCheckRunAgenticWorkflowTriggerKind = "github.deployment" GitHubCheckRunAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubCheckRunAgenticWorkflowTriggerKind = "github.deployment_status" GitHubCheckRunAgenticWorkflowTriggerKindGithubIssueComment GitHubCheckRunAgenticWorkflowTriggerKind = "github.issue_comment" GitHubCheckRunAgenticWorkflowTriggerKindGithubPullRequest GitHubCheckRunAgenticWorkflowTriggerKind = "github.pull_request" GitHubCheckRunAgenticWorkflowTriggerKindGithubPullRequestReview GitHubCheckRunAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubCheckRunAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubCheckRunAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubCheckRunAgenticWorkflowTriggerKindGithubPush GitHubCheckRunAgenticWorkflowTriggerKind = "github.push" GitHubCheckRunAgenticWorkflowTriggerKindGithubRelease GitHubCheckRunAgenticWorkflowTriggerKind = "github.release" GitHubCheckRunAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubCheckRunAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubCheckRunAgenticWorkflowTriggerKindGithubWorkflowJob GitHubCheckRunAgenticWorkflowTriggerKind = "github.workflow_job" GitHubCheckRunAgenticWorkflowTriggerKindGithubWorkflowRun GitHubCheckRunAgenticWorkflowTriggerKind = "github.workflow_run" GitHubCheckRunAgenticWorkflowTriggerKindGitlabMergeRequest GitHubCheckRunAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubCheckRunAgenticWorkflowTriggerKindGitlabNote GitHubCheckRunAgenticWorkflowTriggerKind = "gitlab.note" GitHubCheckRunAgenticWorkflowTriggerKindLinearComment GitHubCheckRunAgenticWorkflowTriggerKind = "linear.comment" GitHubCheckRunAgenticWorkflowTriggerKindLinearCommentReaction GitHubCheckRunAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubCheckRunAgenticWorkflowTriggerKindLinearInitiative GitHubCheckRunAgenticWorkflowTriggerKind = "linear.initiative" GitHubCheckRunAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubCheckRunAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubCheckRunAgenticWorkflowTriggerKindLinearIssue GitHubCheckRunAgenticWorkflowTriggerKind = "linear.issue" GitHubCheckRunAgenticWorkflowTriggerKindLinearIssueAttachment GitHubCheckRunAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubCheckRunAgenticWorkflowTriggerKindLinearIssueComment GitHubCheckRunAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubCheckRunAgenticWorkflowTriggerKindLinearProject GitHubCheckRunAgenticWorkflowTriggerKind = "linear.project" GitHubCheckRunAgenticWorkflowTriggerKindLinearProjectUpdate GitHubCheckRunAgenticWorkflowTriggerKind = "linear.project_update" GitHubCheckRunAgenticWorkflowTriggerKindManual GitHubCheckRunAgenticWorkflowTriggerKind = "manual" GitHubCheckRunAgenticWorkflowTriggerKindSchedule GitHubCheckRunAgenticWorkflowTriggerKind = "schedule" GitHubCheckRunAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubCheckRunAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubCheckRunAgenticWorkflowTriggerKindSlackBotMessage GitHubCheckRunAgenticWorkflowTriggerKind = "slack_bot.message" GitHubCheckRunAgenticWorkflowTriggerKindSlackBotReaction GitHubCheckRunAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubCheckRunAgenticWorkflowTriggerKindWebhook GitHubCheckRunAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubCheckRunAgenticWorkflowTriggerKind.
func (GitHubCheckRunAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubCheckRunAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckRunAgenticWorkflowTriggerKind enum.
type GitHubCheckRunAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubCheckRunAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch names to filter on, matched against the check's associated
// commit branch. When omitted, checks on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Conclusions Optional list of conclusions to filter on. Only applies to `completed` events.
// When omitted, check runs with any conclusion match.
Conclusions *[]GitHubCheckRunConclusion `json:"conclusions,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// Statuses Optional list of statuses to filter on. Applies to check runs at any lifecycle
// stage, not only completed ones. When omitted, check runs with any status match.
Statuses *[]GitHubCheckRunStatus `json:"statuses,omitempty"`
}
GitHubCheckRunAgenticWorkflowTriggerSpec defines model for GitHubCheckRunAgenticWorkflowTriggerSpec.
type GitHubCheckRunConclusion ¶ added in v1.23.0
type GitHubCheckRunConclusion string
GitHubCheckRunConclusion The conclusion of a GitHub check run.
- `success`: The check run completed successfully. - `failure`: The check run failed. - `neutral`: The check run completed with a neutral result. - `cancelled`: The check run was cancelled. - `timed_out`: The check run timed out. - `action_required`: The check run requires manual action. - `stale`: The check run went stale (its check suite was superseded by a newer commit). - `skipped`: The check run was skipped. - `startup_failure`: The check run failed to start. - `waiting`: The check run is waiting on an external condition. - `pending`: The check run is pending.
const ( GitHubCheckRunConclusionActionRequired GitHubCheckRunConclusion = "action_required" GitHubCheckRunConclusionCancelled GitHubCheckRunConclusion = "cancelled" GitHubCheckRunConclusionFailure GitHubCheckRunConclusion = "failure" GitHubCheckRunConclusionNeutral GitHubCheckRunConclusion = "neutral" GitHubCheckRunConclusionPending GitHubCheckRunConclusion = "pending" GitHubCheckRunConclusionSkipped GitHubCheckRunConclusion = "skipped" GitHubCheckRunConclusionStale GitHubCheckRunConclusion = "stale" GitHubCheckRunConclusionStartupFailure GitHubCheckRunConclusion = "startup_failure" GitHubCheckRunConclusionSuccess GitHubCheckRunConclusion = "success" GitHubCheckRunConclusionTimedOut GitHubCheckRunConclusion = "timed_out" GitHubCheckRunConclusionWaiting GitHubCheckRunConclusion = "waiting" )
Defines values for GitHubCheckRunConclusion.
func (GitHubCheckRunConclusion) Valid ¶ added in v1.29.0
func (e GitHubCheckRunConclusion) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckRunConclusion enum.
type GitHubCheckRunStatus ¶ added in v1.23.0
type GitHubCheckRunStatus string
GitHubCheckRunStatus The status of a GitHub check run.
- `queued`: The check run is queued. - `in_progress`: The check run is in progress. - `completed`: The check run has completed (see `conclusions` for the outcome). - `pending`: The check run is pending.
const ( GitHubCheckRunStatusCompleted GitHubCheckRunStatus = "completed" GitHubCheckRunStatusInProgress GitHubCheckRunStatus = "in_progress" GitHubCheckRunStatusPending GitHubCheckRunStatus = "pending" GitHubCheckRunStatusQueued GitHubCheckRunStatus = "queued" )
Defines values for GitHubCheckRunStatus.
func (GitHubCheckRunStatus) Valid ¶ added in v1.29.0
func (e GitHubCheckRunStatus) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckRunStatus enum.
type GitHubCheckSuiteAgenticWorkflowTrigger ¶ added in v1.23.0
type GitHubCheckSuiteAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull request
// the check suite ran on, falling back to the branch when no pull request is associated.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubCheckSuiteAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubCheckSuiteAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubCheckSuiteAgenticWorkflowTrigger defines model for GitHubCheckSuiteAgenticWorkflowTrigger.
type GitHubCheckSuiteAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitHubCheckSuiteAgenticWorkflowTriggerKind string
GitHubCheckSuiteAgenticWorkflowTriggerKind defines model for GitHubCheckSuiteAgenticWorkflowTrigger.Kind.
const ( GitHubCheckSuiteAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubCheckSuiteAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubCheckSuiteAgenticWorkflowTriggerKindFailedCheckNew GitHubCheckSuiteAgenticWorkflowTriggerKind = "failed_check.new" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubCheckRun GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.check_run" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubCheckSuite GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.check_suite" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubDeployment GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.deployment" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.deployment_status" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubIssueComment GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.issue_comment" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubPullRequest GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.pull_request" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubPullRequestReview GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubPush GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.push" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubRelease GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.release" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubWorkflowJob GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.workflow_job" GitHubCheckSuiteAgenticWorkflowTriggerKindGithubWorkflowRun GitHubCheckSuiteAgenticWorkflowTriggerKind = "github.workflow_run" GitHubCheckSuiteAgenticWorkflowTriggerKindGitlabMergeRequest GitHubCheckSuiteAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubCheckSuiteAgenticWorkflowTriggerKindGitlabNote GitHubCheckSuiteAgenticWorkflowTriggerKind = "gitlab.note" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearComment GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.comment" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearCommentReaction GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearInitiative GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.initiative" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearIssue GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.issue" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearIssueAttachment GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearIssueComment GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearProject GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.project" GitHubCheckSuiteAgenticWorkflowTriggerKindLinearProjectUpdate GitHubCheckSuiteAgenticWorkflowTriggerKind = "linear.project_update" GitHubCheckSuiteAgenticWorkflowTriggerKindManual GitHubCheckSuiteAgenticWorkflowTriggerKind = "manual" GitHubCheckSuiteAgenticWorkflowTriggerKindSchedule GitHubCheckSuiteAgenticWorkflowTriggerKind = "schedule" GitHubCheckSuiteAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubCheckSuiteAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubCheckSuiteAgenticWorkflowTriggerKindSlackBotMessage GitHubCheckSuiteAgenticWorkflowTriggerKind = "slack_bot.message" GitHubCheckSuiteAgenticWorkflowTriggerKindSlackBotReaction GitHubCheckSuiteAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubCheckSuiteAgenticWorkflowTriggerKindWebhook GitHubCheckSuiteAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubCheckSuiteAgenticWorkflowTriggerKind.
func (GitHubCheckSuiteAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubCheckSuiteAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckSuiteAgenticWorkflowTriggerKind enum.
type GitHubCheckSuiteAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubCheckSuiteAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch names to filter on, matched against the check's associated
// commit branch. When omitted, checks on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Conclusions Optional list of conclusions to filter on. Only applies to `completed` events.
// When omitted, check suites with any conclusion match.
Conclusions *[]GitHubCheckSuiteConclusion `json:"conclusions,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// Statuses Optional list of statuses to filter on. Applies to check suites at any lifecycle
// stage, not only completed ones. When omitted, check suites with any status match.
Statuses *[]GitHubCheckSuiteStatus `json:"statuses,omitempty"`
}
GitHubCheckSuiteAgenticWorkflowTriggerSpec defines model for GitHubCheckSuiteAgenticWorkflowTriggerSpec.
type GitHubCheckSuiteConclusion ¶ added in v1.23.0
type GitHubCheckSuiteConclusion string
GitHubCheckSuiteConclusion The conclusion of a GitHub check suite.
- `success`: Every check run in the suite completed successfully. - `failure`: At least one check run in the suite failed. - `neutral`: The suite completed with a neutral result. - `cancelled`: The suite was cancelled. - `timed_out`: The suite timed out. - `action_required`: The suite requires manual action. - `stale`: The suite went stale (superseded by a newer commit). - `skipped`: The suite was skipped. - `startup_failure`: The suite failed to start.
const ( GitHubCheckSuiteConclusionActionRequired GitHubCheckSuiteConclusion = "action_required" GitHubCheckSuiteConclusionCancelled GitHubCheckSuiteConclusion = "cancelled" GitHubCheckSuiteConclusionFailure GitHubCheckSuiteConclusion = "failure" GitHubCheckSuiteConclusionNeutral GitHubCheckSuiteConclusion = "neutral" GitHubCheckSuiteConclusionSkipped GitHubCheckSuiteConclusion = "skipped" GitHubCheckSuiteConclusionStale GitHubCheckSuiteConclusion = "stale" GitHubCheckSuiteConclusionStartupFailure GitHubCheckSuiteConclusion = "startup_failure" GitHubCheckSuiteConclusionSuccess GitHubCheckSuiteConclusion = "success" GitHubCheckSuiteConclusionTimedOut GitHubCheckSuiteConclusion = "timed_out" )
Defines values for GitHubCheckSuiteConclusion.
func (GitHubCheckSuiteConclusion) Valid ¶ added in v1.29.0
func (e GitHubCheckSuiteConclusion) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckSuiteConclusion enum.
type GitHubCheckSuiteStatus ¶ added in v1.23.0
type GitHubCheckSuiteStatus string
GitHubCheckSuiteStatus The status of a GitHub check suite.
- `requested`: The check suite was requested. - `in_progress`: The check suite is in progress. - `completed`: The check suite has completed (see `conclusions` for the outcome). - `queued`: The check suite is queued. - `pending`: The check suite is pending.
const ( GitHubCheckSuiteStatusCompleted GitHubCheckSuiteStatus = "completed" GitHubCheckSuiteStatusInProgress GitHubCheckSuiteStatus = "in_progress" GitHubCheckSuiteStatusPending GitHubCheckSuiteStatus = "pending" GitHubCheckSuiteStatusQueued GitHubCheckSuiteStatus = "queued" GitHubCheckSuiteStatusRequested GitHubCheckSuiteStatus = "requested" )
Defines values for GitHubCheckSuiteStatus.
func (GitHubCheckSuiteStatus) Valid ¶ added in v1.29.0
func (e GitHubCheckSuiteStatus) Valid() bool
Valid indicates whether the value is a known member of the GitHubCheckSuiteStatus enum.
type GitHubCommentAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type GitHubCommentAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Keyword Optional whole-word keyword the comment body must contain. Matching is
// case-insensitive. When absent or empty, any comment fires the automation.
Keyword *string `json:"keyword,omitempty"`
// KeywordRegex Optional RE2 regular expression matched against the complete comment body.
// Mutually exclusive with `keyword`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
KeywordRegex *string `json:"keywordRegex,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
}
GitHubCommentAgenticWorkflowTriggerSpec defines model for GitHubCommentAgenticWorkflowTriggerSpec.
type GitHubDeploymentAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubDeploymentAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the
// deployment, so its `github.deployment_status` events resume the same thread.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubDeploymentAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubDeploymentAgenticWorkflowTrigger defines model for GitHubDeploymentAgenticWorkflowTrigger.
type GitHubDeploymentAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubDeploymentAgenticWorkflowTriggerKind string
GitHubDeploymentAgenticWorkflowTriggerKind defines model for GitHubDeploymentAgenticWorkflowTrigger.Kind.
const ( GitHubDeploymentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubDeploymentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubDeploymentAgenticWorkflowTriggerKindFailedCheckNew GitHubDeploymentAgenticWorkflowTriggerKind = "failed_check.new" GitHubDeploymentAgenticWorkflowTriggerKindGithubCheckRun GitHubDeploymentAgenticWorkflowTriggerKind = "github.check_run" GitHubDeploymentAgenticWorkflowTriggerKindGithubCheckSuite GitHubDeploymentAgenticWorkflowTriggerKind = "github.check_suite" GitHubDeploymentAgenticWorkflowTriggerKindGithubDeployment GitHubDeploymentAgenticWorkflowTriggerKind = "github.deployment" GitHubDeploymentAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubDeploymentAgenticWorkflowTriggerKind = "github.deployment_status" GitHubDeploymentAgenticWorkflowTriggerKindGithubIssueComment GitHubDeploymentAgenticWorkflowTriggerKind = "github.issue_comment" GitHubDeploymentAgenticWorkflowTriggerKindGithubPullRequest GitHubDeploymentAgenticWorkflowTriggerKind = "github.pull_request" GitHubDeploymentAgenticWorkflowTriggerKindGithubPullRequestReview GitHubDeploymentAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubDeploymentAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubDeploymentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubDeploymentAgenticWorkflowTriggerKindGithubPush GitHubDeploymentAgenticWorkflowTriggerKind = "github.push" GitHubDeploymentAgenticWorkflowTriggerKindGithubRelease GitHubDeploymentAgenticWorkflowTriggerKind = "github.release" GitHubDeploymentAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubDeploymentAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubDeploymentAgenticWorkflowTriggerKindGithubWorkflowJob GitHubDeploymentAgenticWorkflowTriggerKind = "github.workflow_job" GitHubDeploymentAgenticWorkflowTriggerKindGithubWorkflowRun GitHubDeploymentAgenticWorkflowTriggerKind = "github.workflow_run" GitHubDeploymentAgenticWorkflowTriggerKindGitlabMergeRequest GitHubDeploymentAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubDeploymentAgenticWorkflowTriggerKindGitlabNote GitHubDeploymentAgenticWorkflowTriggerKind = "gitlab.note" GitHubDeploymentAgenticWorkflowTriggerKindLinearComment GitHubDeploymentAgenticWorkflowTriggerKind = "linear.comment" GitHubDeploymentAgenticWorkflowTriggerKindLinearCommentReaction GitHubDeploymentAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubDeploymentAgenticWorkflowTriggerKindLinearInitiative GitHubDeploymentAgenticWorkflowTriggerKind = "linear.initiative" GitHubDeploymentAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubDeploymentAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubDeploymentAgenticWorkflowTriggerKindLinearIssue GitHubDeploymentAgenticWorkflowTriggerKind = "linear.issue" GitHubDeploymentAgenticWorkflowTriggerKindLinearIssueAttachment GitHubDeploymentAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubDeploymentAgenticWorkflowTriggerKindLinearIssueComment GitHubDeploymentAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubDeploymentAgenticWorkflowTriggerKindLinearProject GitHubDeploymentAgenticWorkflowTriggerKind = "linear.project" GitHubDeploymentAgenticWorkflowTriggerKindLinearProjectUpdate GitHubDeploymentAgenticWorkflowTriggerKind = "linear.project_update" GitHubDeploymentAgenticWorkflowTriggerKindManual GitHubDeploymentAgenticWorkflowTriggerKind = "manual" GitHubDeploymentAgenticWorkflowTriggerKindSchedule GitHubDeploymentAgenticWorkflowTriggerKind = "schedule" GitHubDeploymentAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubDeploymentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubDeploymentAgenticWorkflowTriggerKindSlackBotMessage GitHubDeploymentAgenticWorkflowTriggerKind = "slack_bot.message" GitHubDeploymentAgenticWorkflowTriggerKindSlackBotReaction GitHubDeploymentAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubDeploymentAgenticWorkflowTriggerKindWebhook GitHubDeploymentAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubDeploymentAgenticWorkflowTriggerKind.
func (GitHubDeploymentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubDeploymentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubDeploymentAgenticWorkflowTriggerKind enum.
type GitHubDeploymentStatusAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubDeploymentStatusAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the
// deployment (the `github.deployment` event that created it).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubDeploymentStatusAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubDeploymentStatusAgenticWorkflowTrigger defines model for GitHubDeploymentStatusAgenticWorkflowTrigger.
type GitHubDeploymentStatusAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubDeploymentStatusAgenticWorkflowTriggerKind string
GitHubDeploymentStatusAgenticWorkflowTriggerKind defines model for GitHubDeploymentStatusAgenticWorkflowTrigger.Kind.
const ( GitHubDeploymentStatusAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubDeploymentStatusAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubDeploymentStatusAgenticWorkflowTriggerKindFailedCheckNew GitHubDeploymentStatusAgenticWorkflowTriggerKind = "failed_check.new" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubCheckRun GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.check_run" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubCheckSuite GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.check_suite" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubDeployment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.deployment" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.deployment_status" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubIssueComment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.issue_comment" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubPullRequest GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.pull_request" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubPullRequestReview GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubPush GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.push" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubRelease GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.release" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubWorkflowJob GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.workflow_job" GitHubDeploymentStatusAgenticWorkflowTriggerKindGithubWorkflowRun GitHubDeploymentStatusAgenticWorkflowTriggerKind = "github.workflow_run" GitHubDeploymentStatusAgenticWorkflowTriggerKindGitlabMergeRequest GitHubDeploymentStatusAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubDeploymentStatusAgenticWorkflowTriggerKindGitlabNote GitHubDeploymentStatusAgenticWorkflowTriggerKind = "gitlab.note" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearComment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.comment" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearCommentReaction GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearInitiative GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.initiative" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearIssue GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.issue" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearIssueAttachment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearIssueComment GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearProject GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.project" GitHubDeploymentStatusAgenticWorkflowTriggerKindLinearProjectUpdate GitHubDeploymentStatusAgenticWorkflowTriggerKind = "linear.project_update" GitHubDeploymentStatusAgenticWorkflowTriggerKindManual GitHubDeploymentStatusAgenticWorkflowTriggerKind = "manual" GitHubDeploymentStatusAgenticWorkflowTriggerKindSchedule GitHubDeploymentStatusAgenticWorkflowTriggerKind = "schedule" GitHubDeploymentStatusAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubDeploymentStatusAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubDeploymentStatusAgenticWorkflowTriggerKindSlackBotMessage GitHubDeploymentStatusAgenticWorkflowTriggerKind = "slack_bot.message" GitHubDeploymentStatusAgenticWorkflowTriggerKindSlackBotReaction GitHubDeploymentStatusAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubDeploymentStatusAgenticWorkflowTriggerKindWebhook GitHubDeploymentStatusAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubDeploymentStatusAgenticWorkflowTriggerKind.
func (GitHubDeploymentStatusAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubDeploymentStatusAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubDeploymentStatusAgenticWorkflowTriggerKind enum.
type GitHubIssueCommentAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubIssueCommentAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull
// request (`github.pull_request`), keyed by the PR number from the comment's issue.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubIssueCommentAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubCommentAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubIssueCommentAgenticWorkflowTrigger defines model for GitHubIssueCommentAgenticWorkflowTrigger.
type GitHubIssueCommentAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubIssueCommentAgenticWorkflowTriggerKind string
GitHubIssueCommentAgenticWorkflowTriggerKind defines model for GitHubIssueCommentAgenticWorkflowTrigger.Kind.
const ( GitHubIssueCommentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubIssueCommentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubIssueCommentAgenticWorkflowTriggerKindFailedCheckNew GitHubIssueCommentAgenticWorkflowTriggerKind = "failed_check.new" GitHubIssueCommentAgenticWorkflowTriggerKindGithubCheckRun GitHubIssueCommentAgenticWorkflowTriggerKind = "github.check_run" GitHubIssueCommentAgenticWorkflowTriggerKindGithubCheckSuite GitHubIssueCommentAgenticWorkflowTriggerKind = "github.check_suite" GitHubIssueCommentAgenticWorkflowTriggerKindGithubDeployment GitHubIssueCommentAgenticWorkflowTriggerKind = "github.deployment" GitHubIssueCommentAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubIssueCommentAgenticWorkflowTriggerKind = "github.deployment_status" GitHubIssueCommentAgenticWorkflowTriggerKindGithubIssueComment GitHubIssueCommentAgenticWorkflowTriggerKind = "github.issue_comment" GitHubIssueCommentAgenticWorkflowTriggerKindGithubPullRequest GitHubIssueCommentAgenticWorkflowTriggerKind = "github.pull_request" GitHubIssueCommentAgenticWorkflowTriggerKindGithubPullRequestReview GitHubIssueCommentAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubIssueCommentAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubIssueCommentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubIssueCommentAgenticWorkflowTriggerKindGithubPush GitHubIssueCommentAgenticWorkflowTriggerKind = "github.push" GitHubIssueCommentAgenticWorkflowTriggerKindGithubRelease GitHubIssueCommentAgenticWorkflowTriggerKind = "github.release" GitHubIssueCommentAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubIssueCommentAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubIssueCommentAgenticWorkflowTriggerKindGithubWorkflowJob GitHubIssueCommentAgenticWorkflowTriggerKind = "github.workflow_job" GitHubIssueCommentAgenticWorkflowTriggerKindGithubWorkflowRun GitHubIssueCommentAgenticWorkflowTriggerKind = "github.workflow_run" GitHubIssueCommentAgenticWorkflowTriggerKindGitlabMergeRequest GitHubIssueCommentAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubIssueCommentAgenticWorkflowTriggerKindGitlabNote GitHubIssueCommentAgenticWorkflowTriggerKind = "gitlab.note" GitHubIssueCommentAgenticWorkflowTriggerKindLinearComment GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.comment" GitHubIssueCommentAgenticWorkflowTriggerKindLinearCommentReaction GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubIssueCommentAgenticWorkflowTriggerKindLinearInitiative GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.initiative" GitHubIssueCommentAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubIssueCommentAgenticWorkflowTriggerKindLinearIssue GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.issue" GitHubIssueCommentAgenticWorkflowTriggerKindLinearIssueAttachment GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubIssueCommentAgenticWorkflowTriggerKindLinearIssueComment GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubIssueCommentAgenticWorkflowTriggerKindLinearProject GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.project" GitHubIssueCommentAgenticWorkflowTriggerKindLinearProjectUpdate GitHubIssueCommentAgenticWorkflowTriggerKind = "linear.project_update" GitHubIssueCommentAgenticWorkflowTriggerKindManual GitHubIssueCommentAgenticWorkflowTriggerKind = "manual" GitHubIssueCommentAgenticWorkflowTriggerKindSchedule GitHubIssueCommentAgenticWorkflowTriggerKind = "schedule" GitHubIssueCommentAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubIssueCommentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubIssueCommentAgenticWorkflowTriggerKindSlackBotMessage GitHubIssueCommentAgenticWorkflowTriggerKind = "slack_bot.message" GitHubIssueCommentAgenticWorkflowTriggerKindSlackBotReaction GitHubIssueCommentAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubIssueCommentAgenticWorkflowTriggerKindWebhook GitHubIssueCommentAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubIssueCommentAgenticWorkflowTriggerKind.
func (GitHubIssueCommentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubIssueCommentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubIssueCommentAgenticWorkflowTriggerKind enum.
type GitHubPullRequestAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubPullRequestAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull
// request (`github.pull_request`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubPullRequestAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubPullRequestAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubPullRequestAgenticWorkflowTrigger defines model for GitHubPullRequestAgenticWorkflowTrigger.
type GitHubPullRequestAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubPullRequestAgenticWorkflowTriggerKind string
GitHubPullRequestAgenticWorkflowTriggerKind defines model for GitHubPullRequestAgenticWorkflowTrigger.Kind.
const ( GitHubPullRequestAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubPullRequestAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubPullRequestAgenticWorkflowTriggerKindFailedCheckNew GitHubPullRequestAgenticWorkflowTriggerKind = "failed_check.new" GitHubPullRequestAgenticWorkflowTriggerKindGithubCheckRun GitHubPullRequestAgenticWorkflowTriggerKind = "github.check_run" GitHubPullRequestAgenticWorkflowTriggerKindGithubCheckSuite GitHubPullRequestAgenticWorkflowTriggerKind = "github.check_suite" GitHubPullRequestAgenticWorkflowTriggerKindGithubDeployment GitHubPullRequestAgenticWorkflowTriggerKind = "github.deployment" GitHubPullRequestAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubPullRequestAgenticWorkflowTriggerKind = "github.deployment_status" GitHubPullRequestAgenticWorkflowTriggerKindGithubIssueComment GitHubPullRequestAgenticWorkflowTriggerKind = "github.issue_comment" GitHubPullRequestAgenticWorkflowTriggerKindGithubPullRequest GitHubPullRequestAgenticWorkflowTriggerKind = "github.pull_request" GitHubPullRequestAgenticWorkflowTriggerKindGithubPullRequestReview GitHubPullRequestAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubPullRequestAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubPullRequestAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubPullRequestAgenticWorkflowTriggerKindGithubPush GitHubPullRequestAgenticWorkflowTriggerKind = "github.push" GitHubPullRequestAgenticWorkflowTriggerKindGithubRelease GitHubPullRequestAgenticWorkflowTriggerKind = "github.release" GitHubPullRequestAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubPullRequestAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubPullRequestAgenticWorkflowTriggerKindGithubWorkflowJob GitHubPullRequestAgenticWorkflowTriggerKind = "github.workflow_job" GitHubPullRequestAgenticWorkflowTriggerKindGithubWorkflowRun GitHubPullRequestAgenticWorkflowTriggerKind = "github.workflow_run" GitHubPullRequestAgenticWorkflowTriggerKindGitlabMergeRequest GitHubPullRequestAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubPullRequestAgenticWorkflowTriggerKindGitlabNote GitHubPullRequestAgenticWorkflowTriggerKind = "gitlab.note" GitHubPullRequestAgenticWorkflowTriggerKindLinearComment GitHubPullRequestAgenticWorkflowTriggerKind = "linear.comment" GitHubPullRequestAgenticWorkflowTriggerKindLinearCommentReaction GitHubPullRequestAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubPullRequestAgenticWorkflowTriggerKindLinearInitiative GitHubPullRequestAgenticWorkflowTriggerKind = "linear.initiative" GitHubPullRequestAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubPullRequestAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubPullRequestAgenticWorkflowTriggerKindLinearIssue GitHubPullRequestAgenticWorkflowTriggerKind = "linear.issue" GitHubPullRequestAgenticWorkflowTriggerKindLinearIssueAttachment GitHubPullRequestAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubPullRequestAgenticWorkflowTriggerKindLinearIssueComment GitHubPullRequestAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubPullRequestAgenticWorkflowTriggerKindLinearProject GitHubPullRequestAgenticWorkflowTriggerKind = "linear.project" GitHubPullRequestAgenticWorkflowTriggerKindLinearProjectUpdate GitHubPullRequestAgenticWorkflowTriggerKind = "linear.project_update" GitHubPullRequestAgenticWorkflowTriggerKindManual GitHubPullRequestAgenticWorkflowTriggerKind = "manual" GitHubPullRequestAgenticWorkflowTriggerKindSchedule GitHubPullRequestAgenticWorkflowTriggerKind = "schedule" GitHubPullRequestAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubPullRequestAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubPullRequestAgenticWorkflowTriggerKindSlackBotMessage GitHubPullRequestAgenticWorkflowTriggerKind = "slack_bot.message" GitHubPullRequestAgenticWorkflowTriggerKindSlackBotReaction GitHubPullRequestAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubPullRequestAgenticWorkflowTriggerKindWebhook GitHubPullRequestAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubPullRequestAgenticWorkflowTriggerKind.
func (GitHubPullRequestAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubPullRequestAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubPullRequestAgenticWorkflowTriggerKind enum.
type GitHubPullRequestAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type GitHubPullRequestAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete head branch name, the
// branch the pull request comes from, not the base branch it merges into. Mutually
// exclusive with `branches`. A pull request from a fork never matches.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of exact head branch names, that is the branch the pull request
// comes from (for example `claude/fix-login`), not the base branch it merges into.
// Matching is case-sensitive. A pull request from a fork never matches.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Labels Optional list of label names. The trigger fires when the pull request carries at
// least one of them at the time of the event. Matching is exact and case-sensitive.
// A pull request without labels never matches a non-empty list.
Labels *[]string `json:"labels,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// TitleRegex Optional RE2 regular expression matched against the complete pull request title at
// the time of the event. Matching is case-sensitive unless the pattern includes a
// flag such as `(?i)`.
TitleRegex *string `json:"titleRegex,omitempty"`
}
GitHubPullRequestAgenticWorkflowTriggerSpec defines model for GitHubPullRequestAgenticWorkflowTriggerSpec.
type GitHubPullRequestReviewAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubPullRequestReviewAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull
// request (`github.pull_request`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubPullRequestReviewAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubPullRequestReviewAgenticWorkflowTrigger defines model for GitHubPullRequestReviewAgenticWorkflowTrigger.
type GitHubPullRequestReviewAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubPullRequestReviewAgenticWorkflowTriggerKind string
GitHubPullRequestReviewAgenticWorkflowTriggerKind defines model for GitHubPullRequestReviewAgenticWorkflowTrigger.Kind.
const ( GitHubPullRequestReviewAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubPullRequestReviewAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubPullRequestReviewAgenticWorkflowTriggerKindFailedCheckNew GitHubPullRequestReviewAgenticWorkflowTriggerKind = "failed_check.new" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubCheckRun GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.check_run" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubCheckSuite GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.check_suite" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubDeployment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.deployment" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.deployment_status" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubIssueComment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.issue_comment" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubPullRequest GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.pull_request" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubPullRequestReview GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubPush GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.push" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubRelease GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.release" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubWorkflowJob GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.workflow_job" GitHubPullRequestReviewAgenticWorkflowTriggerKindGithubWorkflowRun GitHubPullRequestReviewAgenticWorkflowTriggerKind = "github.workflow_run" GitHubPullRequestReviewAgenticWorkflowTriggerKindGitlabMergeRequest GitHubPullRequestReviewAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubPullRequestReviewAgenticWorkflowTriggerKindGitlabNote GitHubPullRequestReviewAgenticWorkflowTriggerKind = "gitlab.note" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearComment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.comment" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearCommentReaction GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearInitiative GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.initiative" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearIssue GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.issue" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearIssueAttachment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearIssueComment GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearProject GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.project" GitHubPullRequestReviewAgenticWorkflowTriggerKindLinearProjectUpdate GitHubPullRequestReviewAgenticWorkflowTriggerKind = "linear.project_update" GitHubPullRequestReviewAgenticWorkflowTriggerKindManual GitHubPullRequestReviewAgenticWorkflowTriggerKind = "manual" GitHubPullRequestReviewAgenticWorkflowTriggerKindSchedule GitHubPullRequestReviewAgenticWorkflowTriggerKind = "schedule" GitHubPullRequestReviewAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubPullRequestReviewAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubPullRequestReviewAgenticWorkflowTriggerKindSlackBotMessage GitHubPullRequestReviewAgenticWorkflowTriggerKind = "slack_bot.message" GitHubPullRequestReviewAgenticWorkflowTriggerKindSlackBotReaction GitHubPullRequestReviewAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubPullRequestReviewAgenticWorkflowTriggerKindWebhook GitHubPullRequestReviewAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubPullRequestReviewAgenticWorkflowTriggerKind.
func (GitHubPullRequestReviewAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubPullRequestReviewAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubPullRequestReviewAgenticWorkflowTriggerKind enum.
type GitHubPullRequestReviewCommentAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubPullRequestReviewCommentAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the pull
// request (`github.pull_request`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubCommentAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubPullRequestReviewCommentAgenticWorkflowTrigger defines model for GitHubPullRequestReviewCommentAgenticWorkflowTrigger.
type GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind string
GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind defines model for GitHubPullRequestReviewCommentAgenticWorkflowTrigger.Kind.
const ( GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindFailedCheckNew GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "failed_check.new" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubCheckRun GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.check_run" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubCheckSuite GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.check_suite" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubDeployment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.deployment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.deployment_status" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubIssueComment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.issue_comment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubPullRequest GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.pull_request" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubPullRequestReview GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubPush GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.push" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubRelease GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.release" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubWorkflowJob GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.workflow_job" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGithubWorkflowRun GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "github.workflow_run" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGitlabMergeRequest GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindGitlabNote GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "gitlab.note" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearComment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.comment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearCommentReaction GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearInitiative GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.initiative" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearIssue GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.issue" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearIssueAttachment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearIssueComment GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearProject GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.project" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindLinearProjectUpdate GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "linear.project_update" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindManual GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "manual" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindSchedule GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "schedule" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindSlackBotMessage GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "slack_bot.message" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindSlackBotReaction GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubPullRequestReviewCommentAgenticWorkflowTriggerKindWebhook GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind.
func (GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubPullRequestReviewCommentAgenticWorkflowTriggerKind enum.
type GitHubPushAgenticWorkflowTrigger ¶ added in v1.26.0
type GitHubPushAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubPushAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubPushAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubPushAgenticWorkflowTrigger defines model for GitHubPushAgenticWorkflowTrigger.
type GitHubPushAgenticWorkflowTriggerKind ¶ added in v1.26.0
type GitHubPushAgenticWorkflowTriggerKind string
GitHubPushAgenticWorkflowTriggerKind defines model for GitHubPushAgenticWorkflowTrigger.Kind.
const ( GitHubPushAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubPushAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubPushAgenticWorkflowTriggerKindFailedCheckNew GitHubPushAgenticWorkflowTriggerKind = "failed_check.new" GitHubPushAgenticWorkflowTriggerKindGithubCheckRun GitHubPushAgenticWorkflowTriggerKind = "github.check_run" GitHubPushAgenticWorkflowTriggerKindGithubCheckSuite GitHubPushAgenticWorkflowTriggerKind = "github.check_suite" GitHubPushAgenticWorkflowTriggerKindGithubDeployment GitHubPushAgenticWorkflowTriggerKind = "github.deployment" GitHubPushAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubPushAgenticWorkflowTriggerKind = "github.deployment_status" GitHubPushAgenticWorkflowTriggerKindGithubIssueComment GitHubPushAgenticWorkflowTriggerKind = "github.issue_comment" GitHubPushAgenticWorkflowTriggerKindGithubPullRequest GitHubPushAgenticWorkflowTriggerKind = "github.pull_request" GitHubPushAgenticWorkflowTriggerKindGithubPullRequestReview GitHubPushAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubPushAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubPushAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubPushAgenticWorkflowTriggerKindGithubPush GitHubPushAgenticWorkflowTriggerKind = "github.push" GitHubPushAgenticWorkflowTriggerKindGithubRelease GitHubPushAgenticWorkflowTriggerKind = "github.release" GitHubPushAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubPushAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubPushAgenticWorkflowTriggerKindGithubWorkflowJob GitHubPushAgenticWorkflowTriggerKind = "github.workflow_job" GitHubPushAgenticWorkflowTriggerKindGithubWorkflowRun GitHubPushAgenticWorkflowTriggerKind = "github.workflow_run" GitHubPushAgenticWorkflowTriggerKindGitlabMergeRequest GitHubPushAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubPushAgenticWorkflowTriggerKindGitlabNote GitHubPushAgenticWorkflowTriggerKind = "gitlab.note" GitHubPushAgenticWorkflowTriggerKindLinearComment GitHubPushAgenticWorkflowTriggerKind = "linear.comment" GitHubPushAgenticWorkflowTriggerKindLinearCommentReaction GitHubPushAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubPushAgenticWorkflowTriggerKindLinearInitiative GitHubPushAgenticWorkflowTriggerKind = "linear.initiative" GitHubPushAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubPushAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubPushAgenticWorkflowTriggerKindLinearIssue GitHubPushAgenticWorkflowTriggerKind = "linear.issue" GitHubPushAgenticWorkflowTriggerKindLinearIssueAttachment GitHubPushAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubPushAgenticWorkflowTriggerKindLinearIssueComment GitHubPushAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubPushAgenticWorkflowTriggerKindLinearProject GitHubPushAgenticWorkflowTriggerKind = "linear.project" GitHubPushAgenticWorkflowTriggerKindLinearProjectUpdate GitHubPushAgenticWorkflowTriggerKind = "linear.project_update" GitHubPushAgenticWorkflowTriggerKindManual GitHubPushAgenticWorkflowTriggerKind = "manual" GitHubPushAgenticWorkflowTriggerKindSchedule GitHubPushAgenticWorkflowTriggerKind = "schedule" GitHubPushAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubPushAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubPushAgenticWorkflowTriggerKindSlackBotMessage GitHubPushAgenticWorkflowTriggerKind = "slack_bot.message" GitHubPushAgenticWorkflowTriggerKindSlackBotReaction GitHubPushAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubPushAgenticWorkflowTriggerKindWebhook GitHubPushAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubPushAgenticWorkflowTriggerKind.
func (GitHubPushAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubPushAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubPushAgenticWorkflowTriggerKind enum.
type GitHubPushAgenticWorkflowTriggerSpec ¶ added in v1.26.0
type GitHubPushAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch names to filter on, matched against the check's associated
// commit branch. When omitted, checks on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// PathPatterns Optional list of GitHub-Actions-style glob patterns (for example,
// `migrations/**` or `**/*.go`) matched against files added, modified, or removed by
// the push. The automation triggers when any changed file matches any pattern. When
// omitted, pushes with any changed-file set match.
PathPatterns *[]string `json:"pathPatterns,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// TagRegex Optional RE2 regular expression matched against the complete pushed tag name.
// Mutually exclusive with `tags`.
TagRegex *string `json:"tagRegex,omitempty"`
// Tags Optional list of exact tag names. A push matches when its branch filters or its tag
// filters match the pushed ref. When no branch or tag filter is configured, every
// branch and tag push matches.
Tags *[]string `json:"tags,omitempty"`
}
GitHubPushAgenticWorkflowTriggerSpec defines model for GitHubPushAgenticWorkflowTriggerSpec.
type GitHubReleaseAgenticWorkflowTrigger ¶ added in v1.17.0
type GitHubReleaseAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the
// release (keyed by release tag).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubReleaseAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubReleaseAgenticWorkflowTrigger defines model for GitHubReleaseAgenticWorkflowTrigger.
type GitHubReleaseAgenticWorkflowTriggerKind ¶ added in v1.17.0
type GitHubReleaseAgenticWorkflowTriggerKind string
GitHubReleaseAgenticWorkflowTriggerKind defines model for GitHubReleaseAgenticWorkflowTrigger.Kind.
const ( GitHubReleaseAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubReleaseAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubReleaseAgenticWorkflowTriggerKindFailedCheckNew GitHubReleaseAgenticWorkflowTriggerKind = "failed_check.new" GitHubReleaseAgenticWorkflowTriggerKindGithubCheckRun GitHubReleaseAgenticWorkflowTriggerKind = "github.check_run" GitHubReleaseAgenticWorkflowTriggerKindGithubCheckSuite GitHubReleaseAgenticWorkflowTriggerKind = "github.check_suite" GitHubReleaseAgenticWorkflowTriggerKindGithubDeployment GitHubReleaseAgenticWorkflowTriggerKind = "github.deployment" GitHubReleaseAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubReleaseAgenticWorkflowTriggerKind = "github.deployment_status" GitHubReleaseAgenticWorkflowTriggerKindGithubIssueComment GitHubReleaseAgenticWorkflowTriggerKind = "github.issue_comment" GitHubReleaseAgenticWorkflowTriggerKindGithubPullRequest GitHubReleaseAgenticWorkflowTriggerKind = "github.pull_request" GitHubReleaseAgenticWorkflowTriggerKindGithubPullRequestReview GitHubReleaseAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubReleaseAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubReleaseAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubReleaseAgenticWorkflowTriggerKindGithubPush GitHubReleaseAgenticWorkflowTriggerKind = "github.push" GitHubReleaseAgenticWorkflowTriggerKindGithubRelease GitHubReleaseAgenticWorkflowTriggerKind = "github.release" GitHubReleaseAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubReleaseAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubReleaseAgenticWorkflowTriggerKindGithubWorkflowJob GitHubReleaseAgenticWorkflowTriggerKind = "github.workflow_job" GitHubReleaseAgenticWorkflowTriggerKindGithubWorkflowRun GitHubReleaseAgenticWorkflowTriggerKind = "github.workflow_run" GitHubReleaseAgenticWorkflowTriggerKindGitlabMergeRequest GitHubReleaseAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubReleaseAgenticWorkflowTriggerKindGitlabNote GitHubReleaseAgenticWorkflowTriggerKind = "gitlab.note" GitHubReleaseAgenticWorkflowTriggerKindLinearComment GitHubReleaseAgenticWorkflowTriggerKind = "linear.comment" GitHubReleaseAgenticWorkflowTriggerKindLinearCommentReaction GitHubReleaseAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubReleaseAgenticWorkflowTriggerKindLinearInitiative GitHubReleaseAgenticWorkflowTriggerKind = "linear.initiative" GitHubReleaseAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubReleaseAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubReleaseAgenticWorkflowTriggerKindLinearIssue GitHubReleaseAgenticWorkflowTriggerKind = "linear.issue" GitHubReleaseAgenticWorkflowTriggerKindLinearIssueAttachment GitHubReleaseAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubReleaseAgenticWorkflowTriggerKindLinearIssueComment GitHubReleaseAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubReleaseAgenticWorkflowTriggerKindLinearProject GitHubReleaseAgenticWorkflowTriggerKind = "linear.project" GitHubReleaseAgenticWorkflowTriggerKindLinearProjectUpdate GitHubReleaseAgenticWorkflowTriggerKind = "linear.project_update" GitHubReleaseAgenticWorkflowTriggerKindManual GitHubReleaseAgenticWorkflowTriggerKind = "manual" GitHubReleaseAgenticWorkflowTriggerKindSchedule GitHubReleaseAgenticWorkflowTriggerKind = "schedule" GitHubReleaseAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubReleaseAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubReleaseAgenticWorkflowTriggerKindSlackBotMessage GitHubReleaseAgenticWorkflowTriggerKind = "slack_bot.message" GitHubReleaseAgenticWorkflowTriggerKindSlackBotReaction GitHubReleaseAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubReleaseAgenticWorkflowTriggerKindWebhook GitHubReleaseAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubReleaseAgenticWorkflowTriggerKind.
func (GitHubReleaseAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubReleaseAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubReleaseAgenticWorkflowTriggerKind enum.
type GitHubTriggerVariableName ¶ added in v1.17.0
type GitHubTriggerVariableName string
GitHubTriggerVariableName Variables provided by all GitHub-based triggers.
- `github.action`: The GitHub event action (e.g., `opened`, `created`, `completed`).
- `github.account`: The GitHub account login (organization or user).
- `github.repository`: Full repository name (e.g., `owner/repo`).
- `github.installation.id`: The GitHub App installation id the event came from.
- `github.pull_request.number`: The pull request number. Present on pull-request, review, review-comment, and issue-comment triggers (when the comment is on a PR; these are the triggers that can continue an agent by PR).
- `github.deployment.id`: The deployment id. Present on deployment and deployment-status triggers; routes "continue" triggers back to the agent thread owning the deployment.
- `github.deployment.environment`: The deployment environment (e.g., `production`). Present on deployment and deployment-status triggers.
- `github.deployment_status.state`: The deployment status state (e.g., `success`, `failure`, `pending`). Present on deployment-status triggers only.
- `github.check_run.status`: The check run status (e.g., `completed`, `in_progress`). Present on deployment-status triggers when a check run accompanies the event, and on check_run triggers directly.
- `github.release.tag`: The release tag name (e.g., `v1.2.3`). Present on release triggers; routes "continue" triggers back to the agent thread owning the release.
- `github.comment.body`: The body text of the comment. Present on `github.pull_request_review_comment` and `github.issue_comment` triggers only.
- `github.workflow_run.id`: The workflow run id. Present on workflow_run triggers.
- `github.workflow_run.name`: The name of the workflow (e.g., `CI`). Present on workflow_run triggers.
- `github.workflow_run.head_branch`: The branch the workflow ran on. Present on workflow_run triggers.
- `github.workflow_run.conclusion`: The conclusion of the run (e.g., `success`, `failure`). Present on `completed` workflow_run events; empty otherwise.
- `github.workflow_run.url`: The HTML URL of the workflow run. Present on workflow_run triggers.
- `github.workflow_job.id`: The workflow job id. Present on workflow_job triggers.
- `github.workflow_job.name`: The job's own name (e.g., `test (3.9)`). Present on workflow_job triggers.
- `github.workflow_job.workflow_name`: The name of the workflow the job belongs to (e.g., `CI`). Present on workflow_job triggers.
- `github.workflow_job.head_branch`: The branch the job ran on, blank when the run came from a fork. Present on workflow_job triggers.
- `github.workflow_job.conclusion`: The conclusion of the job (e.g., `success`, `failure`). Present on `completed` workflow_job events; empty otherwise.
- `github.workflow_job.url`: The HTML URL of the workflow job. Present on workflow_job triggers.
- `github.workflow_dispatch.ref`: The branch or tag the workflow was dispatched against. Present on workflow_dispatch triggers.
- `github.workflow_dispatch.workflow`: The dispatched workflow's file path relative to the repository root (e.g., `.github/workflows/ci.yml`), not its display name. Present on workflow_dispatch triggers.
- `github.workflow_dispatch.inputs`: The caller-supplied `inputs` from a manual dispatch, as a JSON object string (e.g., `{"environment":"staging"}`). Present on workflow_dispatch triggers when the dispatch carried inputs; empty otherwise, including when oversized. Supplied by whoever triggered the workflow run and not sanitized — treat as untrusted input when writing a task prompt that references this variable.
- `github.push.branch`: The pushed branch name, without the `refs/heads/` prefix. Present on push triggers.
- `github.push.tag`: The pushed tag name, without the `refs/tags/` prefix. Present on tag push triggers.
- `github.push.commit.sha`: The SHA of the push's head commit. Present on push triggers.
- `github.push.commit.message`: The message of the push's head commit. Present on push triggers.
- `github.push.changed_files`: A JSON-encoded array of paths added, modified, or removed by the commits included in the webhook payload. Present on push triggers.
- `github.check_run.id`: The check run id. Present on check_run triggers.
- `github.check_run.name`: The name of the check (e.g., `lint`). Present on check_run triggers.
- `github.check_run.head_branch`: The branch the check ran on. Present on check_run triggers.
- `github.check_run.conclusion`: The conclusion of the check run (e.g., `success`, `failure`). Present on `completed` check_run events; empty otherwise.
- `github.check_run.url`: The HTML URL of the check run. Present on check_run triggers.
- `github.check_suite.id`: The check suite id. Present on check_suite triggers.
- `github.check_suite.head_branch`: The branch the check suite ran on. Present on check_suite triggers.
- `github.check_suite.conclusion`: The summary conclusion for all check runs in the suite (e.g., `success`, `failure`). Present on `completed` check_suite events; empty otherwise.
- `github.check_suite.status`: The check suite status (e.g., `completed`, `in_progress`). Present on check_suite triggers.
const ( GithubAccount GitHubTriggerVariableName = "github.account" GithubAction GitHubTriggerVariableName = "github.action" GithubCheckRunConclusion GitHubTriggerVariableName = "github.check_run.conclusion" GithubCheckRunHeadBranch GitHubTriggerVariableName = "github.check_run.head_branch" GithubCheckRunId GitHubTriggerVariableName = "github.check_run.id" GithubCheckRunName GitHubTriggerVariableName = "github.check_run.name" GithubCheckRunStatus GitHubTriggerVariableName = "github.check_run.status" GithubCheckRunUrl GitHubTriggerVariableName = "github.check_run.url" GithubCheckSuiteConclusion GitHubTriggerVariableName = "github.check_suite.conclusion" GithubCheckSuiteHeadBranch GitHubTriggerVariableName = "github.check_suite.head_branch" GithubCheckSuiteId GitHubTriggerVariableName = "github.check_suite.id" GithubCheckSuiteStatus GitHubTriggerVariableName = "github.check_suite.status" GithubCommentBody GitHubTriggerVariableName = "github.comment.body" GithubDeploymentEnvironment GitHubTriggerVariableName = "github.deployment.environment" GithubDeploymentId GitHubTriggerVariableName = "github.deployment.id" GithubDeploymentStatusState GitHubTriggerVariableName = "github.deployment_status.state" GithubInstallationId GitHubTriggerVariableName = "github.installation.id" GithubPullRequestNumber GitHubTriggerVariableName = "github.pull_request.number" GithubPushBranch GitHubTriggerVariableName = "github.push.branch" GithubPushChangedFiles GitHubTriggerVariableName = "github.push.changed_files" GithubPushCommitMessage GitHubTriggerVariableName = "github.push.commit.message" GithubPushCommitSha GitHubTriggerVariableName = "github.push.commit.sha" GithubPushTag GitHubTriggerVariableName = "github.push.tag" GithubReleaseTag GitHubTriggerVariableName = "github.release.tag" GithubRepository GitHubTriggerVariableName = "github.repository" GithubWorkflowDispatchInputs GitHubTriggerVariableName = "github.workflow_dispatch.inputs" GithubWorkflowDispatchRef GitHubTriggerVariableName = "github.workflow_dispatch.ref" GithubWorkflowDispatchWorkflow GitHubTriggerVariableName = "github.workflow_dispatch.workflow" GithubWorkflowJobConclusion GitHubTriggerVariableName = "github.workflow_job.conclusion" GithubWorkflowJobHeadBranch GitHubTriggerVariableName = "github.workflow_job.head_branch" GithubWorkflowJobId GitHubTriggerVariableName = "github.workflow_job.id" GithubWorkflowJobName GitHubTriggerVariableName = "github.workflow_job.name" GithubWorkflowJobUrl GitHubTriggerVariableName = "github.workflow_job.url" GithubWorkflowJobWorkflowName GitHubTriggerVariableName = "github.workflow_job.workflow_name" GithubWorkflowRunConclusion GitHubTriggerVariableName = "github.workflow_run.conclusion" GithubWorkflowRunHeadBranch GitHubTriggerVariableName = "github.workflow_run.head_branch" GithubWorkflowRunId GitHubTriggerVariableName = "github.workflow_run.id" GithubWorkflowRunName GitHubTriggerVariableName = "github.workflow_run.name" GithubWorkflowRunUrl GitHubTriggerVariableName = "github.workflow_run.url" )
Defines values for GitHubTriggerVariableName.
func (GitHubTriggerVariableName) Valid ¶ added in v1.29.0
func (e GitHubTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the GitHubTriggerVariableName enum.
type GitHubWorkflowActivityAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubWorkflowActivityAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch (or, for workflow_dispatch, branch or tag) names to filter
// on. When omitted, events on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// WorkflowNames Optional list of workflow names to filter on. For workflow_run/workflow_job this is
// the workflow's display name (e.g., `CI`, `Deploy`); for workflow_dispatch it is the
// workflow's file path relative to the repository root (e.g.,
// `.github/workflows/ci.yml`). When omitted, events from any workflow match.
WorkflowNames *[]string `json:"workflowNames,omitempty"`
}
GitHubWorkflowActivityAgenticWorkflowTriggerSpec defines model for GitHubWorkflowActivityAgenticWorkflowTriggerSpec.
type GitHubWorkflowDispatchAgenticWorkflowTrigger ¶ added in v1.23.0
type GitHubWorkflowDispatchAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubWorkflowDispatchAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubWorkflowDispatchAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubWorkflowDispatchAgenticWorkflowTrigger defines model for GitHubWorkflowDispatchAgenticWorkflowTrigger.
type GitHubWorkflowDispatchAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitHubWorkflowDispatchAgenticWorkflowTriggerKind string
GitHubWorkflowDispatchAgenticWorkflowTriggerKind defines model for GitHubWorkflowDispatchAgenticWorkflowTrigger.Kind.
const ( GitHubWorkflowDispatchAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubWorkflowDispatchAgenticWorkflowTriggerKindFailedCheckNew GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "failed_check.new" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubCheckRun GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.check_run" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubCheckSuite GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.check_suite" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubDeployment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.deployment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.deployment_status" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubIssueComment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.issue_comment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubPullRequest GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.pull_request" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubPullRequestReview GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubPush GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.push" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubRelease GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.release" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubWorkflowJob GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.workflow_job" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGithubWorkflowRun GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "github.workflow_run" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGitlabMergeRequest GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubWorkflowDispatchAgenticWorkflowTriggerKindGitlabNote GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "gitlab.note" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearComment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.comment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearCommentReaction GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearInitiative GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.initiative" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearIssue GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.issue" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearIssueAttachment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearIssueComment GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearProject GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.project" GitHubWorkflowDispatchAgenticWorkflowTriggerKindLinearProjectUpdate GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "linear.project_update" GitHubWorkflowDispatchAgenticWorkflowTriggerKindManual GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "manual" GitHubWorkflowDispatchAgenticWorkflowTriggerKindSchedule GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "schedule" GitHubWorkflowDispatchAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubWorkflowDispatchAgenticWorkflowTriggerKindSlackBotMessage GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "slack_bot.message" GitHubWorkflowDispatchAgenticWorkflowTriggerKindSlackBotReaction GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubWorkflowDispatchAgenticWorkflowTriggerKindWebhook GitHubWorkflowDispatchAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubWorkflowDispatchAgenticWorkflowTriggerKind.
func (GitHubWorkflowDispatchAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubWorkflowDispatchAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubWorkflowDispatchAgenticWorkflowTriggerKind enum.
type GitHubWorkflowDispatchAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubWorkflowDispatchAgenticWorkflowTriggerSpec = GitHubWorkflowActivityAgenticWorkflowTriggerSpec
GitHubWorkflowDispatchAgenticWorkflowTriggerSpec defines model for GitHubWorkflowDispatchAgenticWorkflowTriggerSpec.
type GitHubWorkflowJobAgenticWorkflowTrigger ¶ added in v1.23.0
type GitHubWorkflowJobAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubWorkflowJobAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubWorkflowJobAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubWorkflowJobAgenticWorkflowTrigger defines model for GitHubWorkflowJobAgenticWorkflowTrigger.
type GitHubWorkflowJobAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitHubWorkflowJobAgenticWorkflowTriggerKind string
GitHubWorkflowJobAgenticWorkflowTriggerKind defines model for GitHubWorkflowJobAgenticWorkflowTrigger.Kind.
const ( GitHubWorkflowJobAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubWorkflowJobAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubWorkflowJobAgenticWorkflowTriggerKindFailedCheckNew GitHubWorkflowJobAgenticWorkflowTriggerKind = "failed_check.new" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubCheckRun GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.check_run" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubCheckSuite GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.check_suite" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubDeployment GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.deployment" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.deployment_status" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubIssueComment GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.issue_comment" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubPullRequest GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.pull_request" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubPullRequestReview GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubPush GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.push" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubRelease GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.release" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubWorkflowJob GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.workflow_job" GitHubWorkflowJobAgenticWorkflowTriggerKindGithubWorkflowRun GitHubWorkflowJobAgenticWorkflowTriggerKind = "github.workflow_run" GitHubWorkflowJobAgenticWorkflowTriggerKindGitlabMergeRequest GitHubWorkflowJobAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubWorkflowJobAgenticWorkflowTriggerKindGitlabNote GitHubWorkflowJobAgenticWorkflowTriggerKind = "gitlab.note" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearComment GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.comment" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearCommentReaction GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearInitiative GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.initiative" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearIssue GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.issue" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearIssueAttachment GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearIssueComment GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearProject GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.project" GitHubWorkflowJobAgenticWorkflowTriggerKindLinearProjectUpdate GitHubWorkflowJobAgenticWorkflowTriggerKind = "linear.project_update" GitHubWorkflowJobAgenticWorkflowTriggerKindManual GitHubWorkflowJobAgenticWorkflowTriggerKind = "manual" GitHubWorkflowJobAgenticWorkflowTriggerKindSchedule GitHubWorkflowJobAgenticWorkflowTriggerKind = "schedule" GitHubWorkflowJobAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubWorkflowJobAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubWorkflowJobAgenticWorkflowTriggerKindSlackBotMessage GitHubWorkflowJobAgenticWorkflowTriggerKind = "slack_bot.message" GitHubWorkflowJobAgenticWorkflowTriggerKindSlackBotReaction GitHubWorkflowJobAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubWorkflowJobAgenticWorkflowTriggerKindWebhook GitHubWorkflowJobAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubWorkflowJobAgenticWorkflowTriggerKind.
func (GitHubWorkflowJobAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubWorkflowJobAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubWorkflowJobAgenticWorkflowTriggerKind enum.
type GitHubWorkflowJobAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubWorkflowJobAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch (or, for workflow_dispatch, branch or tag) names to filter
// on. When omitted, events on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Conclusions Optional list of conclusions to filter on. Only applies to
// `completed` events. When omitted, jobs with any conclusion match.
Conclusions *[]GitHubWorkflowJobConclusion `json:"conclusions,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// WorkflowNames Optional list of workflow names to filter on. For workflow_run/workflow_job this is
// the workflow's display name (e.g., `CI`, `Deploy`); for workflow_dispatch it is the
// workflow's file path relative to the repository root (e.g.,
// `.github/workflows/ci.yml`). When omitted, events from any workflow match.
WorkflowNames *[]string `json:"workflowNames,omitempty"`
}
GitHubWorkflowJobAgenticWorkflowTriggerSpec defines model for GitHubWorkflowJobAgenticWorkflowTriggerSpec.
type GitHubWorkflowJobConclusion ¶ added in v1.23.0
type GitHubWorkflowJobConclusion string
GitHubWorkflowJobConclusion The conclusion of a GitHub Actions workflow job. GitHub's workflow_job payload carries a narrower set than workflow_run: no `stale`.
- `success`: The job completed successfully. - `failure`: The job failed. - `cancelled`: The job was cancelled. - `skipped`: The job was skipped. - `timed_out`: The job timed out. - `action_required`: The job requires manual action. - `neutral`: The job completed with a neutral result.
const ( GitHubWorkflowJobConclusionActionRequired GitHubWorkflowJobConclusion = "action_required" GitHubWorkflowJobConclusionCancelled GitHubWorkflowJobConclusion = "cancelled" GitHubWorkflowJobConclusionFailure GitHubWorkflowJobConclusion = "failure" GitHubWorkflowJobConclusionNeutral GitHubWorkflowJobConclusion = "neutral" GitHubWorkflowJobConclusionSkipped GitHubWorkflowJobConclusion = "skipped" GitHubWorkflowJobConclusionSuccess GitHubWorkflowJobConclusion = "success" GitHubWorkflowJobConclusionTimedOut GitHubWorkflowJobConclusion = "timed_out" )
Defines values for GitHubWorkflowJobConclusion.
func (GitHubWorkflowJobConclusion) Valid ¶ added in v1.29.0
func (e GitHubWorkflowJobConclusion) Valid() bool
Valid indicates whether the value is a known member of the GitHubWorkflowJobConclusion enum.
type GitHubWorkflowRunAgenticWorkflowTrigger ¶ added in v1.23.0
type GitHubWorkflowRunAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitHubWorkflowRunAgenticWorkflowTriggerKind `json:"kind"`
Spec GitHubWorkflowRunAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitHubWorkflowRunAgenticWorkflowTrigger defines model for GitHubWorkflowRunAgenticWorkflowTrigger.
type GitHubWorkflowRunAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitHubWorkflowRunAgenticWorkflowTriggerKind string
GitHubWorkflowRunAgenticWorkflowTriggerKind defines model for GitHubWorkflowRunAgenticWorkflowTrigger.Kind.
const ( GitHubWorkflowRunAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitHubWorkflowRunAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitHubWorkflowRunAgenticWorkflowTriggerKindFailedCheckNew GitHubWorkflowRunAgenticWorkflowTriggerKind = "failed_check.new" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubCheckRun GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.check_run" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubCheckSuite GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.check_suite" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubDeployment GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.deployment" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubDeploymentStatus GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.deployment_status" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubIssueComment GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.issue_comment" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubPullRequest GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.pull_request" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubPullRequestReview GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.pull_request_review" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubPush GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.push" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubRelease GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.release" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubWorkflowDispatch GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubWorkflowJob GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.workflow_job" GitHubWorkflowRunAgenticWorkflowTriggerKindGithubWorkflowRun GitHubWorkflowRunAgenticWorkflowTriggerKind = "github.workflow_run" GitHubWorkflowRunAgenticWorkflowTriggerKindGitlabMergeRequest GitHubWorkflowRunAgenticWorkflowTriggerKind = "gitlab.merge_request" GitHubWorkflowRunAgenticWorkflowTriggerKindGitlabNote GitHubWorkflowRunAgenticWorkflowTriggerKind = "gitlab.note" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearComment GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.comment" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearCommentReaction GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.comment_reaction" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearInitiative GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.initiative" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearInitiativeUpdate GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.initiative_update" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearIssue GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.issue" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearIssueAttachment GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.issue_attachment" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearIssueComment GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.issue_comment" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearProject GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.project" GitHubWorkflowRunAgenticWorkflowTriggerKindLinearProjectUpdate GitHubWorkflowRunAgenticWorkflowTriggerKind = "linear.project_update" GitHubWorkflowRunAgenticWorkflowTriggerKindManual GitHubWorkflowRunAgenticWorkflowTriggerKind = "manual" GitHubWorkflowRunAgenticWorkflowTriggerKindSchedule GitHubWorkflowRunAgenticWorkflowTriggerKind = "schedule" GitHubWorkflowRunAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitHubWorkflowRunAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitHubWorkflowRunAgenticWorkflowTriggerKindSlackBotMessage GitHubWorkflowRunAgenticWorkflowTriggerKind = "slack_bot.message" GitHubWorkflowRunAgenticWorkflowTriggerKindSlackBotReaction GitHubWorkflowRunAgenticWorkflowTriggerKind = "slack_bot.reaction" GitHubWorkflowRunAgenticWorkflowTriggerKindWebhook GitHubWorkflowRunAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitHubWorkflowRunAgenticWorkflowTriggerKind.
func (GitHubWorkflowRunAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitHubWorkflowRunAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitHubWorkflowRunAgenticWorkflowTriggerKind enum.
type GitHubWorkflowRunAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitHubWorkflowRunAgenticWorkflowTriggerSpec struct {
// Accounts Deprecated: use `organizations` instead. Kept for backwards compatibility; reads
// mirror the value of `organizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Accounts *[]string `json:"accounts,omitempty"`
// Actions Optional list of GitHub event actions to filter on.
// When specified, only events with a matching action trigger the workflow.
// When omitted, events with any action match.
//
// Note: `github.deployment`, `github.deployment_status`, `github.push`, and `github.workflow_dispatch` fire no action field; this filter has no effect for those trigger kinds. `github.deployment_status` filters on `states` instead.
//
// Valid values per trigger kind:
// - `github.pull_request`: `assigned`, `auto_merge_disabled`, `auto_merge_enabled`, `closed`, `converted_to_draft`, `demilestoned`, `dequeued`, `edited`, `enqueued`, `labeled`, `locked`, `milestoned`, `opened`, `ready_for_review`, `reopened`, `review_request_removed`, `review_requested`, `synchronize`, `unassigned`, `unlabeled`, `unlocked`
// - `github.pull_request_review`: `dismissed`, `edited`, `submitted`
// - `github.pull_request_review_comment`: `created`, `deleted`, `edited`
// - `github.issue_comment`: `created`, `deleted`, `edited`, `pinned`, `unpinned`
// - `github.release`: `created`, `deleted`, `edited`, `prereleased`, `published`, `released`, `unpublished`
// - `github.workflow_run`: `completed`, `requested`, `in_progress`
// - `github.workflow_job`: `queued`, `waiting`, `in_progress`, `completed`
// - `github.check_run`: `completed`, `created`, `requested_action`, `rerequested`
// - `github.check_suite`: `completed`, `requested`, `rerequested`
Actions *[]string `json:"actions,omitempty"`
// AllAccounts Deprecated: use `allOrganizations` instead. Kept for backwards compatibility; reads
// mirror the value of `allOrganizations` and writes are folded into it.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AllAccounts *bool `json:"allAccounts,omitempty"`
// AllOrganizations When true, the automation deliberately matches events from every organization, now and
// in the future. Mutually exclusive with a non-empty `organizations` list. This flag
// exists to distinguish an explicit "all organizations" choice from an unconfigured
// trigger: a GitHub trigger with no `organizations`, no `allOrganizations`, no
// `repositories`, no `allRepositories`, and (for comment kinds) no `keyword` is rejected
// on write as an accidental match-everything catch-all.
//
// `organizations`/`allOrganizations` and `repositories`/`allRepositories` are independent
// alternatives, not nested: an event matching either the organization filter or the
// repository filter triggers the automation.
//
// Replaces the deprecated `allAccounts` field. When both are set, they must carry the
// same value; requests where they contradict each other are rejected.
AllOrganizations *bool `json:"allOrganizations,omitempty"`
// AllRepositories When true, the automation deliberately matches events from every repository, now and
// in the future. Mutually exclusive with a non-empty `repositories` list. This flag
// exists to distinguish an explicit "all repositories" choice from an unconfigured
// trigger, mirroring `allOrganizations`.
AllRepositories *bool `json:"allRepositories,omitempty"`
// AuthorRegex Optional RE2 regular expression matched against the complete event-specific author
// login. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of exact content-author logins. The author is event-specific: for
// example, the pull request, review, comment, release, deployment, workflow run, or push
// head-commit author. Rejected on `github.workflow_job`, `github.workflow_dispatch`,
// `github.check_run`, and `github.check_suite`, whose events carry no author. Matching
// is case-insensitive.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]GitHubTriggerVariableName `json:"availableVariables,omitempty"`
// BranchRegex Optional RE2 regular expression matched against the complete branch name.
// Mutually exclusive with `branches`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
BranchRegex *string `json:"branchRegex,omitempty"`
// Branches Optional list of branch (or, for workflow_dispatch, branch or tag) names to filter
// on. When omitted, events on any branch match.
Branches *[]string `json:"branches,omitempty"`
// CheckRunStatuses Optional list of check run statuses to filter on. Only `github.deployment_status` uses this
// filter; it has no effect for other trigger kinds. The `deployment_status` event payload may
// carry an associated `check_run`; when specified, only events whose `check_run.status` matches
// trigger the automation. When omitted, any check run status (or none) matches.
//
// Valid values: `queued`, `in_progress`, `completed`, `waiting`, `pending`.
CheckRunStatuses *[]string `json:"checkRunStatuses,omitempty"`
// Conclusions Optional list of conclusions to filter on. Only applies to
// `completed` events. When omitted, runs with any conclusion match.
Conclusions *[]GitHubWorkflowRunConclusion `json:"conclusions,omitempty"`
// Organizations Optional list of GitHub organization logins to filter on (e.g., `my-org`). An
// "organization" here is the account the Dash0 GitHub App is installed on — usually a
// GitHub organization, but a personal account for personal installations.
// When specified, only events from these organizations trigger the automation.
// When omitted, events from any organization match.
//
// Replaces the deprecated `accounts` field. When both are set, they must carry the
// same values; requests where they contradict each other are rejected.
Organizations *[]string `json:"organizations,omitempty"`
// Repositories Optional list of repository full names to filter on (e.g., `owner/repo`).
// When specified, only events from these repositories trigger the automation.
// When omitted, events from any repository match.
Repositories *[]string `json:"repositories,omitempty"`
// SenderRegex Optional RE2 regular expression matched against the complete top-level sender login.
// Mutually exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of exact GitHub logins from the webhook's top-level `sender` field.
// The sender is the account that triggered the webhook and can represent a person, bot,
// or an App's bot account. Matching is case-insensitive.
Senders *[]string `json:"senders,omitempty"`
// States Optional list of deployment statuses to filter on. Only `github.deployment_status` uses
// this filter; it has no effect for other trigger kinds. When specified, only
// deployment-status events whose `state` matches trigger the automation. When omitted, any
// status matches.
//
// Valid values: `error`, `failure`, `inactive`, `pending`, `success`, `queued`, `in_progress`.
States *[]string `json:"states,omitempty"`
// WorkflowNames Optional list of workflow names to filter on. For workflow_run/workflow_job this is
// the workflow's display name (e.g., `CI`, `Deploy`); for workflow_dispatch it is the
// workflow's file path relative to the repository root (e.g.,
// `.github/workflows/ci.yml`). When omitted, events from any workflow match.
WorkflowNames *[]string `json:"workflowNames,omitempty"`
}
GitHubWorkflowRunAgenticWorkflowTriggerSpec defines model for GitHubWorkflowRunAgenticWorkflowTriggerSpec.
type GitHubWorkflowRunConclusion ¶ added in v1.23.0
type GitHubWorkflowRunConclusion string
GitHubWorkflowRunConclusion The conclusion of a GitHub Actions workflow run.
- `success`: The workflow run completed successfully. - `failure`: The workflow run failed. - `cancelled`: The workflow run was cancelled. - `skipped`: The workflow run was skipped. - `timed_out`: The workflow run timed out. - `action_required`: The workflow run requires manual action. - `neutral`: The workflow run completed with a neutral result. - `stale`: The workflow run went stale. - `startup_failure`: The workflow run failed to start.
const ( GitHubWorkflowRunConclusionActionRequired GitHubWorkflowRunConclusion = "action_required" GitHubWorkflowRunConclusionCancelled GitHubWorkflowRunConclusion = "cancelled" GitHubWorkflowRunConclusionFailure GitHubWorkflowRunConclusion = "failure" GitHubWorkflowRunConclusionNeutral GitHubWorkflowRunConclusion = "neutral" GitHubWorkflowRunConclusionSkipped GitHubWorkflowRunConclusion = "skipped" GitHubWorkflowRunConclusionStale GitHubWorkflowRunConclusion = "stale" GitHubWorkflowRunConclusionStartupFailure GitHubWorkflowRunConclusion = "startup_failure" GitHubWorkflowRunConclusionSuccess GitHubWorkflowRunConclusion = "success" GitHubWorkflowRunConclusionTimedOut GitHubWorkflowRunConclusion = "timed_out" )
Defines values for GitHubWorkflowRunConclusion.
func (GitHubWorkflowRunConclusion) Valid ¶ added in v1.29.0
func (e GitHubWorkflowRunConclusion) Valid() bool
Valid indicates whether the value is a known member of the GitHubWorkflowRunConclusion enum.
type GitLabAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitLabAgenticWorkflowTriggerSpec struct {
// Actions Optional list of merge request actions to filter on: `open`, `close`, `reopen`,
// `update`, `merge`, `approved`, `unapproved`.
//
// Only `gitlab.merge_request` uses this; a note carries no action, so the filter is
// skipped for `gitlab.note` rather than blocking every event.
Actions *[]string `json:"actions,omitempty"`
// AllGroups Explicitly match every group on the instance. Required to be set when no `groups` and
// no `projects` are given, so that a match-everything trigger is always a deliberate
// choice rather than an omission — mirroring `allOrganizations` on GitHub.
AllGroups *bool `json:"allGroups,omitempty"`
// AllProjects Explicitly match every project on the instance. See `allGroups`.
AllProjects *bool `json:"allProjects,omitempty"`
AvailableVariables *[]GitLabTriggerVariableName `json:"availableVariables,omitempty"`
// Groups Optional list of group full paths to filter on, e.g. `acme/backend`. A group covers every
// project beneath it at any depth, so `acme/backend` matches `acme/backend/api` and
// `acme/backend/tools/lint`, but not `acme/frontend/web` — nor `acme/backend-legacy/api`,
// which is a different group.
//
// A group given as a numeric id rather than a path matches nothing: ids and paths cannot be
// compared, and a filter that quietly matched everything would be worse than one that
// visibly matches nothing.
Groups *[]string `json:"groups,omitempty"`
// Instances Optional list of GitLab instance hosts to filter on, e.g. `gitlab.com`,
// `gitlab.acme.io`. Omit to match every instance the organization has connected.
//
// Only worth setting when an organization has more than one GitLab integration: a group or
// project path is unique within an instance but not across instances, so `acme/backend` on
// gitlab.com and on a self-managed host are different groups that a path filter alone
// cannot tell apart.
Instances *[]string `json:"instances,omitempty"`
// Projects Optional list of project full paths to filter on, e.g. `acme/backend/api`.
Projects *[]string `json:"projects,omitempty"`
}
GitLabAgenticWorkflowTriggerSpec Scope shared by the GitLab trigger kinds.
A GitLab webhook is registered by the customer on a group, and each Dash0 GitLab integration is anchored to one instance — so unlike the GitHub App, Dash0 cannot declare which events it receives. Which of these triggers ever fire depends on the event checkboxes ticked when the webhook was created.
type GitLabMergeRequestAgenticWorkflowTrigger ¶ added in v1.23.0
type GitLabMergeRequestAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the merge
// request (keyed by instance, project path, and IID).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitLabMergeRequestAgenticWorkflowTriggerKind `json:"kind"`
// Spec Scope shared by the GitLab trigger kinds.
//
// A GitLab webhook is registered by the customer on a group, and each Dash0 GitLab
// integration is anchored to one instance — so unlike the GitHub App, Dash0 cannot declare
// which events it receives. Which of these triggers ever fire depends on the event checkboxes
// ticked when the webhook was created.
Spec GitLabAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitLabMergeRequestAgenticWorkflowTrigger defines model for GitLabMergeRequestAgenticWorkflowTrigger.
type GitLabMergeRequestAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitLabMergeRequestAgenticWorkflowTriggerKind string
GitLabMergeRequestAgenticWorkflowTriggerKind defines model for GitLabMergeRequestAgenticWorkflowTrigger.Kind.
const ( GitLabMergeRequestAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitLabMergeRequestAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitLabMergeRequestAgenticWorkflowTriggerKindFailedCheckNew GitLabMergeRequestAgenticWorkflowTriggerKind = "failed_check.new" GitLabMergeRequestAgenticWorkflowTriggerKindGithubCheckRun GitLabMergeRequestAgenticWorkflowTriggerKind = "github.check_run" GitLabMergeRequestAgenticWorkflowTriggerKindGithubCheckSuite GitLabMergeRequestAgenticWorkflowTriggerKind = "github.check_suite" GitLabMergeRequestAgenticWorkflowTriggerKindGithubDeployment GitLabMergeRequestAgenticWorkflowTriggerKind = "github.deployment" GitLabMergeRequestAgenticWorkflowTriggerKindGithubDeploymentStatus GitLabMergeRequestAgenticWorkflowTriggerKind = "github.deployment_status" GitLabMergeRequestAgenticWorkflowTriggerKindGithubIssueComment GitLabMergeRequestAgenticWorkflowTriggerKind = "github.issue_comment" GitLabMergeRequestAgenticWorkflowTriggerKindGithubPullRequest GitLabMergeRequestAgenticWorkflowTriggerKind = "github.pull_request" GitLabMergeRequestAgenticWorkflowTriggerKindGithubPullRequestReview GitLabMergeRequestAgenticWorkflowTriggerKind = "github.pull_request_review" GitLabMergeRequestAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitLabMergeRequestAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitLabMergeRequestAgenticWorkflowTriggerKindGithubPush GitLabMergeRequestAgenticWorkflowTriggerKind = "github.push" GitLabMergeRequestAgenticWorkflowTriggerKindGithubRelease GitLabMergeRequestAgenticWorkflowTriggerKind = "github.release" GitLabMergeRequestAgenticWorkflowTriggerKindGithubWorkflowDispatch GitLabMergeRequestAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitLabMergeRequestAgenticWorkflowTriggerKindGithubWorkflowJob GitLabMergeRequestAgenticWorkflowTriggerKind = "github.workflow_job" GitLabMergeRequestAgenticWorkflowTriggerKindGithubWorkflowRun GitLabMergeRequestAgenticWorkflowTriggerKind = "github.workflow_run" GitLabMergeRequestAgenticWorkflowTriggerKindGitlabMergeRequest GitLabMergeRequestAgenticWorkflowTriggerKind = "gitlab.merge_request" GitLabMergeRequestAgenticWorkflowTriggerKindGitlabNote GitLabMergeRequestAgenticWorkflowTriggerKind = "gitlab.note" GitLabMergeRequestAgenticWorkflowTriggerKindLinearComment GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.comment" GitLabMergeRequestAgenticWorkflowTriggerKindLinearCommentReaction GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.comment_reaction" GitLabMergeRequestAgenticWorkflowTriggerKindLinearInitiative GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.initiative" GitLabMergeRequestAgenticWorkflowTriggerKindLinearInitiativeUpdate GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.initiative_update" GitLabMergeRequestAgenticWorkflowTriggerKindLinearIssue GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.issue" GitLabMergeRequestAgenticWorkflowTriggerKindLinearIssueAttachment GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.issue_attachment" GitLabMergeRequestAgenticWorkflowTriggerKindLinearIssueComment GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.issue_comment" GitLabMergeRequestAgenticWorkflowTriggerKindLinearProject GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.project" GitLabMergeRequestAgenticWorkflowTriggerKindLinearProjectUpdate GitLabMergeRequestAgenticWorkflowTriggerKind = "linear.project_update" GitLabMergeRequestAgenticWorkflowTriggerKindManual GitLabMergeRequestAgenticWorkflowTriggerKind = "manual" GitLabMergeRequestAgenticWorkflowTriggerKindSchedule GitLabMergeRequestAgenticWorkflowTriggerKind = "schedule" GitLabMergeRequestAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitLabMergeRequestAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitLabMergeRequestAgenticWorkflowTriggerKindSlackBotMessage GitLabMergeRequestAgenticWorkflowTriggerKind = "slack_bot.message" GitLabMergeRequestAgenticWorkflowTriggerKindSlackBotReaction GitLabMergeRequestAgenticWorkflowTriggerKind = "slack_bot.reaction" GitLabMergeRequestAgenticWorkflowTriggerKindWebhook GitLabMergeRequestAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitLabMergeRequestAgenticWorkflowTriggerKind.
func (GitLabMergeRequestAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitLabMergeRequestAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitLabMergeRequestAgenticWorkflowTriggerKind enum.
type GitLabNoteAgenticWorkflowTrigger ¶ added in v1.23.0
type GitLabNoteAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, a note on a merge request routes into the agent
// that owns it. A note on anything else carries no merge request to route by and spawns.
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind GitLabNoteAgenticWorkflowTriggerKind `json:"kind"`
Spec GitLabNoteAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
GitLabNoteAgenticWorkflowTrigger defines model for GitLabNoteAgenticWorkflowTrigger.
type GitLabNoteAgenticWorkflowTriggerKind ¶ added in v1.23.0
type GitLabNoteAgenticWorkflowTriggerKind string
GitLabNoteAgenticWorkflowTriggerKind defines model for GitLabNoteAgenticWorkflowTrigger.Kind.
const ( GitLabNoteAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation GitLabNoteAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" GitLabNoteAgenticWorkflowTriggerKindFailedCheckNew GitLabNoteAgenticWorkflowTriggerKind = "failed_check.new" GitLabNoteAgenticWorkflowTriggerKindGithubCheckRun GitLabNoteAgenticWorkflowTriggerKind = "github.check_run" GitLabNoteAgenticWorkflowTriggerKindGithubCheckSuite GitLabNoteAgenticWorkflowTriggerKind = "github.check_suite" GitLabNoteAgenticWorkflowTriggerKindGithubDeployment GitLabNoteAgenticWorkflowTriggerKind = "github.deployment" GitLabNoteAgenticWorkflowTriggerKindGithubDeploymentStatus GitLabNoteAgenticWorkflowTriggerKind = "github.deployment_status" GitLabNoteAgenticWorkflowTriggerKindGithubIssueComment GitLabNoteAgenticWorkflowTriggerKind = "github.issue_comment" GitLabNoteAgenticWorkflowTriggerKindGithubPullRequest GitLabNoteAgenticWorkflowTriggerKind = "github.pull_request" GitLabNoteAgenticWorkflowTriggerKindGithubPullRequestReview GitLabNoteAgenticWorkflowTriggerKind = "github.pull_request_review" GitLabNoteAgenticWorkflowTriggerKindGithubPullRequestReviewComment GitLabNoteAgenticWorkflowTriggerKind = "github.pull_request_review_comment" GitLabNoteAgenticWorkflowTriggerKindGithubPush GitLabNoteAgenticWorkflowTriggerKind = "github.push" GitLabNoteAgenticWorkflowTriggerKindGithubRelease GitLabNoteAgenticWorkflowTriggerKind = "github.release" GitLabNoteAgenticWorkflowTriggerKindGithubWorkflowDispatch GitLabNoteAgenticWorkflowTriggerKind = "github.workflow_dispatch" GitLabNoteAgenticWorkflowTriggerKindGithubWorkflowJob GitLabNoteAgenticWorkflowTriggerKind = "github.workflow_job" GitLabNoteAgenticWorkflowTriggerKindGithubWorkflowRun GitLabNoteAgenticWorkflowTriggerKind = "github.workflow_run" GitLabNoteAgenticWorkflowTriggerKindGitlabMergeRequest GitLabNoteAgenticWorkflowTriggerKind = "gitlab.merge_request" GitLabNoteAgenticWorkflowTriggerKindGitlabNote GitLabNoteAgenticWorkflowTriggerKind = "gitlab.note" GitLabNoteAgenticWorkflowTriggerKindLinearComment GitLabNoteAgenticWorkflowTriggerKind = "linear.comment" GitLabNoteAgenticWorkflowTriggerKindLinearCommentReaction GitLabNoteAgenticWorkflowTriggerKind = "linear.comment_reaction" GitLabNoteAgenticWorkflowTriggerKindLinearInitiative GitLabNoteAgenticWorkflowTriggerKind = "linear.initiative" GitLabNoteAgenticWorkflowTriggerKindLinearInitiativeUpdate GitLabNoteAgenticWorkflowTriggerKind = "linear.initiative_update" GitLabNoteAgenticWorkflowTriggerKindLinearIssue GitLabNoteAgenticWorkflowTriggerKind = "linear.issue" GitLabNoteAgenticWorkflowTriggerKindLinearIssueAttachment GitLabNoteAgenticWorkflowTriggerKind = "linear.issue_attachment" GitLabNoteAgenticWorkflowTriggerKindLinearIssueComment GitLabNoteAgenticWorkflowTriggerKind = "linear.issue_comment" GitLabNoteAgenticWorkflowTriggerKindLinearProject GitLabNoteAgenticWorkflowTriggerKind = "linear.project" GitLabNoteAgenticWorkflowTriggerKindLinearProjectUpdate GitLabNoteAgenticWorkflowTriggerKind = "linear.project_update" GitLabNoteAgenticWorkflowTriggerKindManual GitLabNoteAgenticWorkflowTriggerKind = "manual" GitLabNoteAgenticWorkflowTriggerKindSchedule GitLabNoteAgenticWorkflowTriggerKind = "schedule" GitLabNoteAgenticWorkflowTriggerKindSlackBotFailedCheckNew GitLabNoteAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" GitLabNoteAgenticWorkflowTriggerKindSlackBotMessage GitLabNoteAgenticWorkflowTriggerKind = "slack_bot.message" GitLabNoteAgenticWorkflowTriggerKindSlackBotReaction GitLabNoteAgenticWorkflowTriggerKind = "slack_bot.reaction" GitLabNoteAgenticWorkflowTriggerKindWebhook GitLabNoteAgenticWorkflowTriggerKind = "webhook" )
Defines values for GitLabNoteAgenticWorkflowTriggerKind.
func (GitLabNoteAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e GitLabNoteAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the GitLabNoteAgenticWorkflowTriggerKind enum.
type GitLabNoteAgenticWorkflowTriggerSpec ¶ added in v1.23.0
type GitLabNoteAgenticWorkflowTriggerSpec struct {
// Actions Optional list of merge request actions to filter on: `open`, `close`, `reopen`,
// `update`, `merge`, `approved`, `unapproved`.
//
// Only `gitlab.merge_request` uses this; a note carries no action, so the filter is
// skipped for `gitlab.note` rather than blocking every event.
Actions *[]string `json:"actions,omitempty"`
// AllGroups Explicitly match every group on the instance. Required to be set when no `groups` and
// no `projects` are given, so that a match-everything trigger is always a deliberate
// choice rather than an omission — mirroring `allOrganizations` on GitHub.
AllGroups *bool `json:"allGroups,omitempty"`
// AllProjects Explicitly match every project on the instance. See `allGroups`.
AllProjects *bool `json:"allProjects,omitempty"`
AvailableVariables *[]GitLabTriggerVariableName `json:"availableVariables,omitempty"`
// Groups Optional list of group full paths to filter on, e.g. `acme/backend`. A group covers every
// project beneath it at any depth, so `acme/backend` matches `acme/backend/api` and
// `acme/backend/tools/lint`, but not `acme/frontend/web` — nor `acme/backend-legacy/api`,
// which is a different group.
//
// A group given as a numeric id rather than a path matches nothing: ids and paths cannot be
// compared, and a filter that quietly matched everything would be worse than one that
// visibly matches nothing.
Groups *[]string `json:"groups,omitempty"`
// Instances Optional list of GitLab instance hosts to filter on, e.g. `gitlab.com`,
// `gitlab.acme.io`. Omit to match every instance the organization has connected.
//
// Only worth setting when an organization has more than one GitLab integration: a group or
// project path is unique within an instance but not across instances, so `acme/backend` on
// gitlab.com and on a self-managed host are different groups that a path filter alone
// cannot tell apart.
Instances *[]string `json:"instances,omitempty"`
// Keyword Optional. Fires only when the note contains this keyword as a whole, isolated word,
// case-insensitively — so a keyword of `review` is not matched by `review-agent`.
// Leading and trailing punctuation next to the keyword still matches.
//
// Absent or empty fires on every note, which on a busy project is a great many.
Keyword *string `json:"keyword,omitempty"`
// Projects Optional list of project full paths to filter on, e.g. `acme/backend/api`.
Projects *[]string `json:"projects,omitempty"`
}
GitLabNoteAgenticWorkflowTriggerSpec defines model for GitLabNoteAgenticWorkflowTriggerSpec.
type GitLabTriggerVariableName ¶ added in v1.23.0
type GitLabTriggerVariableName string
GitLabTriggerVariableName Variables provided by the GitLab triggers.
- `gitlab.instance`: Host of the GitLab instance the event came from (e.g. `gitlab.com`). Always present, and what makes the rest unambiguous — every other identifier below is unique only within one GitLab instance.
- `gitlab.project`: The project's full path, e.g. `acme/backend/api`.
- `gitlab.group`: The project's namespace — its full path without the project, e.g. `acme/backend`. Empty for a project directly under a user or a top-level group.
- `gitlab.user`: Username of the person whose action produced the event.
- `gitlab.action`: The merge request action (`open`, `close`, `reopen`, `update`, `merge`, `approved`, `unapproved`). Absent for `gitlab.note`, which carries no action.
- `gitlab.merge_request.iid`: The merge request's number within its project — the one people cite, not the instance-wide id. Present on `gitlab.merge_request`, and on `gitlab.note` only when the comment was left on a merge request.
- `gitlab.merge_request.title`, `gitlab.merge_request.url`: Present under the same condition as the IID.
- `gitlab.comment.body`: The comment's text. `gitlab.note` only.
- `gitlab.noteable_type`: What the comment was left on — `MergeRequest`, `Issue`, `Commit`, or `Snippet`. `gitlab.note` only.
const ( GitlabAction GitLabTriggerVariableName = "gitlab.action" GitlabCommentBody GitLabTriggerVariableName = "gitlab.comment.body" GitlabGroup GitLabTriggerVariableName = "gitlab.group" GitlabInstance GitLabTriggerVariableName = "gitlab.instance" GitlabMergeRequestIid GitLabTriggerVariableName = "gitlab.merge_request.iid" GitlabMergeRequestTitle GitLabTriggerVariableName = "gitlab.merge_request.title" GitlabMergeRequestUrl GitLabTriggerVariableName = "gitlab.merge_request.url" GitlabNoteableType GitLabTriggerVariableName = "gitlab.noteable_type" GitlabProject GitLabTriggerVariableName = "gitlab.project" GitlabUser GitLabTriggerVariableName = "gitlab.user" )
Defines values for GitLabTriggerVariableName.
func (GitLabTriggerVariableName) Valid ¶ added in v1.29.0
func (e GitLabTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the GitLabTriggerVariableName enum.
type GoogleChatWebhookConfig ¶ added in v1.9.0
type GoogleChatWebhookConfig struct {
Url string `json:"url"`
}
GoogleChatWebhookConfig defines model for GoogleChatWebhookConfig.
type Gradient ¶ added in v1.4.0
type Gradient struct {
// From The start color, as a CSS color. The Dash0 UI writes hex codes.
From string `json:"from"`
// To The end color, as a CSS color. The Dash0 UI writes hex codes.
To string `json:"to"`
}
Gradient A color gradient from one color to another.
type HttpBasicAuthentication ¶
type HttpBasicAuthentication struct {
Password string `json:"password"`
Username string `json:"username"`
}
HttpBasicAuthentication defines model for HttpBasicAuthentication.
type HttpCheckAssertion ¶
type HttpCheckAssertion struct {
// contains filtered or unexported fields
}
HttpCheckAssertion defines model for HttpCheckAssertion.
func (HttpCheckAssertion) AsErrorAssertion ¶
func (t HttpCheckAssertion) AsErrorAssertion() (ErrorAssertion, error)
AsErrorAssertion returns the union data inside the HttpCheckAssertion as a ErrorAssertion
func (HttpCheckAssertion) AsHttpResponseHeaderAssertion ¶
func (t HttpCheckAssertion) AsHttpResponseHeaderAssertion() (HttpResponseHeaderAssertion, error)
AsHttpResponseHeaderAssertion returns the union data inside the HttpCheckAssertion as a HttpResponseHeaderAssertion
func (HttpCheckAssertion) AsHttpResponseJsonBodyAssertion ¶
func (t HttpCheckAssertion) AsHttpResponseJsonBodyAssertion() (HttpResponseJsonBodyAssertion, error)
AsHttpResponseJsonBodyAssertion returns the union data inside the HttpCheckAssertion as a HttpResponseJsonBodyAssertion
func (HttpCheckAssertion) AsHttpResponseStatusCodeAssertion ¶
func (t HttpCheckAssertion) AsHttpResponseStatusCodeAssertion() (HttpResponseStatusCodeAssertion, error)
AsHttpResponseStatusCodeAssertion returns the union data inside the HttpCheckAssertion as a HttpResponseStatusCodeAssertion
func (HttpCheckAssertion) AsHttpResponseTextBodyAssertion ¶
func (t HttpCheckAssertion) AsHttpResponseTextBodyAssertion() (HttpResponseTextBodyAssertion, error)
AsHttpResponseTextBodyAssertion returns the union data inside the HttpCheckAssertion as a HttpResponseTextBodyAssertion
func (HttpCheckAssertion) AsSslCertificateAssertion ¶
func (t HttpCheckAssertion) AsSslCertificateAssertion() (SslCertificateAssertion, error)
AsSslCertificateAssertion returns the union data inside the HttpCheckAssertion as a SslCertificateAssertion
func (HttpCheckAssertion) AsTimingAssertion ¶
func (t HttpCheckAssertion) AsTimingAssertion() (TimingAssertion, error)
AsTimingAssertion returns the union data inside the HttpCheckAssertion as a TimingAssertion
func (*HttpCheckAssertion) FromErrorAssertion ¶
func (t *HttpCheckAssertion) FromErrorAssertion(v ErrorAssertion) error
FromErrorAssertion overwrites any union data inside the HttpCheckAssertion as the provided ErrorAssertion
func (*HttpCheckAssertion) FromHttpResponseHeaderAssertion ¶
func (t *HttpCheckAssertion) FromHttpResponseHeaderAssertion(v HttpResponseHeaderAssertion) error
FromHttpResponseHeaderAssertion overwrites any union data inside the HttpCheckAssertion as the provided HttpResponseHeaderAssertion
func (*HttpCheckAssertion) FromHttpResponseJsonBodyAssertion ¶
func (t *HttpCheckAssertion) FromHttpResponseJsonBodyAssertion(v HttpResponseJsonBodyAssertion) error
FromHttpResponseJsonBodyAssertion overwrites any union data inside the HttpCheckAssertion as the provided HttpResponseJsonBodyAssertion
func (*HttpCheckAssertion) FromHttpResponseStatusCodeAssertion ¶
func (t *HttpCheckAssertion) FromHttpResponseStatusCodeAssertion(v HttpResponseStatusCodeAssertion) error
FromHttpResponseStatusCodeAssertion overwrites any union data inside the HttpCheckAssertion as the provided HttpResponseStatusCodeAssertion
func (*HttpCheckAssertion) FromHttpResponseTextBodyAssertion ¶
func (t *HttpCheckAssertion) FromHttpResponseTextBodyAssertion(v HttpResponseTextBodyAssertion) error
FromHttpResponseTextBodyAssertion overwrites any union data inside the HttpCheckAssertion as the provided HttpResponseTextBodyAssertion
func (*HttpCheckAssertion) FromSslCertificateAssertion ¶
func (t *HttpCheckAssertion) FromSslCertificateAssertion(v SslCertificateAssertion) error
FromSslCertificateAssertion overwrites any union data inside the HttpCheckAssertion as the provided SslCertificateAssertion
func (*HttpCheckAssertion) FromTimingAssertion ¶
func (t *HttpCheckAssertion) FromTimingAssertion(v TimingAssertion) error
FromTimingAssertion overwrites any union data inside the HttpCheckAssertion as the provided TimingAssertion
func (HttpCheckAssertion) MarshalJSON ¶
func (t HttpCheckAssertion) MarshalJSON() ([]byte, error)
func (*HttpCheckAssertion) MergeErrorAssertion ¶
func (t *HttpCheckAssertion) MergeErrorAssertion(v ErrorAssertion) error
MergeErrorAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided ErrorAssertion
func (*HttpCheckAssertion) MergeHttpResponseHeaderAssertion ¶
func (t *HttpCheckAssertion) MergeHttpResponseHeaderAssertion(v HttpResponseHeaderAssertion) error
MergeHttpResponseHeaderAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided HttpResponseHeaderAssertion
func (*HttpCheckAssertion) MergeHttpResponseJsonBodyAssertion ¶
func (t *HttpCheckAssertion) MergeHttpResponseJsonBodyAssertion(v HttpResponseJsonBodyAssertion) error
MergeHttpResponseJsonBodyAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided HttpResponseJsonBodyAssertion
func (*HttpCheckAssertion) MergeHttpResponseStatusCodeAssertion ¶
func (t *HttpCheckAssertion) MergeHttpResponseStatusCodeAssertion(v HttpResponseStatusCodeAssertion) error
MergeHttpResponseStatusCodeAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided HttpResponseStatusCodeAssertion
func (*HttpCheckAssertion) MergeHttpResponseTextBodyAssertion ¶
func (t *HttpCheckAssertion) MergeHttpResponseTextBodyAssertion(v HttpResponseTextBodyAssertion) error
MergeHttpResponseTextBodyAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided HttpResponseTextBodyAssertion
func (*HttpCheckAssertion) MergeSslCertificateAssertion ¶
func (t *HttpCheckAssertion) MergeSslCertificateAssertion(v SslCertificateAssertion) error
MergeSslCertificateAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided SslCertificateAssertion
func (*HttpCheckAssertion) MergeTimingAssertion ¶
func (t *HttpCheckAssertion) MergeTimingAssertion(v TimingAssertion) error
MergeTimingAssertion performs a merge with any union data inside the HttpCheckAssertion, using the provided TimingAssertion
func (*HttpCheckAssertion) UnmarshalJSON ¶
func (t *HttpCheckAssertion) UnmarshalJSON(b []byte) error
type HttpCheckAssertions ¶
type HttpCheckAssertions = []HttpCheckAssertion
HttpCheckAssertions defines model for HttpCheckAssertions.
type HttpQueryParameters ¶
type HttpQueryParameters = []NameValuePair
HttpQueryParameters defines model for HttpQueryParameters.
type HttpRedirects ¶
type HttpRedirects string
HttpRedirects defines model for HttpRedirects.
const ( HttpRedirectsDisabled HttpRedirects = "disabled" HttpRedirectsFollow HttpRedirects = "follow" )
Defines values for HttpRedirects.
func (HttpRedirects) Valid ¶ added in v1.29.0
func (e HttpRedirects) Valid() bool
Valid indicates whether the value is a known member of the HttpRedirects enum.
type HttpRequestBody ¶
type HttpRequestBody struct {
Kind HttpRequestBodyKind `json:"kind"`
Spec struct {
Content string `json:"content"`
} `json:"spec"`
}
HttpRequestBody defines model for HttpRequestBody.
type HttpRequestBodyKind ¶
type HttpRequestBodyKind string
HttpRequestBodyKind defines model for HttpRequestBodyKind.
const ( Form HttpRequestBodyKind = "form" Graphql HttpRequestBodyKind = "graphql" Json HttpRequestBodyKind = "json" Raw HttpRequestBodyKind = "raw" )
Defines values for HttpRequestBodyKind.
func (HttpRequestBodyKind) Valid ¶ added in v1.29.0
func (e HttpRequestBodyKind) Valid() bool
Valid indicates whether the value is a known member of the HttpRequestBodyKind enum.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HttpRequestMethod ¶
type HttpRequestMethod string
HttpRequestMethod defines model for HttpRequestMethod.
const ( Delete HttpRequestMethod = "delete" Get HttpRequestMethod = "get" Head HttpRequestMethod = "head" Patch HttpRequestMethod = "patch" Post HttpRequestMethod = "post" Put HttpRequestMethod = "put" )
Defines values for HttpRequestMethod.
func (HttpRequestMethod) Valid ¶ added in v1.29.0
func (e HttpRequestMethod) Valid() bool
Valid indicates whether the value is a known member of the HttpRequestMethod enum.
type HttpRequestSpec ¶
type HttpRequestSpec struct {
BasicAuthentication *HttpBasicAuthentication `json:"basicAuthentication,omitempty"`
Body *HttpRequestBody `json:"body,omitempty"`
Headers *HttpHeaders `json:"headers,omitempty"`
Method HttpRequestMethod `json:"method"`
QueryParameters *HttpQueryParameters `json:"queryParameters,omitempty"`
Redirects HttpRedirects `json:"redirects"`
Tls TlsSettings `json:"tls"`
Tracing TracingSettings `json:"tracing"`
Url string `json:"url"`
}
HttpRequestSpec defines model for HttpRequestSpec.
type HttpResponseHeaderAssertion ¶
type HttpResponseHeaderAssertion struct {
Kind HttpResponseHeaderAssertionKind `json:"kind"`
Spec HttpResponseHeaderAssertionSpec `json:"spec"`
}
HttpResponseHeaderAssertion defines model for HttpResponseHeaderAssertion.
type HttpResponseHeaderAssertionKind ¶
type HttpResponseHeaderAssertionKind string
HttpResponseHeaderAssertionKind defines model for HttpResponseHeaderAssertion.Kind.
const (
ResponseHeader HttpResponseHeaderAssertionKind = "response_header"
)
Defines values for HttpResponseHeaderAssertionKind.
func (HttpResponseHeaderAssertionKind) Valid ¶ added in v1.29.0
func (e HttpResponseHeaderAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the HttpResponseHeaderAssertionKind enum.
type HttpResponseHeaderAssertionSpec ¶
type HttpResponseHeaderAssertionSpec struct {
Key string `json:"key"`
Operator StringAssertionOperator `json:"operator"`
Value string `json:"value"`
}
HttpResponseHeaderAssertionSpec defines model for HttpResponseHeaderAssertionSpec.
type HttpResponseJsonBodyAssertion ¶
type HttpResponseJsonBodyAssertion struct {
Kind HttpResponseJsonBodyAssertionKind `json:"kind"`
Spec HttpResponseJsonBodyAssertionSpec `json:"spec"`
}
HttpResponseJsonBodyAssertion defines model for HttpResponseJsonBodyAssertion.
type HttpResponseJsonBodyAssertionKind ¶
type HttpResponseJsonBodyAssertionKind string
HttpResponseJsonBodyAssertionKind defines model for HttpResponseJsonBodyAssertion.Kind.
const (
JsonBody HttpResponseJsonBodyAssertionKind = "json_body"
)
Defines values for HttpResponseJsonBodyAssertionKind.
func (HttpResponseJsonBodyAssertionKind) Valid ¶ added in v1.29.0
func (e HttpResponseJsonBodyAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the HttpResponseJsonBodyAssertionKind enum.
type HttpResponseJsonBodyAssertionSpec ¶
type HttpResponseJsonBodyAssertionSpec struct {
JsonPath string `json:"jsonPath"`
Operator StringAssertionOperator `json:"operator"`
Value string `json:"value"`
}
HttpResponseJsonBodyAssertionSpec defines model for HttpResponseJsonBodyAssertionSpec.
type HttpResponseStatusCodeAssertion ¶
type HttpResponseStatusCodeAssertion struct {
Kind HttpResponseStatusCodeAssertionKind `json:"kind"`
Spec HttpResponseStatusCodeAssertionSpec `json:"spec"`
}
HttpResponseStatusCodeAssertion defines model for HttpResponseStatusCodeAssertion.
type HttpResponseStatusCodeAssertionKind ¶
type HttpResponseStatusCodeAssertionKind string
HttpResponseStatusCodeAssertionKind defines model for HttpResponseStatusCodeAssertion.Kind.
const (
StatusCode HttpResponseStatusCodeAssertionKind = "status_code"
)
Defines values for HttpResponseStatusCodeAssertionKind.
func (HttpResponseStatusCodeAssertionKind) Valid ¶ added in v1.29.0
func (e HttpResponseStatusCodeAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the HttpResponseStatusCodeAssertionKind enum.
type HttpResponseStatusCodeAssertionSpec ¶
type HttpResponseStatusCodeAssertionSpec struct {
Operator NumericAssertionOperator `json:"operator"`
Value string `json:"value"`
}
HttpResponseStatusCodeAssertionSpec defines model for HttpResponseStatusCodeAssertionSpec.
type HttpResponseTextBodyAssertion ¶
type HttpResponseTextBodyAssertion struct {
Kind HttpResponseTextBodyAssertionKind `json:"kind"`
Spec HttpResponseTextBodyAssertionSpec `json:"spec"`
}
HttpResponseTextBodyAssertion defines model for HttpResponseTextBodyAssertion.
type HttpResponseTextBodyAssertionKind ¶
type HttpResponseTextBodyAssertionKind string
HttpResponseTextBodyAssertionKind defines model for HttpResponseTextBodyAssertion.Kind.
const (
TextBody HttpResponseTextBodyAssertionKind = "text_body"
)
Defines values for HttpResponseTextBodyAssertionKind.
func (HttpResponseTextBodyAssertionKind) Valid ¶ added in v1.29.0
func (e HttpResponseTextBodyAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the HttpResponseTextBodyAssertionKind enum.
type HttpResponseTextBodyAssertionSpec ¶
type HttpResponseTextBodyAssertionSpec struct {
Operator StringAssertionOperator `json:"operator"`
Value string `json:"value"`
}
HttpResponseTextBodyAssertionSpec defines model for HttpResponseTextBodyAssertionSpec.
type IlertConfig ¶ added in v1.9.0
type IlertConfig struct {
Url string `json:"url"`
}
IlertConfig defines model for IlertConfig.
type IncidentIOConfig ¶ added in v1.9.0
IncidentIOConfig defines model for IncidentIOConfig.
type InstrumentationScope ¶
type InstrumentationScope struct {
// Attributes Additional attributes that describe the scope. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
Attributes []KeyValue `json:"attributes"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
// Name An empty instrumentation scope name means the name is unknown.
Name *string `json:"name,omitempty"`
Version *string `json:"version,omitempty"`
}
InstrumentationScope InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.
type InviteMemberRequest ¶ added in v1.4.0
type InviteMemberRequest struct {
// EmailAddress The address the invitation is sent to. An address that the organization's sign-up
// restrictions do not permit is rejected with `403`, and an address that already belongs
// to the organization, or already has a pending invitation, with `409`.
EmailAddress string `json:"emailAddress"`
// Role The role the invited member receives. The built-in roles are `admin` and
// `basic_member`; an organization with custom roles configured may use those instead.
// An unknown role is rejected with `400`.
Role string `json:"role"`
}
InviteMemberRequest defines model for InviteMemberRequest.
type IpAddressStorageStrategy ¶ added in v1.12.3
type IpAddressStorageStrategy string
IpAddressStorageStrategy How end-user IP addresses are stored. Clients must accept values they do not recognize.
const ( IpAddressStorageStrategyAnonymize IpAddressStorageStrategy = "anonymize" IpAddressStorageStrategyDoNotStore IpAddressStorageStrategy = "do_not_store" )
Defines values for IpAddressStorageStrategy.
func (IpAddressStorageStrategy) Valid ¶ added in v1.29.0
func (e IpAddressStorageStrategy) Valid() bool
Valid indicates whether the value is a known member of the IpAddressStorageStrategy enum.
type IpAddressesSettings ¶ added in v1.12.3
type IpAddressesSettings struct {
// EndUserIpAddressStorageStrategy When we derive IP addresses from X-FORWARDED-FOR/X-REAL-IP HTTP headers, we will apply these rules.
EndUserIpAddressStorageStrategy IpAddressStorageStrategy `json:"endUserIpAddressStorageStrategy"`
}
IpAddressesSettings defines model for IpAddressesSettings.
type Issue ¶ added in v1.16.0
type Issue struct {
// Id is the server-assigned identifier of this issue instance.
Id string `json:"id"`
// CheckRule is the check rule that raised this issue.
CheckRule IssueCheckRule `json:"checkRule"`
// InstanceStatus is the current lifecycle status of the issue.
InstanceStatus IssueInstanceStatus `json:"instanceStatus"`
// Summary is the rendered summary for this issue.
Summary string `json:"summary"`
// Description is the rendered description for this issue.
Description string `json:"description"`
// Start is the time the issue was first raised, as an RFC 3339 timestamp.
Start string `json:"start"`
// End is the time the issue was resolved, as an RFC 3339 timestamp.
// The zero value `1970-01-01T00:00:00Z` indicates that the issue is still active.
End string `json:"end"`
// Labels are the rendered label set attached to the issue.
Labels []KeyValue `json:"labels"`
// EarliestEvaluatedTime is the earliest time the check rule was evaluated against this issue.
EarliestEvaluatedTime string `json:"earliestEvaluatedTime,omitempty"`
// IssueIdentifier is the deduplication identifier of the issue.
IssueIdentifier string `json:"issueIdentifier,omitempty"`
// AffectedResourceSummaries describes resources affected by the issue.
AffectedResourceSummaries []map[string]any `json:"affectedResourceSummaries,omitempty"`
// Annotations are the rendered annotations attached to the issue.
Annotations []map[string]any `json:"annotations,omitempty"`
}
Issue represents an active or historical failed-check instance raised by a check rule.
type IssueCheckRule ¶ added in v1.16.0
type IssueCheckRule struct {
Id string `json:"id"`
Name string `json:"name"`
Version int `json:"version"`
Modes []string `json:"modes,omitempty"`
SummaryTemplate string `json:"summaryTemplate,omitempty"`
DescriptionTemplate string `json:"descriptionTemplate,omitempty"`
}
IssueCheckRule is the subset of check-rule fields returned alongside each failed-check instance.
type IssueInstanceStatus ¶ added in v1.16.0
type IssueInstanceStatus string
IssueInstanceStatus is the lifecycle status of a failed-check instance.
const ( // IssueInstanceStatusCritical indicates the issue is currently breaching its alerting threshold. IssueInstanceStatusCritical IssueInstanceStatus = "critical" // IssueInstanceStatusDegraded indicates the issue is currently breaching a degraded threshold. IssueInstanceStatusDegraded IssueInstanceStatus = "degraded" // IssueInstanceStatusHealthy indicates the issue has recovered and is no longer breaching any threshold. IssueInstanceStatusHealthy IssueInstanceStatus = "healthy" // IssueInstanceStatusInactive indicates the issue has been resolved. IssueInstanceStatusInactive IssueInstanceStatus = "inactive" // IssueInstanceStatusPending indicates the issue has been raised but not yet evaluated against its `for` duration. IssueInstanceStatusPending IssueInstanceStatus = "pending" )
type Iter ¶
type Iter[T any] struct { // contains filtered or unexported fields }
Iter provides iteration over paginated API results. Use Next() to advance, Current() to get the item, and Err() to check for errors.
Example:
iter := client.GetSpansIter(ctx, request)
for iter.Next() {
span := iter.Current()
// process span
}
if err := iter.Err(); err != nil {
// handle error
}
Iterators are not thread-safe. Do not share an iterator across goroutines.
func (*Iter[T]) Current ¶
func (it *Iter[T]) Current() *T
Current returns the current item in the iteration. Returns nil if Next() has not been called or returned false.
type KeyValue ¶
type KeyValue struct {
Key string `json:"key"`
// Value AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.
Value AnyValue `json:"value"`
}
KeyValue KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.
type KeyValueList ¶ added in v1.29.0
type KeyValueList struct {
// Values A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
Values []KeyValue `json:"values"`
}
KeyValueList KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.
type LinearAuthorFilters ¶ added in v1.29.0
type LinearAuthorFilters struct {
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
}
LinearAuthorFilters defines model for LinearAuthorFilters.
type LinearCommentAgenticWorkflowTrigger ¶ added in v1.17.0
type LinearCommentAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the Linear
// issue (`linear.issue`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind LinearCommentAgenticWorkflowTriggerKind `json:"kind"`
Spec LinearCommentAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearCommentAgenticWorkflowTrigger defines model for LinearCommentAgenticWorkflowTrigger.
type LinearCommentAgenticWorkflowTriggerKind ¶ added in v1.17.0
type LinearCommentAgenticWorkflowTriggerKind string
LinearCommentAgenticWorkflowTriggerKind defines model for LinearCommentAgenticWorkflowTrigger.Kind.
const ( LinearCommentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearCommentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearCommentAgenticWorkflowTriggerKindFailedCheckNew LinearCommentAgenticWorkflowTriggerKind = "failed_check.new" LinearCommentAgenticWorkflowTriggerKindGithubCheckRun LinearCommentAgenticWorkflowTriggerKind = "github.check_run" LinearCommentAgenticWorkflowTriggerKindGithubCheckSuite LinearCommentAgenticWorkflowTriggerKind = "github.check_suite" LinearCommentAgenticWorkflowTriggerKindGithubDeployment LinearCommentAgenticWorkflowTriggerKind = "github.deployment" LinearCommentAgenticWorkflowTriggerKindGithubDeploymentStatus LinearCommentAgenticWorkflowTriggerKind = "github.deployment_status" LinearCommentAgenticWorkflowTriggerKindGithubIssueComment LinearCommentAgenticWorkflowTriggerKind = "github.issue_comment" LinearCommentAgenticWorkflowTriggerKindGithubPullRequest LinearCommentAgenticWorkflowTriggerKind = "github.pull_request" LinearCommentAgenticWorkflowTriggerKindGithubPullRequestReview LinearCommentAgenticWorkflowTriggerKind = "github.pull_request_review" LinearCommentAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearCommentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearCommentAgenticWorkflowTriggerKindGithubPush LinearCommentAgenticWorkflowTriggerKind = "github.push" LinearCommentAgenticWorkflowTriggerKindGithubRelease LinearCommentAgenticWorkflowTriggerKind = "github.release" LinearCommentAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearCommentAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearCommentAgenticWorkflowTriggerKindGithubWorkflowJob LinearCommentAgenticWorkflowTriggerKind = "github.workflow_job" LinearCommentAgenticWorkflowTriggerKindGithubWorkflowRun LinearCommentAgenticWorkflowTriggerKind = "github.workflow_run" LinearCommentAgenticWorkflowTriggerKindGitlabMergeRequest LinearCommentAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearCommentAgenticWorkflowTriggerKindGitlabNote LinearCommentAgenticWorkflowTriggerKind = "gitlab.note" LinearCommentAgenticWorkflowTriggerKindLinearComment LinearCommentAgenticWorkflowTriggerKind = "linear.comment" LinearCommentAgenticWorkflowTriggerKindLinearCommentReaction LinearCommentAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearCommentAgenticWorkflowTriggerKindLinearInitiative LinearCommentAgenticWorkflowTriggerKind = "linear.initiative" LinearCommentAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearCommentAgenticWorkflowTriggerKind = "linear.initiative_update" LinearCommentAgenticWorkflowTriggerKindLinearIssue LinearCommentAgenticWorkflowTriggerKind = "linear.issue" LinearCommentAgenticWorkflowTriggerKindLinearIssueAttachment LinearCommentAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearCommentAgenticWorkflowTriggerKindLinearIssueComment LinearCommentAgenticWorkflowTriggerKind = "linear.issue_comment" LinearCommentAgenticWorkflowTriggerKindLinearProject LinearCommentAgenticWorkflowTriggerKind = "linear.project" LinearCommentAgenticWorkflowTriggerKindLinearProjectUpdate LinearCommentAgenticWorkflowTriggerKind = "linear.project_update" LinearCommentAgenticWorkflowTriggerKindManual LinearCommentAgenticWorkflowTriggerKind = "manual" LinearCommentAgenticWorkflowTriggerKindSchedule LinearCommentAgenticWorkflowTriggerKind = "schedule" LinearCommentAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearCommentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearCommentAgenticWorkflowTriggerKindSlackBotMessage LinearCommentAgenticWorkflowTriggerKind = "slack_bot.message" LinearCommentAgenticWorkflowTriggerKindSlackBotReaction LinearCommentAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearCommentAgenticWorkflowTriggerKindWebhook LinearCommentAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearCommentAgenticWorkflowTriggerKind.
func (LinearCommentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearCommentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearCommentAgenticWorkflowTriggerKind enum.
type LinearCommentAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type LinearCommentAgenticWorkflowTriggerSpec struct {
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearCommentTriggerVariableName `json:"availableVariables,omitempty"`
// Keyword A command or keyword that the Linear comment must contain. Evaluated as a
// case-insensitive whole-word match (e.g., `investigate` matches any comment
// containing "investigate"). The trigger fires only when the Dash0 agent is
// @mentioned or delegated on the issue and the comment contains this keyword;
// mentions without the keyword fall through to the normal Agent0 chat reply. Mutually
// exclusive with `keywordRegex`.
Keyword *string `json:"keyword,omitempty"`
// KeywordRegex Optional RE2 regular expression matched against the complete comment body.
// Mutually exclusive with `keyword`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
KeywordRegex *string `json:"keywordRegex,omitempty"`
}
LinearCommentAgenticWorkflowTriggerSpec defines model for LinearCommentAgenticWorkflowTriggerSpec.
type LinearCommentReactionAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearCommentReactionAgenticWorkflowTrigger struct {
Kind LinearCommentReactionAgenticWorkflowTriggerKind `json:"kind"`
// Spec The sender is whoever added or removed the reaction; the author is the author of the
// comment that was reacted to. Linear sends no `update` for a reaction, so `actions` may
// only hold `create` and `remove`.
Spec LinearCommentReactionAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearCommentReactionAgenticWorkflowTrigger defines model for LinearCommentReactionAgenticWorkflowTrigger.
type LinearCommentReactionAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearCommentReactionAgenticWorkflowTriggerKind string
LinearCommentReactionAgenticWorkflowTriggerKind defines model for LinearCommentReactionAgenticWorkflowTrigger.Kind.
const ( LinearCommentReactionAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearCommentReactionAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearCommentReactionAgenticWorkflowTriggerKindFailedCheckNew LinearCommentReactionAgenticWorkflowTriggerKind = "failed_check.new" LinearCommentReactionAgenticWorkflowTriggerKindGithubCheckRun LinearCommentReactionAgenticWorkflowTriggerKind = "github.check_run" LinearCommentReactionAgenticWorkflowTriggerKindGithubCheckSuite LinearCommentReactionAgenticWorkflowTriggerKind = "github.check_suite" LinearCommentReactionAgenticWorkflowTriggerKindGithubDeployment LinearCommentReactionAgenticWorkflowTriggerKind = "github.deployment" LinearCommentReactionAgenticWorkflowTriggerKindGithubDeploymentStatus LinearCommentReactionAgenticWorkflowTriggerKind = "github.deployment_status" LinearCommentReactionAgenticWorkflowTriggerKindGithubIssueComment LinearCommentReactionAgenticWorkflowTriggerKind = "github.issue_comment" LinearCommentReactionAgenticWorkflowTriggerKindGithubPullRequest LinearCommentReactionAgenticWorkflowTriggerKind = "github.pull_request" LinearCommentReactionAgenticWorkflowTriggerKindGithubPullRequestReview LinearCommentReactionAgenticWorkflowTriggerKind = "github.pull_request_review" LinearCommentReactionAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearCommentReactionAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearCommentReactionAgenticWorkflowTriggerKindGithubPush LinearCommentReactionAgenticWorkflowTriggerKind = "github.push" LinearCommentReactionAgenticWorkflowTriggerKindGithubRelease LinearCommentReactionAgenticWorkflowTriggerKind = "github.release" LinearCommentReactionAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearCommentReactionAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearCommentReactionAgenticWorkflowTriggerKindGithubWorkflowJob LinearCommentReactionAgenticWorkflowTriggerKind = "github.workflow_job" LinearCommentReactionAgenticWorkflowTriggerKindGithubWorkflowRun LinearCommentReactionAgenticWorkflowTriggerKind = "github.workflow_run" LinearCommentReactionAgenticWorkflowTriggerKindGitlabMergeRequest LinearCommentReactionAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearCommentReactionAgenticWorkflowTriggerKindGitlabNote LinearCommentReactionAgenticWorkflowTriggerKind = "gitlab.note" LinearCommentReactionAgenticWorkflowTriggerKindLinearComment LinearCommentReactionAgenticWorkflowTriggerKind = "linear.comment" LinearCommentReactionAgenticWorkflowTriggerKindLinearCommentReaction LinearCommentReactionAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearCommentReactionAgenticWorkflowTriggerKindLinearInitiative LinearCommentReactionAgenticWorkflowTriggerKind = "linear.initiative" LinearCommentReactionAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearCommentReactionAgenticWorkflowTriggerKind = "linear.initiative_update" LinearCommentReactionAgenticWorkflowTriggerKindLinearIssue LinearCommentReactionAgenticWorkflowTriggerKind = "linear.issue" LinearCommentReactionAgenticWorkflowTriggerKindLinearIssueAttachment LinearCommentReactionAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearCommentReactionAgenticWorkflowTriggerKindLinearIssueComment LinearCommentReactionAgenticWorkflowTriggerKind = "linear.issue_comment" LinearCommentReactionAgenticWorkflowTriggerKindLinearProject LinearCommentReactionAgenticWorkflowTriggerKind = "linear.project" LinearCommentReactionAgenticWorkflowTriggerKindLinearProjectUpdate LinearCommentReactionAgenticWorkflowTriggerKind = "linear.project_update" LinearCommentReactionAgenticWorkflowTriggerKindManual LinearCommentReactionAgenticWorkflowTriggerKind = "manual" LinearCommentReactionAgenticWorkflowTriggerKindSchedule LinearCommentReactionAgenticWorkflowTriggerKind = "schedule" LinearCommentReactionAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearCommentReactionAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearCommentReactionAgenticWorkflowTriggerKindSlackBotMessage LinearCommentReactionAgenticWorkflowTriggerKind = "slack_bot.message" LinearCommentReactionAgenticWorkflowTriggerKindSlackBotReaction LinearCommentReactionAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearCommentReactionAgenticWorkflowTriggerKindWebhook LinearCommentReactionAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearCommentReactionAgenticWorkflowTriggerKind.
func (LinearCommentReactionAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearCommentReactionAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearCommentReactionAgenticWorkflowTriggerKind enum.
type LinearCommentReactionAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearCommentReactionAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AllTeams When true, the automation deliberately matches issues in every team of the connected
// Linear workspace, now and in the future. Mutually exclusive with a non-empty `teamIds`
// list. This flag distinguishes an explicit "all teams" choice from an unconfigured
// trigger, mirroring `allOrganizations` on GitHub triggers.
AllTeams *bool `json:"allTeams,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearCommentReactionTriggerVariableName `json:"availableVariables,omitempty"`
// Emojis Optional list of emoji names to fire on, as Linear reports them (e.g. `eyes`,
// `+1`), without surrounding colons. When absent or empty, every reaction fires the
// trigger.
Emojis *[]string `json:"emojis,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
// TeamIds List of Linear team UUIDs to scope the trigger to. When non-empty, the trigger fires
// only for issues whose team ID is in this list. Mutually exclusive with `allTeams`; a
// request that sets both, or that leaves both `teamIds` and `allTeams` empty/unset, is
// rejected on write as an accidental match-everything catch-all. Only issue-scoped
// Linear trigger kinds carry this scope. `linear.project` has its own optional `teamIds`
// filter, where an empty list matches every team; initiatives have no team filter.
TeamIds *[]string `json:"teamIds,omitempty"`
}
LinearCommentReactionAgenticWorkflowTriggerSpec The sender is whoever added or removed the reaction; the author is the author of the comment that was reacted to. Linear sends no `update` for a reaction, so `actions` may only hold `create` and `remove`.
type LinearCommentReactionTriggerVariableName ¶ added in v1.29.0
type LinearCommentReactionTriggerVariableName string
LinearCommentReactionTriggerVariableName Variables provided by the `linear.comment_reaction` trigger.
- `linear.action`: The webhook action: `create` or `remove`. - `linear.actor.name`: Display name of the user who reacted, when known. - `linear.issue.id`: The Linear issue identifier (e.g., `ENG-123`). - `linear.issue.uuid`: The Linear issue UUID. - `linear.issue.title`: Title of the Linear issue. - `linear.issue.url`: URL of the Linear issue. - `linear.issue.team_id`: UUID of the Linear team that owns the issue. - `linear.issue.team_key`: Short key of the Linear team (e.g., `ENG`). - `linear.issue.team_name`: Display name of the Linear team. - `linear.comment.id`: UUID of the comment that was reacted to. - `linear.comment.body`: Markdown body of that comment; empty when it exceeds 10,000 characters. - `linear.reaction.emoji`: Name of the emoji, without colons (e.g., `eyes`).
const ( LinearCommentReactionTriggerVariableNameLinearAction LinearCommentReactionTriggerVariableName = "linear.action" LinearCommentReactionTriggerVariableNameLinearActorName LinearCommentReactionTriggerVariableName = "linear.actor.name" LinearCommentReactionTriggerVariableNameLinearCommentBody LinearCommentReactionTriggerVariableName = "linear.comment.body" LinearCommentReactionTriggerVariableNameLinearCommentId LinearCommentReactionTriggerVariableName = "linear.comment.id" LinearCommentReactionTriggerVariableNameLinearIssueId LinearCommentReactionTriggerVariableName = "linear.issue.id" LinearCommentReactionTriggerVariableNameLinearIssueTeamId LinearCommentReactionTriggerVariableName = "linear.issue.team_id" LinearCommentReactionTriggerVariableNameLinearIssueTeamKey LinearCommentReactionTriggerVariableName = "linear.issue.team_key" LinearCommentReactionTriggerVariableNameLinearIssueTeamName LinearCommentReactionTriggerVariableName = "linear.issue.team_name" LinearCommentReactionTriggerVariableNameLinearIssueTitle LinearCommentReactionTriggerVariableName = "linear.issue.title" LinearCommentReactionTriggerVariableNameLinearIssueUrl LinearCommentReactionTriggerVariableName = "linear.issue.url" LinearCommentReactionTriggerVariableNameLinearIssueUuid LinearCommentReactionTriggerVariableName = "linear.issue.uuid" LinearCommentReactionTriggerVariableNameLinearReactionEmoji LinearCommentReactionTriggerVariableName = "linear.reaction.emoji" )
Defines values for LinearCommentReactionTriggerVariableName.
func (LinearCommentReactionTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearCommentReactionTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearCommentReactionTriggerVariableName enum.
type LinearCommentTriggerVariableName ¶ added in v1.17.0
type LinearCommentTriggerVariableName string
LinearCommentTriggerVariableName Variables provided by the `linear.comment` trigger.
- `linear.issue.id`: The Linear issue identifier (e.g., `ENG-123`). - `linear.issue.title`: Title of the Linear issue. - `linear.issue.url`: URL of the Linear issue. - `linear.comment.body`: Body text of the comment that triggered the automation. - `linear.comment.user`: Display name of the user who left the comment.
const ( LinearCommentTriggerVariableNameLinearCommentBody LinearCommentTriggerVariableName = "linear.comment.body" LinearCommentTriggerVariableNameLinearCommentUser LinearCommentTriggerVariableName = "linear.comment.user" LinearCommentTriggerVariableNameLinearIssueId LinearCommentTriggerVariableName = "linear.issue.id" LinearCommentTriggerVariableNameLinearIssueTitle LinearCommentTriggerVariableName = "linear.issue.title" LinearCommentTriggerVariableNameLinearIssueUrl LinearCommentTriggerVariableName = "linear.issue.url" )
Defines values for LinearCommentTriggerVariableName.
func (LinearCommentTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearCommentTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearCommentTriggerVariableName enum.
type LinearDataEventAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearDataEventAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearDataEventAgenticWorkflowTriggerSpec Shared filters for Linear trigger kinds that fire on Linear's data-change webhooks (`create`, `update`, `remove`). Kinds scoped to an issue add `LinearTeamScope`.
type LinearEntityAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearEntityAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// NameRegex Optional RE2 regular expression matched against the complete name of the project or
// initiative. For a project or initiative update, it matches the name of the project
// or initiative the update was posted to. Matching is case-sensitive unless the
// pattern includes a flag such as `(?i)`.
NameRegex *string `json:"nameRegex,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearEntityAgenticWorkflowTriggerSpec Filters shared by the Linear project, project update, initiative, and initiative update triggers. All configured filters must match.
type LinearInitiativeAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearInitiativeAgenticWorkflowTrigger struct {
Kind LinearInitiativeAgenticWorkflowTriggerKind `json:"kind"`
Spec LinearInitiativeAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearInitiativeAgenticWorkflowTrigger defines model for LinearInitiativeAgenticWorkflowTrigger.
type LinearInitiativeAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearInitiativeAgenticWorkflowTriggerKind string
LinearInitiativeAgenticWorkflowTriggerKind defines model for LinearInitiativeAgenticWorkflowTrigger.Kind.
const ( LinearInitiativeAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearInitiativeAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearInitiativeAgenticWorkflowTriggerKindFailedCheckNew LinearInitiativeAgenticWorkflowTriggerKind = "failed_check.new" LinearInitiativeAgenticWorkflowTriggerKindGithubCheckRun LinearInitiativeAgenticWorkflowTriggerKind = "github.check_run" LinearInitiativeAgenticWorkflowTriggerKindGithubCheckSuite LinearInitiativeAgenticWorkflowTriggerKind = "github.check_suite" LinearInitiativeAgenticWorkflowTriggerKindGithubDeployment LinearInitiativeAgenticWorkflowTriggerKind = "github.deployment" LinearInitiativeAgenticWorkflowTriggerKindGithubDeploymentStatus LinearInitiativeAgenticWorkflowTriggerKind = "github.deployment_status" LinearInitiativeAgenticWorkflowTriggerKindGithubIssueComment LinearInitiativeAgenticWorkflowTriggerKind = "github.issue_comment" LinearInitiativeAgenticWorkflowTriggerKindGithubPullRequest LinearInitiativeAgenticWorkflowTriggerKind = "github.pull_request" LinearInitiativeAgenticWorkflowTriggerKindGithubPullRequestReview LinearInitiativeAgenticWorkflowTriggerKind = "github.pull_request_review" LinearInitiativeAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearInitiativeAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearInitiativeAgenticWorkflowTriggerKindGithubPush LinearInitiativeAgenticWorkflowTriggerKind = "github.push" LinearInitiativeAgenticWorkflowTriggerKindGithubRelease LinearInitiativeAgenticWorkflowTriggerKind = "github.release" LinearInitiativeAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearInitiativeAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearInitiativeAgenticWorkflowTriggerKindGithubWorkflowJob LinearInitiativeAgenticWorkflowTriggerKind = "github.workflow_job" LinearInitiativeAgenticWorkflowTriggerKindGithubWorkflowRun LinearInitiativeAgenticWorkflowTriggerKind = "github.workflow_run" LinearInitiativeAgenticWorkflowTriggerKindGitlabMergeRequest LinearInitiativeAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearInitiativeAgenticWorkflowTriggerKindGitlabNote LinearInitiativeAgenticWorkflowTriggerKind = "gitlab.note" LinearInitiativeAgenticWorkflowTriggerKindLinearComment LinearInitiativeAgenticWorkflowTriggerKind = "linear.comment" LinearInitiativeAgenticWorkflowTriggerKindLinearCommentReaction LinearInitiativeAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearInitiativeAgenticWorkflowTriggerKindLinearInitiative LinearInitiativeAgenticWorkflowTriggerKind = "linear.initiative" LinearInitiativeAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearInitiativeAgenticWorkflowTriggerKind = "linear.initiative_update" LinearInitiativeAgenticWorkflowTriggerKindLinearIssue LinearInitiativeAgenticWorkflowTriggerKind = "linear.issue" LinearInitiativeAgenticWorkflowTriggerKindLinearIssueAttachment LinearInitiativeAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearInitiativeAgenticWorkflowTriggerKindLinearIssueComment LinearInitiativeAgenticWorkflowTriggerKind = "linear.issue_comment" LinearInitiativeAgenticWorkflowTriggerKindLinearProject LinearInitiativeAgenticWorkflowTriggerKind = "linear.project" LinearInitiativeAgenticWorkflowTriggerKindLinearProjectUpdate LinearInitiativeAgenticWorkflowTriggerKind = "linear.project_update" LinearInitiativeAgenticWorkflowTriggerKindManual LinearInitiativeAgenticWorkflowTriggerKind = "manual" LinearInitiativeAgenticWorkflowTriggerKindSchedule LinearInitiativeAgenticWorkflowTriggerKind = "schedule" LinearInitiativeAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearInitiativeAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearInitiativeAgenticWorkflowTriggerKindSlackBotMessage LinearInitiativeAgenticWorkflowTriggerKind = "slack_bot.message" LinearInitiativeAgenticWorkflowTriggerKindSlackBotReaction LinearInitiativeAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearInitiativeAgenticWorkflowTriggerKindWebhook LinearInitiativeAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearInitiativeAgenticWorkflowTriggerKind.
func (LinearInitiativeAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearInitiativeAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearInitiativeAgenticWorkflowTriggerKind enum.
type LinearInitiativeAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearInitiativeAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearInitiativeTriggerVariableName `json:"availableVariables,omitempty"`
// NameRegex Optional RE2 regular expression matched against the complete name of the project or
// initiative. For a project or initiative update, it matches the name of the project
// or initiative the update was posted to. Matching is case-sensitive unless the
// pattern includes a flag such as `(?i)`.
NameRegex *string `json:"nameRegex,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearInitiativeAgenticWorkflowTriggerSpec defines model for LinearInitiativeAgenticWorkflowTriggerSpec.
type LinearInitiativeTriggerVariableName ¶ added in v1.29.0
type LinearInitiativeTriggerVariableName string
LinearInitiativeTriggerVariableName Variables provided by the `linear.initiative` trigger. Fields Linear omits from the event are omitted.
- `linear.action`: The Linear webhook action: `create`, `update`, or `remove`. - `linear.initiative.id`: UUID of the Linear initiative. - `linear.initiative.name`: Name of the Linear initiative. - `linear.initiative.url`: URL of the Linear initiative. - `linear.initiative.description`: Description of the Linear initiative. - `linear.initiative.status`: Status of the initiative (`Planned`, `Active`, or `Completed`). - `linear.initiative.health`: Health of the initiative (`onTrack`, `atRisk`, or `offTrack`), when set. - `linear.actor.name`: Display name of the user who made the change, when known.
const ( LinearInitiativeTriggerVariableNameLinearAction LinearInitiativeTriggerVariableName = "linear.action" LinearInitiativeTriggerVariableNameLinearActorName LinearInitiativeTriggerVariableName = "linear.actor.name" LinearInitiativeTriggerVariableNameLinearInitiativeDescription LinearInitiativeTriggerVariableName = "linear.initiative.description" LinearInitiativeTriggerVariableNameLinearInitiativeHealth LinearInitiativeTriggerVariableName = "linear.initiative.health" LinearInitiativeTriggerVariableNameLinearInitiativeId LinearInitiativeTriggerVariableName = "linear.initiative.id" LinearInitiativeTriggerVariableNameLinearInitiativeName LinearInitiativeTriggerVariableName = "linear.initiative.name" LinearInitiativeTriggerVariableNameLinearInitiativeStatus LinearInitiativeTriggerVariableName = "linear.initiative.status" LinearInitiativeTriggerVariableNameLinearInitiativeUrl LinearInitiativeTriggerVariableName = "linear.initiative.url" )
Defines values for LinearInitiativeTriggerVariableName.
func (LinearInitiativeTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearInitiativeTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearInitiativeTriggerVariableName enum.
type LinearInitiativeUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearInitiativeUpdateAgenticWorkflowTrigger struct {
Kind LinearInitiativeUpdateAgenticWorkflowTriggerKind `json:"kind"`
Spec LinearInitiativeUpdateAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearInitiativeUpdateAgenticWorkflowTrigger defines model for LinearInitiativeUpdateAgenticWorkflowTrigger.
type LinearInitiativeUpdateAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearInitiativeUpdateAgenticWorkflowTriggerKind string
LinearInitiativeUpdateAgenticWorkflowTriggerKind defines model for LinearInitiativeUpdateAgenticWorkflowTrigger.Kind.
const ( LinearInitiativeUpdateAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearInitiativeUpdateAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearInitiativeUpdateAgenticWorkflowTriggerKindFailedCheckNew LinearInitiativeUpdateAgenticWorkflowTriggerKind = "failed_check.new" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubCheckRun LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.check_run" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubCheckSuite LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.check_suite" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubDeployment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.deployment" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubDeploymentStatus LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.deployment_status" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubIssueComment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.issue_comment" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubPullRequest LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.pull_request" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubPullRequestReview LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.pull_request_review" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubPush LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.push" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubRelease LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.release" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubWorkflowJob LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.workflow_job" LinearInitiativeUpdateAgenticWorkflowTriggerKindGithubWorkflowRun LinearInitiativeUpdateAgenticWorkflowTriggerKind = "github.workflow_run" LinearInitiativeUpdateAgenticWorkflowTriggerKindGitlabMergeRequest LinearInitiativeUpdateAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearInitiativeUpdateAgenticWorkflowTriggerKindGitlabNote LinearInitiativeUpdateAgenticWorkflowTriggerKind = "gitlab.note" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearComment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.comment" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearCommentReaction LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearInitiative LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.initiative" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.initiative_update" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearIssue LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.issue" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearIssueAttachment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearIssueComment LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.issue_comment" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearProject LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.project" LinearInitiativeUpdateAgenticWorkflowTriggerKindLinearProjectUpdate LinearInitiativeUpdateAgenticWorkflowTriggerKind = "linear.project_update" LinearInitiativeUpdateAgenticWorkflowTriggerKindManual LinearInitiativeUpdateAgenticWorkflowTriggerKind = "manual" LinearInitiativeUpdateAgenticWorkflowTriggerKindSchedule LinearInitiativeUpdateAgenticWorkflowTriggerKind = "schedule" LinearInitiativeUpdateAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearInitiativeUpdateAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearInitiativeUpdateAgenticWorkflowTriggerKindSlackBotMessage LinearInitiativeUpdateAgenticWorkflowTriggerKind = "slack_bot.message" LinearInitiativeUpdateAgenticWorkflowTriggerKindSlackBotReaction LinearInitiativeUpdateAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearInitiativeUpdateAgenticWorkflowTriggerKindWebhook LinearInitiativeUpdateAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearInitiativeUpdateAgenticWorkflowTriggerKind.
func (LinearInitiativeUpdateAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearInitiativeUpdateAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearInitiativeUpdateAgenticWorkflowTriggerKind enum.
type LinearInitiativeUpdateAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearInitiativeUpdateAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearInitiativeUpdateTriggerVariableName `json:"availableVariables,omitempty"`
// InitiativeIds Optional list of Linear initiative UUIDs. When non-empty, the trigger fires only
// when the update was posted to one of these initiatives. When omitted or empty,
// updates of every initiative match.
InitiativeIds *[]string `json:"initiativeIds,omitempty"`
// NameRegex Optional RE2 regular expression matched against the complete name of the project or
// initiative. For a project or initiative update, it matches the name of the project
// or initiative the update was posted to. Matching is case-sensitive unless the
// pattern includes a flag such as `(?i)`.
NameRegex *string `json:"nameRegex,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearInitiativeUpdateAgenticWorkflowTriggerSpec defines model for LinearInitiativeUpdateAgenticWorkflowTriggerSpec.
type LinearInitiativeUpdateTriggerVariableName ¶ added in v1.29.0
type LinearInitiativeUpdateTriggerVariableName string
LinearInitiativeUpdateTriggerVariableName Variables provided by the `linear.initiative_update` trigger. Fields Linear omits from the event are omitted.
- `linear.action`: The Linear webhook action: `create`, `update`, or `remove`. - `linear.initiative_update.id`: UUID of the initiative update. - `linear.initiative_update.body`: Markdown body of the initiative update. - `linear.initiative_update.url`: URL of the initiative update. - `linear.initiative_update.health`: Health reported by the update (`onTrack`, `atRisk`, or `offTrack`). - `linear.initiative.id`: UUID of the initiative the update was posted to. - `linear.initiative.name`: Name of the initiative the update was posted to. - `linear.initiative.url`: URL of the initiative the update was posted to. - `linear.actor.name`: Display name of the user who made the change, when known.
const ( LinearInitiativeUpdateTriggerVariableNameLinearAction LinearInitiativeUpdateTriggerVariableName = "linear.action" LinearInitiativeUpdateTriggerVariableNameLinearActorName LinearInitiativeUpdateTriggerVariableName = "linear.actor.name" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeId LinearInitiativeUpdateTriggerVariableName = "linear.initiative.id" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeName LinearInitiativeUpdateTriggerVariableName = "linear.initiative.name" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeUpdateBody LinearInitiativeUpdateTriggerVariableName = "linear.initiative_update.body" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeUpdateHealth LinearInitiativeUpdateTriggerVariableName = "linear.initiative_update.health" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeUpdateId LinearInitiativeUpdateTriggerVariableName = "linear.initiative_update.id" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeUpdateUrl LinearInitiativeUpdateTriggerVariableName = "linear.initiative_update.url" LinearInitiativeUpdateTriggerVariableNameLinearInitiativeUrl LinearInitiativeUpdateTriggerVariableName = "linear.initiative.url" )
Defines values for LinearInitiativeUpdateTriggerVariableName.
func (LinearInitiativeUpdateTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearInitiativeUpdateTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearInitiativeUpdateTriggerVariableName enum.
type LinearIssueAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearIssueAgenticWorkflowTrigger struct {
Kind LinearIssueAgenticWorkflowTriggerKind `json:"kind"`
// Spec The sender is whoever created, changed or removed the issue; the author is the issue's
// creator. An issue an integration created has no author, so it never matches an author
// filter.
Spec LinearIssueAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearIssueAgenticWorkflowTrigger defines model for LinearIssueAgenticWorkflowTrigger.
type LinearIssueAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearIssueAgenticWorkflowTriggerKind string
LinearIssueAgenticWorkflowTriggerKind defines model for LinearIssueAgenticWorkflowTrigger.Kind.
const ( LinearIssueAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearIssueAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearIssueAgenticWorkflowTriggerKindFailedCheckNew LinearIssueAgenticWorkflowTriggerKind = "failed_check.new" LinearIssueAgenticWorkflowTriggerKindGithubCheckRun LinearIssueAgenticWorkflowTriggerKind = "github.check_run" LinearIssueAgenticWorkflowTriggerKindGithubCheckSuite LinearIssueAgenticWorkflowTriggerKind = "github.check_suite" LinearIssueAgenticWorkflowTriggerKindGithubDeployment LinearIssueAgenticWorkflowTriggerKind = "github.deployment" LinearIssueAgenticWorkflowTriggerKindGithubDeploymentStatus LinearIssueAgenticWorkflowTriggerKind = "github.deployment_status" LinearIssueAgenticWorkflowTriggerKindGithubIssueComment LinearIssueAgenticWorkflowTriggerKind = "github.issue_comment" LinearIssueAgenticWorkflowTriggerKindGithubPullRequest LinearIssueAgenticWorkflowTriggerKind = "github.pull_request" LinearIssueAgenticWorkflowTriggerKindGithubPullRequestReview LinearIssueAgenticWorkflowTriggerKind = "github.pull_request_review" LinearIssueAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearIssueAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearIssueAgenticWorkflowTriggerKindGithubPush LinearIssueAgenticWorkflowTriggerKind = "github.push" LinearIssueAgenticWorkflowTriggerKindGithubRelease LinearIssueAgenticWorkflowTriggerKind = "github.release" LinearIssueAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearIssueAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearIssueAgenticWorkflowTriggerKindGithubWorkflowJob LinearIssueAgenticWorkflowTriggerKind = "github.workflow_job" LinearIssueAgenticWorkflowTriggerKindGithubWorkflowRun LinearIssueAgenticWorkflowTriggerKind = "github.workflow_run" LinearIssueAgenticWorkflowTriggerKindGitlabMergeRequest LinearIssueAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearIssueAgenticWorkflowTriggerKindGitlabNote LinearIssueAgenticWorkflowTriggerKind = "gitlab.note" LinearIssueAgenticWorkflowTriggerKindLinearComment LinearIssueAgenticWorkflowTriggerKind = "linear.comment" LinearIssueAgenticWorkflowTriggerKindLinearCommentReaction LinearIssueAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearIssueAgenticWorkflowTriggerKindLinearInitiative LinearIssueAgenticWorkflowTriggerKind = "linear.initiative" LinearIssueAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearIssueAgenticWorkflowTriggerKind = "linear.initiative_update" LinearIssueAgenticWorkflowTriggerKindLinearIssue LinearIssueAgenticWorkflowTriggerKind = "linear.issue" LinearIssueAgenticWorkflowTriggerKindLinearIssueAttachment LinearIssueAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearIssueAgenticWorkflowTriggerKindLinearIssueComment LinearIssueAgenticWorkflowTriggerKind = "linear.issue_comment" LinearIssueAgenticWorkflowTriggerKindLinearProject LinearIssueAgenticWorkflowTriggerKind = "linear.project" LinearIssueAgenticWorkflowTriggerKindLinearProjectUpdate LinearIssueAgenticWorkflowTriggerKind = "linear.project_update" LinearIssueAgenticWorkflowTriggerKindManual LinearIssueAgenticWorkflowTriggerKind = "manual" LinearIssueAgenticWorkflowTriggerKindSchedule LinearIssueAgenticWorkflowTriggerKind = "schedule" LinearIssueAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearIssueAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearIssueAgenticWorkflowTriggerKindSlackBotMessage LinearIssueAgenticWorkflowTriggerKind = "slack_bot.message" LinearIssueAgenticWorkflowTriggerKindSlackBotReaction LinearIssueAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearIssueAgenticWorkflowTriggerKindWebhook LinearIssueAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearIssueAgenticWorkflowTriggerKind.
func (LinearIssueAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearIssueAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueAgenticWorkflowTriggerKind enum.
type LinearIssueAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearIssueAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AddedLabelIds Optional list of Linear label UUIDs. When non-empty, the trigger fires only when
// the event added at least one of these labels: a `create` whose issue carries it,
// or an `update` where it is on the issue but was not in the issue's previous
// labels. When `removedLabelIds` is also set, either condition fires the trigger.
// Combined with every other filter, including `labelIds`, as AND.
AddedLabelIds *[]string `json:"addedLabelIds,omitempty"`
// AllTeams When true, the automation deliberately matches issues in every team of the connected
// Linear workspace, now and in the future. Mutually exclusive with a non-empty `teamIds`
// list. This flag distinguishes an explicit "all teams" choice from an unconfigured
// trigger, mirroring `allOrganizations` on GitHub triggers.
AllTeams *bool `json:"allTeams,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearIssueTriggerVariableName `json:"availableVariables,omitempty"`
// LabelIds Optional list of Linear label UUIDs. When non-empty, the trigger fires only when
// the issue carries at least one of these labels at the time of the event. To react
// to a label being added or removed, use `addedLabelIds` or `removedLabelIds`.
LabelIds *[]string `json:"labelIds,omitempty"`
// ProjectIds Optional list of Linear project UUIDs. When non-empty, the trigger fires only when
// the issue's project is one of them. An issue without a project never matches a
// non-empty list. When omitted or empty, issues match whatever their project.
// Combined with every other filter as AND.
ProjectIds *[]string `json:"projectIds,omitempty"`
// RemovedLabelIds Optional list of Linear label UUIDs. When non-empty, the trigger fires only when
// an `update` removed at least one of these labels: it was in the issue's previous
// labels and is no longer on the issue. When `addedLabelIds` is also set, either
// condition fires the trigger. Combined with every other filter, including
// `labelIds`, as AND.
RemovedLabelIds *[]string `json:"removedLabelIds,omitempty"`
// RemovedLabelNames Optional names of the labels in `removedLabelIds`, in the same order, stored for UI
// display and exposed to prompts as `linear.issue.removed_label_names` for the
// removed labels that matched. Does not participate in matching. Linear's payload
// names no removed label, so a prompt gets a name only when the trigger stores one.
// Clients that know the names at write time should send them.
RemovedLabelNames *[]string `json:"removedLabelNames,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
// TeamIds List of Linear team UUIDs to scope the trigger to. When non-empty, the trigger fires
// only for issues whose team ID is in this list. Mutually exclusive with `allTeams`; a
// request that sets both, or that leaves both `teamIds` and `allTeams` empty/unset, is
// rejected on write as an accidental match-everything catch-all. Only issue-scoped
// Linear trigger kinds carry this scope. `linear.project` has its own optional `teamIds`
// filter, where an empty list matches every team; initiatives have no team filter.
TeamIds *[]string `json:"teamIds,omitempty"`
// TitleRegex Optional RE2 regular expression matched against the complete issue title at the
// time of the event. Matching is case-sensitive unless the pattern includes a flag
// such as `(?i)`.
TitleRegex *string `json:"titleRegex,omitempty"`
}
LinearIssueAgenticWorkflowTriggerSpec The sender is whoever created, changed or removed the issue; the author is the issue's creator. An issue an integration created has no author, so it never matches an author filter.
type LinearIssueAttachmentAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearIssueAttachmentAgenticWorkflowTrigger struct {
Kind LinearIssueAttachmentAgenticWorkflowTriggerKind `json:"kind"`
// Spec The sender is whoever added, changed or removed the attachment; the author is the
// attachment's creator. An attachment an integration created has no author, so it never
// matches an author filter.
Spec LinearIssueAttachmentAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearIssueAttachmentAgenticWorkflowTrigger defines model for LinearIssueAttachmentAgenticWorkflowTrigger.
type LinearIssueAttachmentAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearIssueAttachmentAgenticWorkflowTriggerKind string
LinearIssueAttachmentAgenticWorkflowTriggerKind defines model for LinearIssueAttachmentAgenticWorkflowTrigger.Kind.
const ( LinearIssueAttachmentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearIssueAttachmentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearIssueAttachmentAgenticWorkflowTriggerKindFailedCheckNew LinearIssueAttachmentAgenticWorkflowTriggerKind = "failed_check.new" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubCheckRun LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.check_run" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubCheckSuite LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.check_suite" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubDeployment LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.deployment" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubDeploymentStatus LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.deployment_status" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubIssueComment LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.issue_comment" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubPullRequest LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.pull_request" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubPullRequestReview LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.pull_request_review" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubPush LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.push" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubRelease LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.release" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubWorkflowJob LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.workflow_job" LinearIssueAttachmentAgenticWorkflowTriggerKindGithubWorkflowRun LinearIssueAttachmentAgenticWorkflowTriggerKind = "github.workflow_run" LinearIssueAttachmentAgenticWorkflowTriggerKindGitlabMergeRequest LinearIssueAttachmentAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearIssueAttachmentAgenticWorkflowTriggerKindGitlabNote LinearIssueAttachmentAgenticWorkflowTriggerKind = "gitlab.note" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearComment LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.comment" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearCommentReaction LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearInitiative LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.initiative" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.initiative_update" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearIssue LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.issue" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearIssueAttachment LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearIssueComment LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.issue_comment" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearProject LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.project" LinearIssueAttachmentAgenticWorkflowTriggerKindLinearProjectUpdate LinearIssueAttachmentAgenticWorkflowTriggerKind = "linear.project_update" LinearIssueAttachmentAgenticWorkflowTriggerKindManual LinearIssueAttachmentAgenticWorkflowTriggerKind = "manual" LinearIssueAttachmentAgenticWorkflowTriggerKindSchedule LinearIssueAttachmentAgenticWorkflowTriggerKind = "schedule" LinearIssueAttachmentAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearIssueAttachmentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearIssueAttachmentAgenticWorkflowTriggerKindSlackBotMessage LinearIssueAttachmentAgenticWorkflowTriggerKind = "slack_bot.message" LinearIssueAttachmentAgenticWorkflowTriggerKindSlackBotReaction LinearIssueAttachmentAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearIssueAttachmentAgenticWorkflowTriggerKindWebhook LinearIssueAttachmentAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearIssueAttachmentAgenticWorkflowTriggerKind.
func (LinearIssueAttachmentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearIssueAttachmentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueAttachmentAgenticWorkflowTriggerKind enum.
type LinearIssueAttachmentAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearIssueAttachmentAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AllTeams When true, the automation deliberately matches issues in every team of the connected
// Linear workspace, now and in the future. Mutually exclusive with a non-empty `teamIds`
// list. This flag distinguishes an explicit "all teams" choice from an unconfigured
// trigger, mirroring `allOrganizations` on GitHub triggers.
AllTeams *bool `json:"allTeams,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearIssueAttachmentTriggerVariableName `json:"availableVariables,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
// SourceTypes Optional list of Linear attachment source types to fire on, e.g. `github`,
// `sentry`, `slack`, `zendesk`. Matched case-insensitively. When absent or empty,
// every attachment fires the trigger.
SourceTypes *[]string `json:"sourceTypes,omitempty"`
// TeamIds List of Linear team UUIDs to scope the trigger to. When non-empty, the trigger fires
// only for issues whose team ID is in this list. Mutually exclusive with `allTeams`; a
// request that sets both, or that leaves both `teamIds` and `allTeams` empty/unset, is
// rejected on write as an accidental match-everything catch-all. Only issue-scoped
// Linear trigger kinds carry this scope. `linear.project` has its own optional `teamIds`
// filter, where an empty list matches every team; initiatives have no team filter.
TeamIds *[]string `json:"teamIds,omitempty"`
}
LinearIssueAttachmentAgenticWorkflowTriggerSpec The sender is whoever added, changed or removed the attachment; the author is the attachment's creator. An attachment an integration created has no author, so it never matches an author filter.
type LinearIssueAttachmentTriggerVariableName ¶ added in v1.29.0
type LinearIssueAttachmentTriggerVariableName string
LinearIssueAttachmentTriggerVariableName Variables provided by the `linear.issue_attachment` trigger.
- `linear.action`: The webhook action: `create`, `update`, or `remove`. - `linear.actor.name`: Display name of the user or app that caused the event, when known. - `linear.issue.id`: The Linear issue identifier (e.g., `ENG-123`). - `linear.issue.uuid`: The Linear issue UUID. - `linear.issue.title`: Title of the Linear issue. - `linear.issue.url`: URL of the Linear issue. - `linear.issue.team_id`: UUID of the Linear team that owns the issue. - `linear.issue.team_key`: Short key of the Linear team (e.g., `ENG`). - `linear.issue.team_name`: Display name of the Linear team. - `linear.attachment.id`: UUID of the attachment. - `linear.attachment.title`: Title of the attachment. - `linear.attachment.subtitle`: Subtitle of the attachment, when it has one. - `linear.attachment.url`: URL the attachment links to. - `linear.attachment.source_type`: Source the attachment came from (e.g., `github`, `sentry`), when known.
const ( LinearIssueAttachmentTriggerVariableNameLinearAction LinearIssueAttachmentTriggerVariableName = "linear.action" LinearIssueAttachmentTriggerVariableNameLinearActorName LinearIssueAttachmentTriggerVariableName = "linear.actor.name" LinearIssueAttachmentTriggerVariableNameLinearAttachmentId LinearIssueAttachmentTriggerVariableName = "linear.attachment.id" LinearIssueAttachmentTriggerVariableNameLinearAttachmentSourceType LinearIssueAttachmentTriggerVariableName = "linear.attachment.source_type" LinearIssueAttachmentTriggerVariableNameLinearAttachmentSubtitle LinearIssueAttachmentTriggerVariableName = "linear.attachment.subtitle" LinearIssueAttachmentTriggerVariableNameLinearAttachmentTitle LinearIssueAttachmentTriggerVariableName = "linear.attachment.title" LinearIssueAttachmentTriggerVariableNameLinearAttachmentUrl LinearIssueAttachmentTriggerVariableName = "linear.attachment.url" LinearIssueAttachmentTriggerVariableNameLinearIssueId LinearIssueAttachmentTriggerVariableName = "linear.issue.id" LinearIssueAttachmentTriggerVariableNameLinearIssueTeamId LinearIssueAttachmentTriggerVariableName = "linear.issue.team_id" LinearIssueAttachmentTriggerVariableNameLinearIssueTeamKey LinearIssueAttachmentTriggerVariableName = "linear.issue.team_key" LinearIssueAttachmentTriggerVariableNameLinearIssueTeamName LinearIssueAttachmentTriggerVariableName = "linear.issue.team_name" LinearIssueAttachmentTriggerVariableNameLinearIssueTitle LinearIssueAttachmentTriggerVariableName = "linear.issue.title" LinearIssueAttachmentTriggerVariableNameLinearIssueUrl LinearIssueAttachmentTriggerVariableName = "linear.issue.url" LinearIssueAttachmentTriggerVariableNameLinearIssueUuid LinearIssueAttachmentTriggerVariableName = "linear.issue.uuid" )
Defines values for LinearIssueAttachmentTriggerVariableName.
func (LinearIssueAttachmentTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearIssueAttachmentTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueAttachmentTriggerVariableName enum.
type LinearIssueCommentAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearIssueCommentAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the Linear
// issue (`linear.issue`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind LinearIssueCommentAgenticWorkflowTriggerKind `json:"kind"`
// Spec Fires on comments on Linear issues, whether or not they mention Dash0. Unlike
// `linear.comment`, which only fires when the Dash0 agent is @mentioned, this follows
// `github.issue_comment`: an action filter, an optional keyword, and a team scope. Its
// actions are the `Comment` webhook's own `create | update | remove`.
Spec LinearIssueCommentAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearIssueCommentAgenticWorkflowTrigger defines model for LinearIssueCommentAgenticWorkflowTrigger.
type LinearIssueCommentAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearIssueCommentAgenticWorkflowTriggerKind string
LinearIssueCommentAgenticWorkflowTriggerKind defines model for LinearIssueCommentAgenticWorkflowTrigger.Kind.
const ( LinearIssueCommentAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearIssueCommentAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearIssueCommentAgenticWorkflowTriggerKindFailedCheckNew LinearIssueCommentAgenticWorkflowTriggerKind = "failed_check.new" LinearIssueCommentAgenticWorkflowTriggerKindGithubCheckRun LinearIssueCommentAgenticWorkflowTriggerKind = "github.check_run" LinearIssueCommentAgenticWorkflowTriggerKindGithubCheckSuite LinearIssueCommentAgenticWorkflowTriggerKind = "github.check_suite" LinearIssueCommentAgenticWorkflowTriggerKindGithubDeployment LinearIssueCommentAgenticWorkflowTriggerKind = "github.deployment" LinearIssueCommentAgenticWorkflowTriggerKindGithubDeploymentStatus LinearIssueCommentAgenticWorkflowTriggerKind = "github.deployment_status" LinearIssueCommentAgenticWorkflowTriggerKindGithubIssueComment LinearIssueCommentAgenticWorkflowTriggerKind = "github.issue_comment" LinearIssueCommentAgenticWorkflowTriggerKindGithubPullRequest LinearIssueCommentAgenticWorkflowTriggerKind = "github.pull_request" LinearIssueCommentAgenticWorkflowTriggerKindGithubPullRequestReview LinearIssueCommentAgenticWorkflowTriggerKind = "github.pull_request_review" LinearIssueCommentAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearIssueCommentAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearIssueCommentAgenticWorkflowTriggerKindGithubPush LinearIssueCommentAgenticWorkflowTriggerKind = "github.push" LinearIssueCommentAgenticWorkflowTriggerKindGithubRelease LinearIssueCommentAgenticWorkflowTriggerKind = "github.release" LinearIssueCommentAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearIssueCommentAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearIssueCommentAgenticWorkflowTriggerKindGithubWorkflowJob LinearIssueCommentAgenticWorkflowTriggerKind = "github.workflow_job" LinearIssueCommentAgenticWorkflowTriggerKindGithubWorkflowRun LinearIssueCommentAgenticWorkflowTriggerKind = "github.workflow_run" LinearIssueCommentAgenticWorkflowTriggerKindGitlabMergeRequest LinearIssueCommentAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearIssueCommentAgenticWorkflowTriggerKindGitlabNote LinearIssueCommentAgenticWorkflowTriggerKind = "gitlab.note" LinearIssueCommentAgenticWorkflowTriggerKindLinearComment LinearIssueCommentAgenticWorkflowTriggerKind = "linear.comment" LinearIssueCommentAgenticWorkflowTriggerKindLinearCommentReaction LinearIssueCommentAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearIssueCommentAgenticWorkflowTriggerKindLinearInitiative LinearIssueCommentAgenticWorkflowTriggerKind = "linear.initiative" LinearIssueCommentAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearIssueCommentAgenticWorkflowTriggerKind = "linear.initiative_update" LinearIssueCommentAgenticWorkflowTriggerKindLinearIssue LinearIssueCommentAgenticWorkflowTriggerKind = "linear.issue" LinearIssueCommentAgenticWorkflowTriggerKindLinearIssueAttachment LinearIssueCommentAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearIssueCommentAgenticWorkflowTriggerKindLinearIssueComment LinearIssueCommentAgenticWorkflowTriggerKind = "linear.issue_comment" LinearIssueCommentAgenticWorkflowTriggerKindLinearProject LinearIssueCommentAgenticWorkflowTriggerKind = "linear.project" LinearIssueCommentAgenticWorkflowTriggerKindLinearProjectUpdate LinearIssueCommentAgenticWorkflowTriggerKind = "linear.project_update" LinearIssueCommentAgenticWorkflowTriggerKindManual LinearIssueCommentAgenticWorkflowTriggerKind = "manual" LinearIssueCommentAgenticWorkflowTriggerKindSchedule LinearIssueCommentAgenticWorkflowTriggerKind = "schedule" LinearIssueCommentAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearIssueCommentAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearIssueCommentAgenticWorkflowTriggerKindSlackBotMessage LinearIssueCommentAgenticWorkflowTriggerKind = "slack_bot.message" LinearIssueCommentAgenticWorkflowTriggerKindSlackBotReaction LinearIssueCommentAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearIssueCommentAgenticWorkflowTriggerKindWebhook LinearIssueCommentAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearIssueCommentAgenticWorkflowTriggerKind.
func (LinearIssueCommentAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearIssueCommentAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueCommentAgenticWorkflowTriggerKind enum.
type LinearIssueCommentAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearIssueCommentAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AllTeams When true, the automation deliberately matches issues in every team of the connected
// Linear workspace, now and in the future. Mutually exclusive with a non-empty `teamIds`
// list. This flag distinguishes an explicit "all teams" choice from an unconfigured
// trigger, mirroring `allOrganizations` on GitHub triggers.
AllTeams *bool `json:"allTeams,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearIssueCommentTriggerVariableName `json:"availableVariables,omitempty"`
// Keyword Optional whole-word keyword the comment body must contain. Matching is
// case-insensitive. When absent or empty, any comment fires the automation. Mutually
// exclusive with `keywordRegex`.
Keyword *string `json:"keyword,omitempty"`
// KeywordRegex Optional RE2 regular expression matched against the complete comment body.
// Mutually exclusive with `keyword`. Matching is case-sensitive unless the pattern
// includes a flag such as `(?i)`.
KeywordRegex *string `json:"keywordRegex,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
// TeamIds List of Linear team UUIDs to scope the trigger to. When non-empty, the trigger fires
// only for issues whose team ID is in this list. Mutually exclusive with `allTeams`; a
// request that sets both, or that leaves both `teamIds` and `allTeams` empty/unset, is
// rejected on write as an accidental match-everything catch-all. Only issue-scoped
// Linear trigger kinds carry this scope. `linear.project` has its own optional `teamIds`
// filter, where an empty list matches every team; initiatives have no team filter.
TeamIds *[]string `json:"teamIds,omitempty"`
}
LinearIssueCommentAgenticWorkflowTriggerSpec Fires on comments on Linear issues, whether or not they mention Dash0. Unlike `linear.comment`, which only fires when the Dash0 agent is @mentioned, this follows `github.issue_comment`: an action filter, an optional keyword, and a team scope. Its actions are the `Comment` webhook's own `create | update | remove`.
type LinearIssueCommentTriggerVariableName ¶ added in v1.29.0
type LinearIssueCommentTriggerVariableName string
LinearIssueCommentTriggerVariableName Variables provided by the `linear.issue_comment` trigger.
- `linear.issue.id`: The Linear issue identifier (e.g., `ENG-123`). - `linear.issue.title`: Title of the Linear issue. - `linear.issue.url`: URL of the Linear issue. - `linear.issue.team_id`: UUID of the Linear team that owns the issue. - `linear.issue.team_key`: Short key of the Linear team (e.g., `ENG`). - `linear.issue.team_name`: Display name of the Linear team. - `linear.comment.id`: UUID of the comment. - `linear.comment.body`: Body text of the comment. - `linear.comment.url`: URL of the comment. - `linear.comment.user`: Display name of the user who wrote the comment. - `linear.actor.name`: Display name of the user who created, updated, or removed the comment, when known. - `linear.action`: What happened to the comment: `create`, `update`, or `remove`.
const ( LinearIssueCommentTriggerVariableNameLinearAction LinearIssueCommentTriggerVariableName = "linear.action" LinearIssueCommentTriggerVariableNameLinearActorName LinearIssueCommentTriggerVariableName = "linear.actor.name" LinearIssueCommentTriggerVariableNameLinearCommentBody LinearIssueCommentTriggerVariableName = "linear.comment.body" LinearIssueCommentTriggerVariableNameLinearCommentId LinearIssueCommentTriggerVariableName = "linear.comment.id" LinearIssueCommentTriggerVariableNameLinearCommentUrl LinearIssueCommentTriggerVariableName = "linear.comment.url" LinearIssueCommentTriggerVariableNameLinearCommentUser LinearIssueCommentTriggerVariableName = "linear.comment.user" LinearIssueCommentTriggerVariableNameLinearIssueId LinearIssueCommentTriggerVariableName = "linear.issue.id" LinearIssueCommentTriggerVariableNameLinearIssueTeamId LinearIssueCommentTriggerVariableName = "linear.issue.team_id" LinearIssueCommentTriggerVariableNameLinearIssueTeamKey LinearIssueCommentTriggerVariableName = "linear.issue.team_key" LinearIssueCommentTriggerVariableNameLinearIssueTeamName LinearIssueCommentTriggerVariableName = "linear.issue.team_name" LinearIssueCommentTriggerVariableNameLinearIssueTitle LinearIssueCommentTriggerVariableName = "linear.issue.title" LinearIssueCommentTriggerVariableNameLinearIssueUrl LinearIssueCommentTriggerVariableName = "linear.issue.url" )
Defines values for LinearIssueCommentTriggerVariableName.
func (LinearIssueCommentTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearIssueCommentTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueCommentTriggerVariableName enum.
type LinearIssueTriggerVariableName ¶ added in v1.29.0
type LinearIssueTriggerVariableName string
LinearIssueTriggerVariableName Variables provided by the `linear.issue` trigger.
- `linear.action`: The webhook action: `create`, `update`, or `remove`. - `linear.actor.name`: Display name of the user or app that caused the event, when known. - `linear.issue.id`: The Linear issue identifier (e.g., `ENG-123`). - `linear.issue.uuid`: The Linear issue UUID. - `linear.issue.title`: Title of the Linear issue. - `linear.issue.description`: Markdown description of the Linear issue; empty when it has none. - `linear.issue.url`: URL of the Linear issue. - `linear.issue.priority`: Priority label of the issue (e.g., `Urgent`, `No priority`). - `linear.issue.state`: Name of the issue's workflow state (e.g., `Triage`, `Todo`). - `linear.issue.label_ids`: Comma-separated UUIDs of the labels on the issue. - `linear.issue.label_names`: Comma-separated names of the labels on the issue. - `linear.issue.added_label_ids`: Comma-separated UUIDs of the labels the event added to the issue; empty when none. - `linear.issue.added_label_names`: Comma-separated names of the labels the event added to the issue, in the same order as `linear.issue.added_label_ids`; empty when none. - `linear.issue.removed_label_ids`: Comma-separated UUIDs of the labels the event removed from the issue; empty when none. - `linear.issue.removed_label_names`: Comma-separated names of the removed labels the trigger stores a name for, in the order of `linear.issue.removed_label_ids` and taken from the trigger's `removedLabelNames`; empty when the trigger stores none. - `linear.issue.team_id`: UUID of the Linear team that owns the issue. - `linear.issue.team_key`: Short key of the Linear team (e.g., `ENG`). - `linear.issue.team_name`: Display name of the Linear team.
const ( LinearIssueTriggerVariableNameLinearAction LinearIssueTriggerVariableName = "linear.action" LinearIssueTriggerVariableNameLinearActorName LinearIssueTriggerVariableName = "linear.actor.name" LinearIssueTriggerVariableNameLinearIssueAddedLabelIds LinearIssueTriggerVariableName = "linear.issue.added_label_ids" LinearIssueTriggerVariableNameLinearIssueAddedLabelNames LinearIssueTriggerVariableName = "linear.issue.added_label_names" LinearIssueTriggerVariableNameLinearIssueDescription LinearIssueTriggerVariableName = "linear.issue.description" LinearIssueTriggerVariableNameLinearIssueId LinearIssueTriggerVariableName = "linear.issue.id" LinearIssueTriggerVariableNameLinearIssueLabelIds LinearIssueTriggerVariableName = "linear.issue.label_ids" LinearIssueTriggerVariableNameLinearIssueLabelNames LinearIssueTriggerVariableName = "linear.issue.label_names" LinearIssueTriggerVariableNameLinearIssuePriority LinearIssueTriggerVariableName = "linear.issue.priority" LinearIssueTriggerVariableNameLinearIssueRemovedLabelIds LinearIssueTriggerVariableName = "linear.issue.removed_label_ids" LinearIssueTriggerVariableNameLinearIssueRemovedLabelNames LinearIssueTriggerVariableName = "linear.issue.removed_label_names" LinearIssueTriggerVariableNameLinearIssueState LinearIssueTriggerVariableName = "linear.issue.state" LinearIssueTriggerVariableNameLinearIssueTeamId LinearIssueTriggerVariableName = "linear.issue.team_id" LinearIssueTriggerVariableNameLinearIssueTeamKey LinearIssueTriggerVariableName = "linear.issue.team_key" LinearIssueTriggerVariableNameLinearIssueTeamName LinearIssueTriggerVariableName = "linear.issue.team_name" LinearIssueTriggerVariableNameLinearIssueTitle LinearIssueTriggerVariableName = "linear.issue.title" LinearIssueTriggerVariableNameLinearIssueUrl LinearIssueTriggerVariableName = "linear.issue.url" LinearIssueTriggerVariableNameLinearIssueUuid LinearIssueTriggerVariableName = "linear.issue.uuid" )
Defines values for LinearIssueTriggerVariableName.
func (LinearIssueTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearIssueTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearIssueTriggerVariableName enum.
type LinearProjectAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearProjectAgenticWorkflowTrigger struct {
Kind LinearProjectAgenticWorkflowTriggerKind `json:"kind"`
Spec LinearProjectAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearProjectAgenticWorkflowTrigger defines model for LinearProjectAgenticWorkflowTrigger.
type LinearProjectAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearProjectAgenticWorkflowTriggerKind string
LinearProjectAgenticWorkflowTriggerKind defines model for LinearProjectAgenticWorkflowTrigger.Kind.
const ( LinearProjectAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearProjectAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearProjectAgenticWorkflowTriggerKindFailedCheckNew LinearProjectAgenticWorkflowTriggerKind = "failed_check.new" LinearProjectAgenticWorkflowTriggerKindGithubCheckRun LinearProjectAgenticWorkflowTriggerKind = "github.check_run" LinearProjectAgenticWorkflowTriggerKindGithubCheckSuite LinearProjectAgenticWorkflowTriggerKind = "github.check_suite" LinearProjectAgenticWorkflowTriggerKindGithubDeployment LinearProjectAgenticWorkflowTriggerKind = "github.deployment" LinearProjectAgenticWorkflowTriggerKindGithubDeploymentStatus LinearProjectAgenticWorkflowTriggerKind = "github.deployment_status" LinearProjectAgenticWorkflowTriggerKindGithubIssueComment LinearProjectAgenticWorkflowTriggerKind = "github.issue_comment" LinearProjectAgenticWorkflowTriggerKindGithubPullRequest LinearProjectAgenticWorkflowTriggerKind = "github.pull_request" LinearProjectAgenticWorkflowTriggerKindGithubPullRequestReview LinearProjectAgenticWorkflowTriggerKind = "github.pull_request_review" LinearProjectAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearProjectAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearProjectAgenticWorkflowTriggerKindGithubPush LinearProjectAgenticWorkflowTriggerKind = "github.push" LinearProjectAgenticWorkflowTriggerKindGithubRelease LinearProjectAgenticWorkflowTriggerKind = "github.release" LinearProjectAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearProjectAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearProjectAgenticWorkflowTriggerKindGithubWorkflowJob LinearProjectAgenticWorkflowTriggerKind = "github.workflow_job" LinearProjectAgenticWorkflowTriggerKindGithubWorkflowRun LinearProjectAgenticWorkflowTriggerKind = "github.workflow_run" LinearProjectAgenticWorkflowTriggerKindGitlabMergeRequest LinearProjectAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearProjectAgenticWorkflowTriggerKindGitlabNote LinearProjectAgenticWorkflowTriggerKind = "gitlab.note" LinearProjectAgenticWorkflowTriggerKindLinearComment LinearProjectAgenticWorkflowTriggerKind = "linear.comment" LinearProjectAgenticWorkflowTriggerKindLinearCommentReaction LinearProjectAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearProjectAgenticWorkflowTriggerKindLinearInitiative LinearProjectAgenticWorkflowTriggerKind = "linear.initiative" LinearProjectAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearProjectAgenticWorkflowTriggerKind = "linear.initiative_update" LinearProjectAgenticWorkflowTriggerKindLinearIssue LinearProjectAgenticWorkflowTriggerKind = "linear.issue" LinearProjectAgenticWorkflowTriggerKindLinearIssueAttachment LinearProjectAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearProjectAgenticWorkflowTriggerKindLinearIssueComment LinearProjectAgenticWorkflowTriggerKind = "linear.issue_comment" LinearProjectAgenticWorkflowTriggerKindLinearProject LinearProjectAgenticWorkflowTriggerKind = "linear.project" LinearProjectAgenticWorkflowTriggerKindLinearProjectUpdate LinearProjectAgenticWorkflowTriggerKind = "linear.project_update" LinearProjectAgenticWorkflowTriggerKindManual LinearProjectAgenticWorkflowTriggerKind = "manual" LinearProjectAgenticWorkflowTriggerKindSchedule LinearProjectAgenticWorkflowTriggerKind = "schedule" LinearProjectAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearProjectAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearProjectAgenticWorkflowTriggerKindSlackBotMessage LinearProjectAgenticWorkflowTriggerKind = "slack_bot.message" LinearProjectAgenticWorkflowTriggerKindSlackBotReaction LinearProjectAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearProjectAgenticWorkflowTriggerKindWebhook LinearProjectAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearProjectAgenticWorkflowTriggerKind.
func (LinearProjectAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearProjectAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearProjectAgenticWorkflowTriggerKind enum.
type LinearProjectAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearProjectAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearProjectTriggerVariableName `json:"availableVariables,omitempty"`
// NameRegex Optional RE2 regular expression matched against the complete name of the project or
// initiative. For a project or initiative update, it matches the name of the project
// or initiative the update was posted to. Matching is case-sensitive unless the
// pattern includes a flag such as `(?i)`.
NameRegex *string `json:"nameRegex,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
// TeamIds Optional list of Linear team UUIDs. A project belongs to one or more teams; the
// trigger fires when any of the project's teams is in this list. When omitted or
// empty, projects of every team match. Only `linear.project` has this filter,
// because the other Linear entity events carry no team.
TeamIds *[]string `json:"teamIds,omitempty"`
}
LinearProjectAgenticWorkflowTriggerSpec defines model for LinearProjectAgenticWorkflowTriggerSpec.
type LinearProjectTriggerVariableName ¶ added in v1.29.0
type LinearProjectTriggerVariableName string
LinearProjectTriggerVariableName Variables provided by the `linear.project` trigger. Fields Linear omits from the event are omitted.
- `linear.action`: The Linear webhook action: `create`, `update`, or `remove`. - `linear.project.id`: UUID of the Linear project. - `linear.project.name`: Name of the Linear project. - `linear.project.url`: URL of the Linear project. - `linear.project.description`: Short description of the Linear project. - `linear.project.status`: Name of the project's status (e.g., `In Progress`). - `linear.project.health`: Health of the project (`onTrack`, `atRisk`, or `offTrack`), when set. - `linear.actor.name`: Display name of the user who made the change, when known.
const ( LinearProjectTriggerVariableNameLinearAction LinearProjectTriggerVariableName = "linear.action" LinearProjectTriggerVariableNameLinearActorName LinearProjectTriggerVariableName = "linear.actor.name" LinearProjectTriggerVariableNameLinearProjectDescription LinearProjectTriggerVariableName = "linear.project.description" LinearProjectTriggerVariableNameLinearProjectHealth LinearProjectTriggerVariableName = "linear.project.health" LinearProjectTriggerVariableNameLinearProjectId LinearProjectTriggerVariableName = "linear.project.id" LinearProjectTriggerVariableNameLinearProjectName LinearProjectTriggerVariableName = "linear.project.name" LinearProjectTriggerVariableNameLinearProjectStatus LinearProjectTriggerVariableName = "linear.project.status" LinearProjectTriggerVariableNameLinearProjectUrl LinearProjectTriggerVariableName = "linear.project.url" )
Defines values for LinearProjectTriggerVariableName.
func (LinearProjectTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearProjectTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearProjectTriggerVariableName enum.
type LinearProjectUpdateAgenticWorkflowTrigger ¶ added in v1.29.0
type LinearProjectUpdateAgenticWorkflowTrigger struct {
Kind LinearProjectUpdateAgenticWorkflowTriggerKind `json:"kind"`
Spec LinearProjectUpdateAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
LinearProjectUpdateAgenticWorkflowTrigger defines model for LinearProjectUpdateAgenticWorkflowTrigger.
type LinearProjectUpdateAgenticWorkflowTriggerKind ¶ added in v1.29.0
type LinearProjectUpdateAgenticWorkflowTriggerKind string
LinearProjectUpdateAgenticWorkflowTriggerKind defines model for LinearProjectUpdateAgenticWorkflowTrigger.Kind.
const ( LinearProjectUpdateAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation LinearProjectUpdateAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" LinearProjectUpdateAgenticWorkflowTriggerKindFailedCheckNew LinearProjectUpdateAgenticWorkflowTriggerKind = "failed_check.new" LinearProjectUpdateAgenticWorkflowTriggerKindGithubCheckRun LinearProjectUpdateAgenticWorkflowTriggerKind = "github.check_run" LinearProjectUpdateAgenticWorkflowTriggerKindGithubCheckSuite LinearProjectUpdateAgenticWorkflowTriggerKind = "github.check_suite" LinearProjectUpdateAgenticWorkflowTriggerKindGithubDeployment LinearProjectUpdateAgenticWorkflowTriggerKind = "github.deployment" LinearProjectUpdateAgenticWorkflowTriggerKindGithubDeploymentStatus LinearProjectUpdateAgenticWorkflowTriggerKind = "github.deployment_status" LinearProjectUpdateAgenticWorkflowTriggerKindGithubIssueComment LinearProjectUpdateAgenticWorkflowTriggerKind = "github.issue_comment" LinearProjectUpdateAgenticWorkflowTriggerKindGithubPullRequest LinearProjectUpdateAgenticWorkflowTriggerKind = "github.pull_request" LinearProjectUpdateAgenticWorkflowTriggerKindGithubPullRequestReview LinearProjectUpdateAgenticWorkflowTriggerKind = "github.pull_request_review" LinearProjectUpdateAgenticWorkflowTriggerKindGithubPullRequestReviewComment LinearProjectUpdateAgenticWorkflowTriggerKind = "github.pull_request_review_comment" LinearProjectUpdateAgenticWorkflowTriggerKindGithubPush LinearProjectUpdateAgenticWorkflowTriggerKind = "github.push" LinearProjectUpdateAgenticWorkflowTriggerKindGithubRelease LinearProjectUpdateAgenticWorkflowTriggerKind = "github.release" LinearProjectUpdateAgenticWorkflowTriggerKindGithubWorkflowDispatch LinearProjectUpdateAgenticWorkflowTriggerKind = "github.workflow_dispatch" LinearProjectUpdateAgenticWorkflowTriggerKindGithubWorkflowJob LinearProjectUpdateAgenticWorkflowTriggerKind = "github.workflow_job" LinearProjectUpdateAgenticWorkflowTriggerKindGithubWorkflowRun LinearProjectUpdateAgenticWorkflowTriggerKind = "github.workflow_run" LinearProjectUpdateAgenticWorkflowTriggerKindGitlabMergeRequest LinearProjectUpdateAgenticWorkflowTriggerKind = "gitlab.merge_request" LinearProjectUpdateAgenticWorkflowTriggerKindGitlabNote LinearProjectUpdateAgenticWorkflowTriggerKind = "gitlab.note" LinearProjectUpdateAgenticWorkflowTriggerKindLinearComment LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.comment" LinearProjectUpdateAgenticWorkflowTriggerKindLinearCommentReaction LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.comment_reaction" LinearProjectUpdateAgenticWorkflowTriggerKindLinearInitiative LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.initiative" LinearProjectUpdateAgenticWorkflowTriggerKindLinearInitiativeUpdate LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.initiative_update" LinearProjectUpdateAgenticWorkflowTriggerKindLinearIssue LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.issue" LinearProjectUpdateAgenticWorkflowTriggerKindLinearIssueAttachment LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.issue_attachment" LinearProjectUpdateAgenticWorkflowTriggerKindLinearIssueComment LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.issue_comment" LinearProjectUpdateAgenticWorkflowTriggerKindLinearProject LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.project" LinearProjectUpdateAgenticWorkflowTriggerKindLinearProjectUpdate LinearProjectUpdateAgenticWorkflowTriggerKind = "linear.project_update" LinearProjectUpdateAgenticWorkflowTriggerKindManual LinearProjectUpdateAgenticWorkflowTriggerKind = "manual" LinearProjectUpdateAgenticWorkflowTriggerKindSchedule LinearProjectUpdateAgenticWorkflowTriggerKind = "schedule" LinearProjectUpdateAgenticWorkflowTriggerKindSlackBotFailedCheckNew LinearProjectUpdateAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" LinearProjectUpdateAgenticWorkflowTriggerKindSlackBotMessage LinearProjectUpdateAgenticWorkflowTriggerKind = "slack_bot.message" LinearProjectUpdateAgenticWorkflowTriggerKindSlackBotReaction LinearProjectUpdateAgenticWorkflowTriggerKind = "slack_bot.reaction" LinearProjectUpdateAgenticWorkflowTriggerKindWebhook LinearProjectUpdateAgenticWorkflowTriggerKind = "webhook" )
Defines values for LinearProjectUpdateAgenticWorkflowTriggerKind.
func (LinearProjectUpdateAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e LinearProjectUpdateAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the LinearProjectUpdateAgenticWorkflowTriggerKind enum.
type LinearProjectUpdateAgenticWorkflowTriggerSpec ¶ added in v1.29.0
type LinearProjectUpdateAgenticWorkflowTriggerSpec struct {
// Actions Optional list of actions to filter on. When omitted or empty, every action
// matches.
Actions *[]LinearWebhookAction `json:"actions,omitempty"`
// AuthorRegex Optional RE2 regular expression that must match the author's complete Linear user UUID
// or complete email. Mutually exclusive with `authors`.
AuthorRegex *string `json:"authorRegex,omitempty"`
// Authors Optional list of Linear users who must have authored the entity, for example the
// comment's writer or the issue's creator. An entry matches the author's Linear user
// UUID or email, case-insensitively. Mutually exclusive with `authorRegex`.
Authors *[]string `json:"authors,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]LinearProjectUpdateTriggerVariableName `json:"availableVariables,omitempty"`
// NameRegex Optional RE2 regular expression matched against the complete name of the project or
// initiative. For a project or initiative update, it matches the name of the project
// or initiative the update was posted to. Matching is case-sensitive unless the
// pattern includes a flag such as `(?i)`.
NameRegex *string `json:"nameRegex,omitempty"`
// ProjectIds Optional list of Linear project UUIDs. When non-empty, the trigger fires only when
// the update was posted to one of these projects. When omitted or empty, updates of
// every project match.
ProjectIds *[]string `json:"projectIds,omitempty"`
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearProjectUpdateAgenticWorkflowTriggerSpec defines model for LinearProjectUpdateAgenticWorkflowTriggerSpec.
type LinearProjectUpdateTriggerVariableName ¶ added in v1.29.0
type LinearProjectUpdateTriggerVariableName string
LinearProjectUpdateTriggerVariableName Variables provided by the `linear.project_update` trigger. Fields Linear omits from the event are omitted.
- `linear.action`: The Linear webhook action: `create`, `update`, or `remove`. - `linear.project_update.id`: UUID of the project update. - `linear.project_update.body`: Markdown body of the project update. - `linear.project_update.url`: URL of the project update. - `linear.project_update.health`: Health reported by the update (`onTrack`, `atRisk`, or `offTrack`). - `linear.project.id`: UUID of the project the update was posted to. - `linear.project.name`: Name of the project the update was posted to. - `linear.project.url`: URL of the project the update was posted to. - `linear.actor.name`: Display name of the user who made the change, when known.
const ( LinearProjectUpdateTriggerVariableNameLinearAction LinearProjectUpdateTriggerVariableName = "linear.action" LinearProjectUpdateTriggerVariableNameLinearActorName LinearProjectUpdateTriggerVariableName = "linear.actor.name" LinearProjectUpdateTriggerVariableNameLinearProjectId LinearProjectUpdateTriggerVariableName = "linear.project.id" LinearProjectUpdateTriggerVariableNameLinearProjectName LinearProjectUpdateTriggerVariableName = "linear.project.name" LinearProjectUpdateTriggerVariableNameLinearProjectUpdateBody LinearProjectUpdateTriggerVariableName = "linear.project_update.body" LinearProjectUpdateTriggerVariableNameLinearProjectUpdateHealth LinearProjectUpdateTriggerVariableName = "linear.project_update.health" LinearProjectUpdateTriggerVariableNameLinearProjectUpdateId LinearProjectUpdateTriggerVariableName = "linear.project_update.id" LinearProjectUpdateTriggerVariableNameLinearProjectUpdateUrl LinearProjectUpdateTriggerVariableName = "linear.project_update.url" LinearProjectUpdateTriggerVariableNameLinearProjectUrl LinearProjectUpdateTriggerVariableName = "linear.project.url" )
Defines values for LinearProjectUpdateTriggerVariableName.
func (LinearProjectUpdateTriggerVariableName) Valid ¶ added in v1.29.0
func (e LinearProjectUpdateTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the LinearProjectUpdateTriggerVariableName enum.
type LinearSenderFilters ¶ added in v1.29.0
type LinearSenderFilters struct {
// SenderRegex Optional RE2 regular expression that must match the actor's complete Linear user UUID
// or complete email. An actor without an email matches on its UUID only. Mutually
// exclusive with `senders`.
SenderRegex *string `json:"senderRegex,omitempty"`
// Senders Optional list of Linear users whose action fires the trigger. An entry matches the
// actor's Linear user UUID or email, case-insensitively. OAuth clients and integrations
// match by ID only. Mutually exclusive with `senderRegex`.
Senders *[]string `json:"senders,omitempty"`
}
LinearSenderFilters defines model for LinearSenderFilters.
type LinearTeamScope ¶ added in v1.29.0
type LinearTeamScope struct {
// AllTeams When true, the automation deliberately matches issues in every team of the connected
// Linear workspace, now and in the future. Mutually exclusive with a non-empty `teamIds`
// list. This flag distinguishes an explicit "all teams" choice from an unconfigured
// trigger, mirroring `allOrganizations` on GitHub triggers.
AllTeams *bool `json:"allTeams,omitempty"`
// TeamIds List of Linear team UUIDs to scope the trigger to. When non-empty, the trigger fires
// only for issues whose team ID is in this list. Mutually exclusive with `allTeams`; a
// request that sets both, or that leaves both `teamIds` and `allTeams` empty/unset, is
// rejected on write as an accidental match-everything catch-all. Only issue-scoped
// Linear trigger kinds carry this scope. `linear.project` has its own optional `teamIds`
// filter, where an empty list matches every team; initiatives have no team filter.
TeamIds *[]string `json:"teamIds,omitempty"`
}
LinearTeamScope defines model for LinearTeamScope.
type LinearWebhookAction ¶ added in v1.29.0
type LinearWebhookAction string
LinearWebhookAction What happened to the Linear entity behind a data-change webhook, in Linear's own words. slack-bot passes the webhook's `action` through unchanged.
- `create`: The entity was created. - `update`: The entity was updated. - `remove`: The entity was removed.
const ( Create LinearWebhookAction = "create" Remove LinearWebhookAction = "remove" Update LinearWebhookAction = "update" )
Defines values for LinearWebhookAction.
func (LinearWebhookAction) Valid ¶ added in v1.29.0
func (e LinearWebhookAction) Valid() bool
Valid indicates whether the value is a known member of the LinearWebhookAction enum.
type ListOption ¶ added in v1.23.0
type ListOption func(*ListOptions)
ListOption configures optional filters on List* methods. Each option names the list methods that support it. The other list methods return an error when given it, rather than ignoring the filter.
func WithEnabled ¶ added in v1.28.0
func WithEnabled(enabled bool) ListOption
WithEnabled restricts a list call to assets whose enabled state is enabled. Supported by Client.ListSignalToMetrics, Client.ListSignalToMetricsIter, Client.CountSignalToMetrics, Client.ListCustomSkills, and Client.ListCustomSkillsIter. A custom skill is on or off per user, so for an API token without a user every readable skill counts as enabled. The other list methods return an error when given this option.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Pass the option to a signal-to-metrics list call to keep only the disabled rules:
//
// rules, err := client.ListSignalToMetrics(ctx, dash0.Ptr("default"), dash0.WithEnabled(false))
opts := dash0.NewListOptions(dash0.WithEnabled(false))
fmt.Println(*opts.Enabled)
}
Output: false
func WithOriginPrefix ¶ added in v1.23.0
func WithOriginPrefix(prefix string) ListOption
WithOriginPrefix restricts a list call to assets whose dash0.com/origin starts with prefix. An empty prefix leaves the filter unset. Supported by Client.ListCheckRules, Client.ListRecordingRules, Client.ListSLOs, Client.ListSignalToMetrics, Client.CountSignalToMetrics, Client.ListCustomSkills, and their Iter variants.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Pass the option to a list call to restrict it to assets you own:
//
// rules, err := client.ListCheckRules(ctx, dash0.Ptr("default"), dash0.WithOriginPrefix("dash0-operator_abc_"))
opts := dash0.NewListOptions(dash0.WithOriginPrefix("dash0-operator_abc_"))
fmt.Println(*opts.OriginPrefix)
}
Output: dash0-operator_abc_
func WithSignal ¶ added in v1.28.0
func WithSignal(signal SignalToMetricsSignalType) ListOption
WithSignal restricts a list call to signal-to-metrics rules whose source signal is signal. An empty signal leaves the filter unset. Supported by Client.ListSignalToMetrics, Client.ListSignalToMetricsIter, and Client.CountSignalToMetrics. The other list methods return an error when given this option.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Pass the option to a signal-to-metrics list call to keep only the rules for one source signal:
//
// rules, err := client.ListSignalToMetrics(ctx, dash0.Ptr("default"), dash0.WithSignal(dash0.SignalToMetricsSignalTypeLogs))
opts := dash0.NewListOptions(dash0.WithSignal(dash0.SignalToMetricsSignalTypeLogs))
fmt.Println(*opts.Signal)
}
Output: logs
func WithSignalToMetricsName ¶ added in v1.28.0
func WithSignalToMetricsName(name string) ListOption
WithSignalToMetricsName restricts a list call to signal-to-metrics rules whose display name (spec.display.name) or output metric name (spec.output.name) contains name, ignoring case, or whose ID equals name, ignoring case. It does not search metadata.name. It sets the name query parameter of the signal-to-metrics list endpoint. An empty name leaves the filter unset. Supported by Client.ListSignalToMetrics, Client.ListSignalToMetricsIter, and Client.CountSignalToMetrics. The other list methods return an error when given this option.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
// Pass the option to a signal-to-metrics list call to search the display name, output metric name, and ID:
//
// rules, err := client.ListSignalToMetrics(ctx, dash0.Ptr("default"), dash0.WithSignalToMetricsName("checkout"))
opts := dash0.NewListOptions(dash0.WithSignalToMetricsName("checkout"))
fmt.Println(*opts.SignalToMetricsName)
}
Output: checkout
type ListOptions ¶ added in v1.23.0
type ListOptions struct {
// OriginPrefix restricts results to assets whose dash0.com/origin starts with the given string.
// Nil means no filter.
OriginPrefix *string
// SignalToMetricsName restricts results to signal-to-metrics rules that match the given search string.
// See [WithSignalToMetricsName] for the fields it matches.
// Nil means no filter.
SignalToMetricsName *string
// Signal restricts results to signal-to-metrics rules with the given source signal.
// Nil means no filter.
Signal *SignalToMetricsSignalType
// Enabled restricts results to assets with the given enabled state.
// Nil means no filter.
Enabled *bool
}
ListOptions holds the filters resolved from a set of ListOption values.
func NewListOptions ¶ added in v1.23.0
func NewListOptions(opts ...ListOption) ListOptions
NewListOptions applies opts in order and returns the resolved filters. Nil options are skipped. It is exported so that mock implementations of Client can inspect the options a caller passed.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
opts := dash0.NewListOptions(dash0.WithOriginPrefix(""))
fmt.Println(opts.OriginPrefix == nil)
}
Output: true
type LogRecord ¶
type LogRecord struct {
Attributes []KeyValue `json:"attributes"`
// Body AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.
Body *AnyValue `json:"body,omitempty"`
// Dash0EventId The ID of the log record. This is a non-standard OTLP field. The property is only included when
// `includeOTLPSchemaExtensions` is `true`.
Dash0EventId *string `json:"dash0EventId,omitempty"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
EventName *string `json:"eventName,omitempty"`
Flags *int64 `json:"flags,omitempty"`
// Id The ID of the log record. This is a non-standard OTLP field. The property is only included when
// `includeOTLPSchemaExtensions` is `true`.
Id *string `json:"id,omitempty"`
ObservedTimeUnixNano string `json:"observedTimeUnixNano"`
// SeverityNumber SEVERITY_NUMBER_UNSPECIFIED = 0;
// SEVERITY_NUMBER_TRACE = 1;
// SEVERITY_NUMBER_TRACE2 = 2;
// SEVERITY_NUMBER_TRACE3 = 3;
// SEVERITY_NUMBER_TRACE4 = 4;
// SEVERITY_NUMBER_DEBUG = 5;
// SEVERITY_NUMBER_DEBUG2 = 6;
// SEVERITY_NUMBER_DEBUG3 = 7;
// SEVERITY_NUMBER_DEBUG4 = 8;
// SEVERITY_NUMBER_INFO = 9;
// SEVERITY_NUMBER_INFO2 = 10;
// SEVERITY_NUMBER_INFO3 = 11;
// SEVERITY_NUMBER_INFO4 = 12;
// SEVERITY_NUMBER_WARN = 13;
// SEVERITY_NUMBER_WARN2 = 14;
// SEVERITY_NUMBER_WARN3 = 15;
// SEVERITY_NUMBER_WARN4 = 16;
// SEVERITY_NUMBER_ERROR = 17;
// SEVERITY_NUMBER_ERROR2 = 18;
// SEVERITY_NUMBER_ERROR3 = 19;
// SEVERITY_NUMBER_ERROR4 = 20;
// SEVERITY_NUMBER_FATAL = 21;
// SEVERITY_NUMBER_FATAL2 = 22;
// SEVERITY_NUMBER_FATAL3 = 23;
// SEVERITY_NUMBER_FATAL4 = 24;
SeverityNumber *SeverityNumber `json:"severityNumber,omitempty"`
SeverityText *string `json:"severityText,omitempty"`
SpanId *[]byte `json:"spanId,omitempty"`
TimeUnixNano string `json:"timeUnixNano"`
TraceId *[]byte `json:"traceId,omitempty"`
}
LogRecord defines model for LogRecord.
type LogRecordExportFormat ¶ added in v1.18.1
type LogRecordExportFormat string
LogRecordExportFormat The serialization format of the exported file.
- `txt`: One rendered log line per record, carrying a fixed field set of timestamp, severity, resource, body and trace ID. Ignores `columns`.
- `ndjson`: One OTLP JSON payload per line, each carrying a single log record inside the same `resourceLogs` envelope `POST /api/logs` returns, so each line is independently parseable by any OTLP JSON consumer.
- `yaml`: The same per-record OTLP payloads as `ndjson`, as a multi-document YAML stream with documents separated by `---`.
- `csv`: A header row plus one row per record, flattened to the requested `columns`.
const ( LogRecordExportFormatCsv LogRecordExportFormat = "csv" LogRecordExportFormatNdjson LogRecordExportFormat = "ndjson" LogRecordExportFormatTxt LogRecordExportFormat = "txt" LogRecordExportFormatYaml LogRecordExportFormat = "yaml" )
Defines values for LogRecordExportFormat.
func (LogRecordExportFormat) Valid ¶ added in v1.29.0
func (e LogRecordExportFormat) Valid() bool
Valid indicates whether the value is a known member of the LogRecordExportFormat enum.
type LogRecordsDownloadRequest ¶ added in v1.18.1
type LogRecordsDownloadRequest struct {
// Columns Attribute keys to emit as columns, in order, for the `csv` format — resource,
// scope, or log record attributes (e.g. `service.name`, `otel.log.body`). Ignored by
// the other formats, which have a fixed field set.
Columns *[]string `json:"columns,omitempty"`
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// Format The serialization format of the exported file.
// - `txt`: One rendered log line per record, carrying a fixed field set of timestamp,
// severity, resource, body and trace ID. Ignores `columns`.
// - `ndjson`: One OTLP JSON payload per line, each carrying a single log record inside
// the same `resourceLogs` envelope `POST /api/logs` returns, so each line is
// independently parseable by any OTLP JSON consumer.
// - `yaml`: The same per-record OTLP payloads as `ndjson`, as a multi-document YAML
// stream with documents separated by `---`.
// - `csv`: A header row plus one row per record, flattened to the requested `columns`.
Format LogRecordExportFormat `json:"format"`
// Limit The maximum number of log records to export. Defaults to, and is capped at, 5000.
// A larger value is rejected rather than silently clamped. Use the Dash0 CLI
// (`dash0 logs query`) to export volumes beyond this cap.
Limit *int64 `json:"limit,omitempty"`
// Ordering The ordering criteria for the exported logs. Records are written to the file in
// this order.
// Supported ordering key: `otel.log.time` (log timestamp, defaults to descending)
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
LogRecordsDownloadRequest Request for `POST /api/logs/download`. Accepts the same query as `POST /api/logs` (`filter`, `timeRange`, `dataset`, `ordering`) and returns the matching records serialized as a downloadable file rather than as a JSON page.
The response is streamed, so the export is not paginated: a single request returns up to `limit` records, capped at 5000. Adaptive sampling is always disabled for exports, so an exported file is never a sample.
type ManualAgenticWorkflowTrigger ¶ added in v1.17.0
type ManualAgenticWorkflowTrigger struct {
Kind ManualAgenticWorkflowTriggerKind `json:"kind"`
Spec EmptyAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
ManualAgenticWorkflowTrigger defines model for ManualAgenticWorkflowTrigger.
type ManualAgenticWorkflowTriggerKind ¶ added in v1.17.0
type ManualAgenticWorkflowTriggerKind string
ManualAgenticWorkflowTriggerKind defines model for ManualAgenticWorkflowTrigger.Kind.
const ( ManualAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation ManualAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" ManualAgenticWorkflowTriggerKindFailedCheckNew ManualAgenticWorkflowTriggerKind = "failed_check.new" ManualAgenticWorkflowTriggerKindGithubCheckRun ManualAgenticWorkflowTriggerKind = "github.check_run" ManualAgenticWorkflowTriggerKindGithubCheckSuite ManualAgenticWorkflowTriggerKind = "github.check_suite" ManualAgenticWorkflowTriggerKindGithubDeployment ManualAgenticWorkflowTriggerKind = "github.deployment" ManualAgenticWorkflowTriggerKindGithubDeploymentStatus ManualAgenticWorkflowTriggerKind = "github.deployment_status" ManualAgenticWorkflowTriggerKindGithubIssueComment ManualAgenticWorkflowTriggerKind = "github.issue_comment" ManualAgenticWorkflowTriggerKindGithubPullRequest ManualAgenticWorkflowTriggerKind = "github.pull_request" ManualAgenticWorkflowTriggerKindGithubPullRequestReview ManualAgenticWorkflowTriggerKind = "github.pull_request_review" ManualAgenticWorkflowTriggerKindGithubPullRequestReviewComment ManualAgenticWorkflowTriggerKind = "github.pull_request_review_comment" ManualAgenticWorkflowTriggerKindGithubPush ManualAgenticWorkflowTriggerKind = "github.push" ManualAgenticWorkflowTriggerKindGithubRelease ManualAgenticWorkflowTriggerKind = "github.release" ManualAgenticWorkflowTriggerKindGithubWorkflowDispatch ManualAgenticWorkflowTriggerKind = "github.workflow_dispatch" ManualAgenticWorkflowTriggerKindGithubWorkflowJob ManualAgenticWorkflowTriggerKind = "github.workflow_job" ManualAgenticWorkflowTriggerKindGithubWorkflowRun ManualAgenticWorkflowTriggerKind = "github.workflow_run" ManualAgenticWorkflowTriggerKindGitlabMergeRequest ManualAgenticWorkflowTriggerKind = "gitlab.merge_request" ManualAgenticWorkflowTriggerKindGitlabNote ManualAgenticWorkflowTriggerKind = "gitlab.note" ManualAgenticWorkflowTriggerKindLinearComment ManualAgenticWorkflowTriggerKind = "linear.comment" ManualAgenticWorkflowTriggerKindLinearCommentReaction ManualAgenticWorkflowTriggerKind = "linear.comment_reaction" ManualAgenticWorkflowTriggerKindLinearInitiative ManualAgenticWorkflowTriggerKind = "linear.initiative" ManualAgenticWorkflowTriggerKindLinearInitiativeUpdate ManualAgenticWorkflowTriggerKind = "linear.initiative_update" ManualAgenticWorkflowTriggerKindLinearIssue ManualAgenticWorkflowTriggerKind = "linear.issue" ManualAgenticWorkflowTriggerKindLinearIssueAttachment ManualAgenticWorkflowTriggerKind = "linear.issue_attachment" ManualAgenticWorkflowTriggerKindLinearIssueComment ManualAgenticWorkflowTriggerKind = "linear.issue_comment" ManualAgenticWorkflowTriggerKindLinearProject ManualAgenticWorkflowTriggerKind = "linear.project" ManualAgenticWorkflowTriggerKindLinearProjectUpdate ManualAgenticWorkflowTriggerKind = "linear.project_update" ManualAgenticWorkflowTriggerKindManual ManualAgenticWorkflowTriggerKind = "manual" ManualAgenticWorkflowTriggerKindSchedule ManualAgenticWorkflowTriggerKind = "schedule" ManualAgenticWorkflowTriggerKindSlackBotFailedCheckNew ManualAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" ManualAgenticWorkflowTriggerKindSlackBotMessage ManualAgenticWorkflowTriggerKind = "slack_bot.message" ManualAgenticWorkflowTriggerKindSlackBotReaction ManualAgenticWorkflowTriggerKind = "slack_bot.reaction" ManualAgenticWorkflowTriggerKindWebhook ManualAgenticWorkflowTriggerKind = "webhook" )
Defines values for ManualAgenticWorkflowTriggerKind.
func (ManualAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e ManualAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the ManualAgenticWorkflowTriggerKind enum.
type Matcher ¶ added in v1.9.0
type Matcher struct {
// Operator The match operation for filtering attributes.
//
// #### Equality Operators
// - `is` - equals (attribute exists and has a matching value)
// - `is_not` - not equals (attribute exists and has a different value)
//
// #### Existence Operators
// - `is_set` - is set (attribute exists)
// - `is_not_set` - is not set (attribute does not exist)
//
// #### Multiple Value Operators
// - `is_one_of` - is any of (attribute exists and has a value that is in the specified values)
// - `is_not_one_of` - is not any of (attribute exists and has a value that is not in the specified values)
//
// #### Comparison Operators
// - `gt` - greater than
// - `lt` - less than
// - `gte` - greater than or equal
// - `lte` - less than or equal
//
// #### Pattern Matching Operators
// - `matches` - match regex expression (attribute exists and matches the regular expression)
// - `does_not_match` - does not match regex expression (attribute exists and does not match the regular expression)
//
// #### String Operators
// - `contains` - contains (attribute exists and contains the specified value)
// - `does_not_contain` - does not contain (attribute exists and does not contain the specified value)
// - `starts_with` - starts with (attribute exists and starts with the specified value)
// - `does_not_start_with` - does not start with (attribute exists and does not start with the specified value)
// - `ends_with` - ends with (attribute exists and ends with the specified value)
// - `does_not_end_with` - does not end with (attribute exists and does not end with the specified value)
//
// #### Special Operators
// - `is_any` - matches any value, ignoring whether the key exists or not
Operator AttributeFilterOperator `json:"operator"`
Value *Matcher_Value `json:"value,omitempty"`
// Values List of values to match against. This parameter is mandatory for the is_one_of and is_not_one_of operators.
Values *[]Matcher_Values_Item `json:"values,omitempty"`
}
Matcher defines model for Matcher.
type Matcher_Value ¶ added in v1.9.0
type Matcher_Value struct {
// contains filtered or unexported fields
}
Matcher_Value defines model for Matcher.Value.
func (Matcher_Value) AsAttributeFilterAnyValue ¶ added in v1.9.0
func (t Matcher_Value) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
AsAttributeFilterAnyValue returns the union data inside the Matcher_Value as a AttributeFilterAnyValue
func (Matcher_Value) AsAttributeFilterStringValue ¶ added in v1.9.0
func (t Matcher_Value) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
AsAttributeFilterStringValue returns the union data inside the Matcher_Value as a AttributeFilterStringValue
func (*Matcher_Value) FromAttributeFilterAnyValue ¶ added in v1.9.0
func (t *Matcher_Value) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
FromAttributeFilterAnyValue overwrites any union data inside the Matcher_Value as the provided AttributeFilterAnyValue
func (*Matcher_Value) FromAttributeFilterStringValue ¶ added in v1.9.0
func (t *Matcher_Value) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
FromAttributeFilterStringValue overwrites any union data inside the Matcher_Value as the provided AttributeFilterStringValue
func (Matcher_Value) MarshalJSON ¶ added in v1.9.0
func (t Matcher_Value) MarshalJSON() ([]byte, error)
func (*Matcher_Value) MergeAttributeFilterAnyValue ¶ added in v1.9.0
func (t *Matcher_Value) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
MergeAttributeFilterAnyValue performs a merge with any union data inside the Matcher_Value, using the provided AttributeFilterAnyValue
func (*Matcher_Value) MergeAttributeFilterStringValue ¶ added in v1.9.0
func (t *Matcher_Value) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
MergeAttributeFilterStringValue performs a merge with any union data inside the Matcher_Value, using the provided AttributeFilterStringValue
func (*Matcher_Value) UnmarshalJSON ¶ added in v1.9.0
func (t *Matcher_Value) UnmarshalJSON(b []byte) error
type Matcher_Values_Item ¶ added in v1.9.0
type Matcher_Values_Item struct {
// contains filtered or unexported fields
}
Matcher_Values_Item defines model for Matcher.values.Item.
func (Matcher_Values_Item) AsAttributeFilterAnyValue ¶ added in v1.9.0
func (t Matcher_Values_Item) AsAttributeFilterAnyValue() (AttributeFilterAnyValue, error)
AsAttributeFilterAnyValue returns the union data inside the Matcher_Values_Item as a AttributeFilterAnyValue
func (Matcher_Values_Item) AsAttributeFilterStringValue ¶ added in v1.9.0
func (t Matcher_Values_Item) AsAttributeFilterStringValue() (AttributeFilterStringValue, error)
AsAttributeFilterStringValue returns the union data inside the Matcher_Values_Item as a AttributeFilterStringValue
func (*Matcher_Values_Item) FromAttributeFilterAnyValue ¶ added in v1.9.0
func (t *Matcher_Values_Item) FromAttributeFilterAnyValue(v AttributeFilterAnyValue) error
FromAttributeFilterAnyValue overwrites any union data inside the Matcher_Values_Item as the provided AttributeFilterAnyValue
func (*Matcher_Values_Item) FromAttributeFilterStringValue ¶ added in v1.9.0
func (t *Matcher_Values_Item) FromAttributeFilterStringValue(v AttributeFilterStringValue) error
FromAttributeFilterStringValue overwrites any union data inside the Matcher_Values_Item as the provided AttributeFilterStringValue
func (Matcher_Values_Item) MarshalJSON ¶ added in v1.9.0
func (t Matcher_Values_Item) MarshalJSON() ([]byte, error)
func (*Matcher_Values_Item) MergeAttributeFilterAnyValue ¶ added in v1.9.0
func (t *Matcher_Values_Item) MergeAttributeFilterAnyValue(v AttributeFilterAnyValue) error
MergeAttributeFilterAnyValue performs a merge with any union data inside the Matcher_Values_Item, using the provided AttributeFilterAnyValue
func (*Matcher_Values_Item) MergeAttributeFilterStringValue ¶ added in v1.9.0
func (t *Matcher_Values_Item) MergeAttributeFilterStringValue(v AttributeFilterStringValue) error
MergeAttributeFilterStringValue performs a merge with any union data inside the Matcher_Values_Item, using the provided AttributeFilterStringValue
func (*Matcher_Values_Item) UnmarshalJSON ¶ added in v1.9.0
func (t *Matcher_Values_Item) UnmarshalJSON(b []byte) error
type MattermostWebhookConfig ¶ added in v1.23.0
type MattermostWebhookConfig struct {
// Channel Optional channel override. Accepts a channel name (`town-square`) or a direct
// message target (`@username`). When omitted, Mattermost posts to the channel the
// incoming webhook was created for. Overriding requires the webhook's creator to
// have access to the target channel; Mattermost rejects the post otherwise.
Channel *string `json:"channel,omitempty"`
// Url The Mattermost incoming webhook URL, as shown in
// *Integrations → Incoming Webhooks* of the Mattermost server
// (e.g. `https://mattermost.example.com/hooks/xxx-generatedkey-xxx`).
Url string `json:"url"`
}
MattermostWebhookConfig defines model for MattermostWebhookConfig.
type MemberDefinition ¶ added in v1.4.0
type MemberDefinition struct {
Kind MemberDefinitionKind `json:"kind"`
Metadata MemberMetadata `json:"metadata"`
Spec MemberSpec `json:"spec"`
}
MemberDefinition defines model for MemberDefinition.
type MemberDefinitionKind ¶ added in v1.4.0
type MemberDefinitionKind string
MemberDefinitionKind defines model for MemberDefinition.Kind.
const (
Dash0Member MemberDefinitionKind = "Dash0Member"
)
Defines values for MemberDefinitionKind.
func (MemberDefinitionKind) Valid ¶ added in v1.29.0
func (e MemberDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the MemberDefinitionKind enum.
type MemberDisplay ¶ added in v1.4.0
type MemberDisplay struct {
Email *string `json:"email,omitempty"`
FirstName *string `json:"firstName,omitempty"`
ImageUrl *string `json:"imageUrl,omitempty"`
LastName *string `json:"lastName,omitempty"`
}
MemberDisplay defines model for MemberDisplay.
type MemberInvitationDefinition ¶ added in v1.23.0
type MemberInvitationDefinition struct {
Kind MemberInvitationDefinitionKind `json:"kind"`
Metadata MemberInvitationMetadata `json:"metadata"`
Spec MemberInvitationSpec `json:"spec"`
}
MemberInvitationDefinition An invitation to join the organization that has not been accepted yet. Once accepted, the invitee is listed as a member instead.
type MemberInvitationDefinitionKind ¶ added in v1.23.0
type MemberInvitationDefinitionKind string
MemberInvitationDefinitionKind defines model for MemberInvitationDefinition.Kind.
const (
Dash0MemberInvitation MemberInvitationDefinitionKind = "Dash0MemberInvitation"
)
Defines values for MemberInvitationDefinitionKind.
func (MemberInvitationDefinitionKind) Valid ¶ added in v1.29.0
func (e MemberInvitationDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the MemberInvitationDefinitionKind enum.
type MemberInvitationLabels ¶ added in v1.23.0
type MemberInvitationLabels struct {
// Dash0ComexpiresAt When the invitation stops being valid. Absent if it does not expire.
Dash0ComexpiresAt *time.Time `json:"dash0.com/expires-at,omitempty"`
// Dash0Comid ID of the invitation, for `DELETE /api/members/invitations/{invitationID}`. It
// identifies the invitation, not a member: it cannot be passed where a member ID is
// expected.
Dash0Comid string `json:"dash0.com/id"`
Dash0CominvitedAt time.Time `json:"dash0.com/invited-at"`
// Dash0Comrole The role the invitee receives on accepting.
Dash0Comrole string `json:"dash0.com/role"`
}
MemberInvitationLabels defines model for MemberInvitationLabels.
type MemberInvitationMetadata ¶ added in v1.23.0
type MemberInvitationMetadata struct {
Labels MemberInvitationLabels `json:"labels"`
// Name The address the invitation was sent to.
Name string `json:"name"`
}
MemberInvitationMetadata defines model for MemberInvitationMetadata.
type MemberInvitationSpec ¶ added in v1.23.0
type MemberInvitationSpec struct {
// EmailAddress The address the invitation was sent to.
EmailAddress string `json:"emailAddress"`
}
MemberInvitationSpec defines model for MemberInvitationSpec.
type MemberLabels ¶ added in v1.4.0
type MemberLabels struct {
// Dash0Comid The member's ID, used to address the member in the members and teams endpoints.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0ComjoinedAt *time.Time `json:"dash0.com/joinedAt,omitempty"`
// Dash0Comrole The member's role in the organization
Dash0Comrole *string `json:"dash0.com/role,omitempty"`
// Dash0ComuserId The member's Dash0 user ID. Use it wherever another endpoint asks for a user ID, such as the `userId` of a custom skill permission.
Dash0ComuserId *string `json:"dash0.com/userId,omitempty"`
}
MemberLabels defines model for MemberLabels.
type MemberMetadata ¶ added in v1.4.0
type MemberMetadata struct {
Labels *MemberLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
MemberMetadata defines model for MemberMetadata.
type MemberSpec ¶ added in v1.4.0
type MemberSpec struct {
Display MemberDisplay `json:"display"`
}
MemberSpec defines model for MemberSpec.
type MetricSample ¶ added in v1.13.1
type MetricSample = []interface{}
MetricSample defines model for MetricSample.
type MetricSamples ¶ added in v1.13.1
type MetricSamples = []MetricSample
MetricSamples defines model for MetricSamples.
type NameValuePair ¶
NameValuePair defines model for NameValuePair.
type NetworkLevel ¶ added in v1.17.0
type NetworkLevel string
NetworkLevel Controls outbound network access for the sandbox running this thread. - `no_network`: Block all outbound network access. - `trusted_only`: Allow outbound access only to a curated list of trusted addresses. - `full`: No network restrictions.
const ( Full NetworkLevel = "full" NoNetwork NetworkLevel = "no_network" TrustedOnly NetworkLevel = "trusted_only" )
Defines values for NetworkLevel.
func (NetworkLevel) Valid ¶ added in v1.29.0
func (e NetworkLevel) Valid() bool
Valid indicates whether the value is a known member of the NetworkLevel enum.
type NextCursors ¶
type NextCursors struct {
// After The cursor for the next set of results. Omitted when there are no more results after —
// the field is absent rather than null, so a client must treat it as optional and never as
// nullable.
//
// Whether the enclosing `cursors` object is itself omitted on the last page depends on the
// endpoint: some declare it optional and drop it, others declare it required and send it
// empty. Read the endpoint's own schema rather than assuming either.
After *Cursor `json:"after,omitempty"`
// Before The cursor for the previous set of results. Omitted when there are no more results before —
// the field is absent rather than null, so a client must treat it as optional and never as
// nullable.
Before *Cursor `json:"before,omitempty"`
}
NextCursors defines model for NextCursors.
type NotificationChannelAnnotations ¶ added in v1.9.0
type NotificationChannelAnnotations struct {
// Dash0ComcreatedAt Timestamp when the notification channel was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
NotificationChannelAnnotations defines model for NotificationChannelAnnotations.
type NotificationChannelDefinition ¶ added in v1.9.0
type NotificationChannelDefinition struct {
Kind NotificationChannelDefinitionKind `json:"kind"`
Metadata NotificationChannelMetadata `json:"metadata"`
Spec NotificationChannelSpec `json:"spec"`
}
NotificationChannelDefinition A notification channel configuration wrapped in a CRD-like envelope. Follows the Dash0 resource convention with kind/metadata/spec structure.
type NotificationChannelDefinitionKind ¶ added in v1.9.0
type NotificationChannelDefinitionKind string
NotificationChannelDefinitionKind defines model for NotificationChannelDefinition.Kind.
const (
Dash0NotificationChannel NotificationChannelDefinitionKind = "Dash0NotificationChannel"
)
Defines values for NotificationChannelDefinitionKind.
func (NotificationChannelDefinitionKind) Valid ¶ added in v1.29.0
func (e NotificationChannelDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the NotificationChannelDefinitionKind enum.
type NotificationChannelDefinitions ¶ added in v1.9.0
type NotificationChannelDefinitions = []NotificationChannelDefinition
NotificationChannelDefinitions defines model for NotificationChannelDefinitions.
type NotificationChannelLabels ¶ added in v1.9.0
type NotificationChannelLabels struct {
// Dash0Comid Unique internal ID of the notification channel. Set by the server on creation; do not set manually.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for API-managed resources (e.g. the CRD name from an operator or Terraform resource ID). Empty for user-created channels; non-empty for channels created via the internal API.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
NotificationChannelLabels defines model for NotificationChannelLabels.
type NotificationChannelMetadata ¶ added in v1.9.0
type NotificationChannelMetadata struct {
Annotations *NotificationChannelAnnotations `json:"annotations,omitempty"`
Labels *NotificationChannelLabels `json:"labels,omitempty"`
// Name Display name of the notification channel.
Name string `json:"name"`
}
NotificationChannelMetadata defines model for NotificationChannelMetadata.
type NotificationChannelRouting ¶ added in v1.9.0
type NotificationChannelRouting struct {
// Assets **Read-only.** The check rules and synthetic checks that are bound to this channel — a back-reference derived by the server; any value supplied on a write is ignored. To bind a check rule to this channel, set the `dash0.com/notification-channel-ids` annotation on the check rule; to bind a synthetic check, set `spec.notifications.channels` on the synthetic check. A channel bound to a check rule or synthetic check receives every notification for it, regardless of `filters` — unless the binding restricts it to critical, via the `:critical-only` suffix on its entry in the check rule's `dash0.com/notification-channel-ids` annotation, or the synthetic check's `spec.notifications.onlyCriticalChannels`.
Assets []NotificationChannelRoutingAsset `json:"assets"`
// Filters Routing conditions: the channel is notified for any failed check matching at least one condition (conditions are OR-ed; the criteria within one condition are AND-ed). Conditions are evaluated organization-wide — they are not scoped to the assets listed above, and they do not restrict notifications delivered through a direct binding.
Filters []FilterCriteria `json:"filters"`
}
NotificationChannelRouting defines model for NotificationChannelRouting.
type NotificationChannelRoutingAsset ¶ added in v1.9.0
type NotificationChannelRoutingAsset struct {
// Dataset The bound asset's dataset. Populated by the server.
Dataset Dataset `json:"dataset"`
// Id The bound asset's UUID. Populated by the server.
Id string `json:"id"`
// Kind - `check_rule`: the channel is bound to a check rule (via the check rule's `dash0.com/notification-channel-ids` annotation).
// - `synthetic_check`: the channel is bound to a synthetic check (via the synthetic check's `spec.notifications.channels`).
Kind NotificationChannelRoutingAssetKind `json:"kind"`
// Name The bound asset's display name. Populated by the server.
Name string `json:"name"`
}
NotificationChannelRoutingAsset A check rule or synthetic check that is bound to this notification channel. Populated by the server; see `NotificationChannelRouting.assets`.
type NotificationChannelRoutingAssetKind ¶ added in v1.9.0
type NotificationChannelRoutingAssetKind string
NotificationChannelRoutingAssetKind - `check_rule`: the channel is bound to a check rule (via the check rule's `dash0.com/notification-channel-ids` annotation). - `synthetic_check`: the channel is bound to a synthetic check (via the synthetic check's `spec.notifications.channels`).
const ( CheckRule NotificationChannelRoutingAssetKind = "check_rule" SyntheticCheck NotificationChannelRoutingAssetKind = "synthetic_check" )
Defines values for NotificationChannelRoutingAssetKind.
func (NotificationChannelRoutingAssetKind) Valid ¶ added in v1.29.0
func (e NotificationChannelRoutingAssetKind) Valid() bool
Valid indicates whether the value is a known member of the NotificationChannelRoutingAssetKind enum.
type NotificationChannelSpec ¶ added in v1.9.0
type NotificationChannelSpec struct {
// Config The configuration for the channel. Its shape is chosen by `type`:
//
// - `slack`: `SlackConfig`
// - `slack_bot`: `SlackBotConfig`
// - `email`: `EmailConfig`
// - `email_v2`: `EmailV2Config`
// - `webhook`, `prometheus_webhook`, `prometheus_alertmanager`, `betterstack`: `WebhookConfig`
// - `teams_webhook`: `TeamsWebhookConfig`
// - `discord_webhook`: `DiscordWebhookConfig`
// - `google_chat_webhook`: `GoogleChatWebhookConfig`
// - `mattermost_webhook`: `MattermostWebhookConfig`
// - `ilert`: `IlertConfig`
// - `all_quiet`: `AllQuietConfig`
// - `incidentio`: `IncidentIOConfig`
// - `opsgenie`, `jira_service_management_ops`: `OpsgenieConfig`
// - `pagerduty`: `PagerDutyConfig`
Config NotificationChannelSpec_Config `json:"config"`
// Frequency Specifies the channels notification frequency.
Frequency *Duration `json:"frequency,omitempty"`
// Routing Deliberately optional. When this object is null or omitted, no routing changes are made. When it is present, the channel's routing conditions are replaced with `filters`.
// `assets` is read-only and ignored on writes: it is a derived back-reference listing the check rules and synthetic checks that are bound to this channel. To bind a check rule, set the `dash0.com/notification-channel-ids` annotation on the check rule; to bind a synthetic check, set `spec.notifications.channels` on the synthetic check.
Routing *NotificationChannelRouting `json:"routing,omitempty"`
// Type The type of notification channel integration.
Type NotificationChannelType `json:"type"`
}
NotificationChannelSpec defines model for NotificationChannelSpec.
type NotificationChannelSpec_Config ¶ added in v1.9.0
type NotificationChannelSpec_Config struct {
// contains filtered or unexported fields
}
NotificationChannelSpec_Config The configuration for the channel. Its shape is chosen by `type`:
- `slack`: `SlackConfig` - `slack_bot`: `SlackBotConfig` - `email`: `EmailConfig` - `email_v2`: `EmailV2Config` - `webhook`, `prometheus_webhook`, `prometheus_alertmanager`, `betterstack`: `WebhookConfig` - `teams_webhook`: `TeamsWebhookConfig` - `discord_webhook`: `DiscordWebhookConfig` - `google_chat_webhook`: `GoogleChatWebhookConfig` - `mattermost_webhook`: `MattermostWebhookConfig` - `ilert`: `IlertConfig` - `all_quiet`: `AllQuietConfig` - `incidentio`: `IncidentIOConfig` - `opsgenie`, `jira_service_management_ops`: `OpsgenieConfig` - `pagerduty`: `PagerDutyConfig`
func (NotificationChannelSpec_Config) AsAllQuietConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsAllQuietConfig() (AllQuietConfig, error)
AsAllQuietConfig returns the union data inside the NotificationChannelSpec_Config as a AllQuietConfig
func (NotificationChannelSpec_Config) AsDiscordWebhookConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsDiscordWebhookConfig() (DiscordWebhookConfig, error)
AsDiscordWebhookConfig returns the union data inside the NotificationChannelSpec_Config as a DiscordWebhookConfig
func (NotificationChannelSpec_Config) AsEmailConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsEmailConfig() (EmailConfig, error)
AsEmailConfig returns the union data inside the NotificationChannelSpec_Config as a EmailConfig
func (NotificationChannelSpec_Config) AsEmailV2Config ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsEmailV2Config() (EmailV2Config, error)
AsEmailV2Config returns the union data inside the NotificationChannelSpec_Config as a EmailV2Config
func (NotificationChannelSpec_Config) AsGoogleChatWebhookConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsGoogleChatWebhookConfig() (GoogleChatWebhookConfig, error)
AsGoogleChatWebhookConfig returns the union data inside the NotificationChannelSpec_Config as a GoogleChatWebhookConfig
func (NotificationChannelSpec_Config) AsIlertConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsIlertConfig() (IlertConfig, error)
AsIlertConfig returns the union data inside the NotificationChannelSpec_Config as a IlertConfig
func (NotificationChannelSpec_Config) AsIncidentIOConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsIncidentIOConfig() (IncidentIOConfig, error)
AsIncidentIOConfig returns the union data inside the NotificationChannelSpec_Config as a IncidentIOConfig
func (NotificationChannelSpec_Config) AsMattermostWebhookConfig ¶ added in v1.23.0
func (t NotificationChannelSpec_Config) AsMattermostWebhookConfig() (MattermostWebhookConfig, error)
AsMattermostWebhookConfig returns the union data inside the NotificationChannelSpec_Config as a MattermostWebhookConfig
func (NotificationChannelSpec_Config) AsOpsgenieConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsOpsgenieConfig() (OpsgenieConfig, error)
AsOpsgenieConfig returns the union data inside the NotificationChannelSpec_Config as a OpsgenieConfig
func (NotificationChannelSpec_Config) AsPagerDutyConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsPagerDutyConfig() (PagerDutyConfig, error)
AsPagerDutyConfig returns the union data inside the NotificationChannelSpec_Config as a PagerDutyConfig
func (NotificationChannelSpec_Config) AsSlackBotConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsSlackBotConfig() (SlackBotConfig, error)
AsSlackBotConfig returns the union data inside the NotificationChannelSpec_Config as a SlackBotConfig
func (NotificationChannelSpec_Config) AsSlackConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsSlackConfig() (SlackConfig, error)
AsSlackConfig returns the union data inside the NotificationChannelSpec_Config as a SlackConfig
func (NotificationChannelSpec_Config) AsTeamsWebhookConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsTeamsWebhookConfig() (TeamsWebhookConfig, error)
AsTeamsWebhookConfig returns the union data inside the NotificationChannelSpec_Config as a TeamsWebhookConfig
func (NotificationChannelSpec_Config) AsWebhookConfig ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) AsWebhookConfig() (WebhookConfig, error)
AsWebhookConfig returns the union data inside the NotificationChannelSpec_Config as a WebhookConfig
func (*NotificationChannelSpec_Config) FromAllQuietConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromAllQuietConfig(v AllQuietConfig) error
FromAllQuietConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided AllQuietConfig
func (*NotificationChannelSpec_Config) FromDiscordWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromDiscordWebhookConfig(v DiscordWebhookConfig) error
FromDiscordWebhookConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided DiscordWebhookConfig
func (*NotificationChannelSpec_Config) FromEmailConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromEmailConfig(v EmailConfig) error
FromEmailConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided EmailConfig
func (*NotificationChannelSpec_Config) FromEmailV2Config ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromEmailV2Config(v EmailV2Config) error
FromEmailV2Config overwrites any union data inside the NotificationChannelSpec_Config as the provided EmailV2Config
func (*NotificationChannelSpec_Config) FromGoogleChatWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromGoogleChatWebhookConfig(v GoogleChatWebhookConfig) error
FromGoogleChatWebhookConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided GoogleChatWebhookConfig
func (*NotificationChannelSpec_Config) FromIlertConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromIlertConfig(v IlertConfig) error
FromIlertConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided IlertConfig
func (*NotificationChannelSpec_Config) FromIncidentIOConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromIncidentIOConfig(v IncidentIOConfig) error
FromIncidentIOConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided IncidentIOConfig
func (*NotificationChannelSpec_Config) FromMattermostWebhookConfig ¶ added in v1.23.0
func (t *NotificationChannelSpec_Config) FromMattermostWebhookConfig(v MattermostWebhookConfig) error
FromMattermostWebhookConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided MattermostWebhookConfig
func (*NotificationChannelSpec_Config) FromOpsgenieConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromOpsgenieConfig(v OpsgenieConfig) error
FromOpsgenieConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided OpsgenieConfig
func (*NotificationChannelSpec_Config) FromPagerDutyConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromPagerDutyConfig(v PagerDutyConfig) error
FromPagerDutyConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided PagerDutyConfig
func (*NotificationChannelSpec_Config) FromSlackBotConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromSlackBotConfig(v SlackBotConfig) error
FromSlackBotConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided SlackBotConfig
func (*NotificationChannelSpec_Config) FromSlackConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromSlackConfig(v SlackConfig) error
FromSlackConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided SlackConfig
func (*NotificationChannelSpec_Config) FromTeamsWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromTeamsWebhookConfig(v TeamsWebhookConfig) error
FromTeamsWebhookConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided TeamsWebhookConfig
func (*NotificationChannelSpec_Config) FromWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) FromWebhookConfig(v WebhookConfig) error
FromWebhookConfig overwrites any union data inside the NotificationChannelSpec_Config as the provided WebhookConfig
func (NotificationChannelSpec_Config) MarshalJSON ¶ added in v1.9.0
func (t NotificationChannelSpec_Config) MarshalJSON() ([]byte, error)
func (*NotificationChannelSpec_Config) MergeAllQuietConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeAllQuietConfig(v AllQuietConfig) error
MergeAllQuietConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided AllQuietConfig
func (*NotificationChannelSpec_Config) MergeDiscordWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeDiscordWebhookConfig(v DiscordWebhookConfig) error
MergeDiscordWebhookConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided DiscordWebhookConfig
func (*NotificationChannelSpec_Config) MergeEmailConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeEmailConfig(v EmailConfig) error
MergeEmailConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided EmailConfig
func (*NotificationChannelSpec_Config) MergeEmailV2Config ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeEmailV2Config(v EmailV2Config) error
MergeEmailV2Config performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided EmailV2Config
func (*NotificationChannelSpec_Config) MergeGoogleChatWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeGoogleChatWebhookConfig(v GoogleChatWebhookConfig) error
MergeGoogleChatWebhookConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided GoogleChatWebhookConfig
func (*NotificationChannelSpec_Config) MergeIlertConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeIlertConfig(v IlertConfig) error
MergeIlertConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided IlertConfig
func (*NotificationChannelSpec_Config) MergeIncidentIOConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeIncidentIOConfig(v IncidentIOConfig) error
MergeIncidentIOConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided IncidentIOConfig
func (*NotificationChannelSpec_Config) MergeMattermostWebhookConfig ¶ added in v1.23.0
func (t *NotificationChannelSpec_Config) MergeMattermostWebhookConfig(v MattermostWebhookConfig) error
MergeMattermostWebhookConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided MattermostWebhookConfig
func (*NotificationChannelSpec_Config) MergeOpsgenieConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeOpsgenieConfig(v OpsgenieConfig) error
MergeOpsgenieConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided OpsgenieConfig
func (*NotificationChannelSpec_Config) MergePagerDutyConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergePagerDutyConfig(v PagerDutyConfig) error
MergePagerDutyConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided PagerDutyConfig
func (*NotificationChannelSpec_Config) MergeSlackBotConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeSlackBotConfig(v SlackBotConfig) error
MergeSlackBotConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided SlackBotConfig
func (*NotificationChannelSpec_Config) MergeSlackConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeSlackConfig(v SlackConfig) error
MergeSlackConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided SlackConfig
func (*NotificationChannelSpec_Config) MergeTeamsWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeTeamsWebhookConfig(v TeamsWebhookConfig) error
MergeTeamsWebhookConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided TeamsWebhookConfig
func (*NotificationChannelSpec_Config) MergeWebhookConfig ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) MergeWebhookConfig(v WebhookConfig) error
MergeWebhookConfig performs a merge with any union data inside the NotificationChannelSpec_Config, using the provided WebhookConfig
func (*NotificationChannelSpec_Config) UnmarshalJSON ¶ added in v1.9.0
func (t *NotificationChannelSpec_Config) UnmarshalJSON(b []byte) error
type NotificationChannelType ¶ added in v1.9.0
type NotificationChannelType string
NotificationChannelType The type of notification channel integration.
const ( NotificationChannelTypeAllQuiet NotificationChannelType = "all_quiet" NotificationChannelTypeBetterstack NotificationChannelType = "betterstack" NotificationChannelTypeDiscordWebhook NotificationChannelType = "discord_webhook" NotificationChannelTypeEmail NotificationChannelType = "email" NotificationChannelTypeEmailV2 NotificationChannelType = "email_v2" NotificationChannelTypeGoogleChatWebhook NotificationChannelType = "google_chat_webhook" NotificationChannelTypeIlert NotificationChannelType = "ilert" NotificationChannelTypeIncidentio NotificationChannelType = "incidentio" NotificationChannelTypeJiraServiceManagementOps NotificationChannelType = "jira_service_management_ops" NotificationChannelTypeMattermostWebhook NotificationChannelType = "mattermost_webhook" NotificationChannelTypeOpsgenie NotificationChannelType = "opsgenie" NotificationChannelTypePagerduty NotificationChannelType = "pagerduty" NotificationChannelTypePrometheusAlertmanager NotificationChannelType = "prometheus_alertmanager" NotificationChannelTypePrometheusWebhook NotificationChannelType = "prometheus_webhook" NotificationChannelTypeSlack NotificationChannelType = "slack" NotificationChannelTypeSlackBot NotificationChannelType = "slack_bot" NotificationChannelTypeTeamsWebhook NotificationChannelType = "teams_webhook" NotificationChannelTypeWebhook NotificationChannelType = "webhook" )
Defines values for NotificationChannelType.
func (NotificationChannelType) Valid ¶ added in v1.29.0
func (e NotificationChannelType) Valid() bool
Valid indicates whether the value is a known member of the NotificationChannelType enum.
type NumericAssertionOperator ¶
type NumericAssertionOperator string
NumericAssertionOperator defines model for NumericAssertionOperator.
const ( NumericAssertionOperatorGt NumericAssertionOperator = "gt" NumericAssertionOperatorGte NumericAssertionOperator = "gte" NumericAssertionOperatorIs NumericAssertionOperator = "is" NumericAssertionOperatorIsNot NumericAssertionOperator = "is_not" NumericAssertionOperatorIsNotOneOf NumericAssertionOperator = "is_not_one_of" NumericAssertionOperatorIsOneOf NumericAssertionOperator = "is_one_of" NumericAssertionOperatorLt NumericAssertionOperator = "lt" NumericAssertionOperatorLte NumericAssertionOperator = "lte" )
Defines values for NumericAssertionOperator.
func (NumericAssertionOperator) Valid ¶ added in v1.29.0
func (e NumericAssertionOperator) Valid() bool
Valid indicates whether the value is a known member of the NumericAssertionOperator enum.
type OAuthAuthorizationServerMetadata ¶ added in v1.6.0
type OAuthAuthorizationServerMetadata struct {
// AuthorizationEndpoint URL of the authorization endpoint.
AuthorizationEndpoint string `json:"authorization_endpoint"`
// CodeChallengeMethodsSupported List of supported PKCE code challenge methods.
CodeChallengeMethodsSupported *[]OAuthCodeChallengeMethod `json:"code_challenge_methods_supported,omitempty"`
// GrantTypesSupported List of supported grant types.
GrantTypesSupported *[]OAuthGrantType `json:"grant_types_supported,omitempty"`
// IntrospectionEndpoint URL of the token introspection endpoint.
IntrospectionEndpoint *string `json:"introspection_endpoint,omitempty"`
// Issuer The authorization server's issuer identifier (URL).
Issuer string `json:"issuer"`
// RegistrationEndpoint URL of the dynamic client registration endpoint.
RegistrationEndpoint *string `json:"registration_endpoint,omitempty"`
// ResponseTypesSupported List of supported response types.
ResponseTypesSupported []OAuthResponseType `json:"response_types_supported"`
// RevocationEndpoint URL of the token revocation endpoint.
RevocationEndpoint *string `json:"revocation_endpoint,omitempty"`
// ScopesSupported List of scopes supported by the authorization server.
ScopesSupported *[]string `json:"scopes_supported,omitempty"`
// TokenEndpoint URL of the token endpoint.
TokenEndpoint string `json:"token_endpoint"`
// TokenEndpointAuthMethodsSupported List of supported token endpoint authentication methods.
TokenEndpointAuthMethodsSupported *[]OAuthTokenEndpointAuthMethod `json:"token_endpoint_auth_methods_supported,omitempty"`
// UserinfoEndpoint URL of the UserInfo endpoint (OIDC Core § 5.3).
UserinfoEndpoint *string `json:"userinfo_endpoint,omitempty"`
}
OAuthAuthorizationServerMetadata defines model for OAuthAuthorizationServerMetadata.
type OAuthClient ¶ added in v1.15.0
type OAuthClient interface {
// GetAuthorizationServerMetadata retrieves the OAuth 2.0 authorization
// server metadata (RFC 8414) from the well-known endpoint.
GetAuthorizationServerMetadata(ctx context.Context) (*OAuthAuthorizationServerMetadata, error)
// GetProtectedResourceMetadata retrieves the OAuth 2.0 protected resource
// metadata (RFC 9728) from the well-known endpoint.
GetProtectedResourceMetadata(ctx context.Context) (*OAuthProtectedResourceMetadata, error)
// AuthorizeURL builds the OAuth 2.0 authorization URL for the
// authorization code flow with PKCE.
// This method does not make an HTTP call; it constructs the URL from the
// given parameters and the client's API URL.
AuthorizeURL(params *AuthorizeURLParams) (string, error)
// RegisterClient performs OAuth 2.0 dynamic client registration (RFC 7591).
RegisterClient(ctx context.Context, request *OAuthClientRegistrationRequest) (*OAuthClientRegistrationResponse, error)
// ExchangeToken exchanges an authorization code or refresh token for an
// access token at the OAuth 2.0 token endpoint.
// Set [OAuthTokenRequest].GrantType to select the grant type.
// On a 400 response the error is an [*OAuthTokenError] with the structured
// OAuth error fields.
ExchangeToken(ctx context.Context, request *OAuthTokenRequest) (*OAuthTokenResponse, error)
// RevokeToken revokes an access or refresh token (RFC 7009).
RevokeToken(ctx context.Context, request *OAuthRevocationRequest) error
// Close releases resources associated with the client.
// Implementations should at minimum drop idle HTTP connections held by
// the underlying transport; the ctx is reserved for future
// graceful-shutdown work and is currently unused.
Close(ctx context.Context) error
}
OAuthClient provides methods for the Dash0 OAuth 2.0 authorization flow. These endpoints do not require API key authentication. Use NewOAuthClient to create an instance.
For the inputs to OAuthClient.AuthorizeURL and OAuthClient.ExchangeToken, the recommended way to obtain them is:
- GeneratePKCEPair for the PKCE verifier and S256 challenge (RFC 7636).
- GenerateOAuthState for the `state` parameter (RFC 6749 §10.12).
func NewOAuthClient ¶ added in v1.15.0
func NewOAuthClient(opts ...ClientOption) (OAuthClient, error)
NewOAuthClient creates a new OAuth client for the Dash0 API. It accepts a subset of the ClientOption functions used by NewClient; only WithApiUrl, WithHTTPClient, WithTimeout, and WithUserAgent are supported. WithApiUrl is required. Passing any other option (notably WithAuthToken, retry/concurrency tuning, WithTransport, or WithOtlpEndpoint) returns an error so the caller does not silently rely on a no-op.
Example:
client, err := dash0.NewOAuthClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
)
Example ¶
package main
import (
"context"
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
client, err := dash0.NewOAuthClient(
dash0.WithApiUrl("https://api.eu-west-1.aws.dash0.com"),
)
if err != nil {
log.Fatal(err)
}
defer func() { _ = client.Close(context.Background()) }()
fmt.Println(client != nil)
}
Output: true
type OAuthClientRegistrationRequest ¶ added in v1.6.0
type OAuthClientRegistrationRequest struct {
// ClientName Human-readable name of the client.
ClientName string `json:"client_name"`
// ClientUri URL of the client's home page.
ClientUri *string `json:"client_uri,omitempty"`
// GrantTypes Grant types the client intends to use.
GrantTypes *[]OAuthGrantType `json:"grant_types,omitempty"`
// LogoUri URL of the client's logo image.
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of allowed redirect URIs.
RedirectUris []string `json:"redirect_uris"`
// ResponseTypes Response types the client intends to use.
ResponseTypes *[]OAuthResponseType `json:"response_types,omitempty"`
// Scope Space-separated list of scopes the client is requesting.
Scope *string `json:"scope,omitempty"`
// TokenEndpointAuthMethod Defaults to `none` if not specified. Only public clients are supported.
TokenEndpointAuthMethod *OAuthTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
}
OAuthClientRegistrationRequest defines model for OAuthClientRegistrationRequest.
type OAuthClientRegistrationResponse ¶ added in v1.6.0
type OAuthClientRegistrationResponse struct {
// ClientId Unique client identifier issued by the authorization server.
ClientId string `json:"client_id"`
// ClientName Human-readable name of the client.
ClientName string `json:"client_name"`
// ClientUri URL of the client's home page.
ClientUri *string `json:"client_uri,omitempty"`
// GrantTypes Grant types the client is registered for.
GrantTypes *[]OAuthGrantType `json:"grant_types,omitempty"`
// LogoUri URL of the client's logo image.
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of allowed redirect URIs.
RedirectUris []string `json:"redirect_uris"`
// RegistrationAccessToken Token for managing this client registration (RFC 7592).
RegistrationAccessToken string `json:"registration_access_token"`
// ResponseTypes Response types the client is registered for.
ResponseTypes *[]OAuthResponseType `json:"response_types,omitempty"`
// Scope Space-separated list of scopes the client is registered for.
Scope *string `json:"scope,omitempty"`
// TokenEndpointAuthMethod Authentication method for the token endpoint.
TokenEndpointAuthMethod *OAuthTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
}
OAuthClientRegistrationResponse defines model for OAuthClientRegistrationResponse.
type OAuthCodeChallengeMethod ¶ added in v1.6.0
type OAuthCodeChallengeMethod string
OAuthCodeChallengeMethod - `S256`: SHA-256 based code challenge method for PKCE (RFC 7636 section 4.2).
const (
S256 OAuthCodeChallengeMethod = "S256"
)
Defines values for OAuthCodeChallengeMethod.
func (OAuthCodeChallengeMethod) Valid ¶ added in v1.29.0
func (e OAuthCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the OAuthCodeChallengeMethod enum.
type OAuthGrantType ¶ added in v1.6.0
type OAuthGrantType string
OAuthGrantType - `authorization_code`: The standard authorization code grant (RFC 6749 section 4.1). - `refresh_token`: Exchange a refresh token for new tokens (RFC 6749 section 6).
const ( OAuthGrantTypeAuthorizationCode OAuthGrantType = "authorization_code" OAuthGrantTypeRefreshToken OAuthGrantType = "refresh_token" )
Defines values for OAuthGrantType.
func (OAuthGrantType) Valid ¶ added in v1.29.0
func (e OAuthGrantType) Valid() bool
Valid indicates whether the value is a known member of the OAuthGrantType enum.
type OAuthProtectedResourceMetadata ¶ added in v1.6.0
type OAuthProtectedResourceMetadata struct {
// AuthorizationServers Array of authorization server issuer identifiers that can issue tokens accepted by this resource.
AuthorizationServers []string `json:"authorization_servers"`
// BearerMethodsSupported Methods supported for sending bearer tokens to this resource (e.g., "header").
BearerMethodsSupported *[]string `json:"bearer_methods_supported,omitempty"`
// Resource The resource server's resource identifier (its canonical URI).
Resource string `json:"resource"`
// ResourceDocumentation URL of documentation for this protected resource.
ResourceDocumentation *string `json:"resource_documentation,omitempty"`
// ScopesSupported List of scopes supported by this resource server.
ScopesSupported *[]string `json:"scopes_supported,omitempty"`
}
OAuthProtectedResourceMetadata defines model for OAuthProtectedResourceMetadata.
type OAuthResponseType ¶ added in v1.6.0
type OAuthResponseType string
OAuthResponseType - `code`: The authorization code response type (RFC 6749 section 4.1.1).
const (
Code OAuthResponseType = "code"
)
Defines values for OAuthResponseType.
func (OAuthResponseType) Valid ¶ added in v1.29.0
func (e OAuthResponseType) Valid() bool
Valid indicates whether the value is a known member of the OAuthResponseType enum.
type OAuthRevocationRequest ¶ added in v1.6.0
type OAuthRevocationRequest struct {
// ClientId The identifier of the client the token was issued to. RFC 7009 section 2.1 requires the
// revocation request to be authenticated as that client, so a token issued to a different
// client is left untouched (the response is still 200).
ClientId string `json:"client_id"`
// Token The token to be revoked.
Token string `json:"token"`
// TokenTypeHint Hint about the type of the token being revoked. Helps the server optimize lookup.
TokenTypeHint *OAuthTokenType `json:"token_type_hint,omitempty"`
}
OAuthRevocationRequest defines model for OAuthRevocationRequest.
type OAuthTokenEndpointAuthMethod ¶ added in v1.6.0
type OAuthTokenEndpointAuthMethod string
OAuthTokenEndpointAuthMethod - `none`: Public client, no client authentication (used by CLI/MCP clients). Only public clients are supported. This deviates from RFC 7591 which defaults to `client_secret_basic` when omitted.
const (
OAuthTokenEndpointAuthMethodNone OAuthTokenEndpointAuthMethod = "none"
)
Defines values for OAuthTokenEndpointAuthMethod.
func (OAuthTokenEndpointAuthMethod) Valid ¶ added in v1.29.0
func (e OAuthTokenEndpointAuthMethod) Valid() bool
Valid indicates whether the value is a known member of the OAuthTokenEndpointAuthMethod enum.
type OAuthTokenError ¶ added in v1.15.0
type OAuthTokenError struct {
// StatusCode is the HTTP status code (typically 400).
StatusCode int
// Code is the OAuth 2.0 error code (e.g., "invalid_grant",
// "invalid_request").
Code string
// Description is the optional human-readable error description, supplied
// verbatim by the authorization server.
// See the type-level security note.
Description string
// URI is the optional URI identifying a human-readable web page with
// error information, supplied verbatim by the authorization server.
// See the type-level security note.
URI string
}
OAuthTokenError represents an OAuth 2.0 token endpoint error response (RFC 6749 section 5.2). The token endpoint returns a structured error body with an error code, optional description, and optional URI, rather than the generic JSON error format used by other API endpoints.
Security note: the Description and URI fields are returned verbatim by the authorization server and may carry attacker-influenced content if the IdP itself is compromised or operates a relay. Surfaces that auto-render the URI (CLI hyperlinks, log scrapers that follow links) should treat it as untrusted; surfaces that log OAuthTokenError.Error should escape control characters in the description before display.
func (*OAuthTokenError) Error ¶ added in v1.15.0
func (e *OAuthTokenError) Error() string
Error implements the error interface. The format is "dash0 oauth error: <code>[: <description>] (status: <code>)[ (see: <uri>)]", preserving the RFC 6749 §5.2 error_uri field when the IdP provides one.
type OAuthTokenErrorResponse ¶ added in v1.6.0
type OAuthTokenErrorResponse struct {
// Error A single ASCII error code. Standard values include:
// invalid_request, invalid_client, invalid_grant, unauthorized_client,
// unsupported_grant_type, invalid_scope.
Error string `json:"error"`
// ErrorDescription Human-readable description providing additional information.
ErrorDescription *string `json:"error_description,omitempty"`
// ErrorUri URI identifying a human-readable web page with error information.
ErrorUri *string `json:"error_uri,omitempty"`
}
OAuthTokenErrorResponse defines model for OAuthTokenErrorResponse.
type OAuthTokenRequest ¶ added in v1.6.0
type OAuthTokenRequest struct {
// ClientId The client identifier.
ClientId *string `json:"client_id,omitempty"`
// Code The authorization code (required for authorization_code grant).
Code *string `json:"code,omitempty"`
// CodeVerifier PKCE code verifier (required for authorization_code grant). All public clients must use PKCE (RFC 7636).
CodeVerifier *string `json:"code_verifier,omitempty"`
// GrantType - `authorization_code`: The standard authorization code grant (RFC 6749 section 4.1).
// - `refresh_token`: Exchange a refresh token for new tokens (RFC 6749 section 6).
GrantType OAuthGrantType `json:"grant_type"`
// RedirectUri Must match the redirect_uri used in the authorization request (required for authorization_code grant).
RedirectUri *string `json:"redirect_uri,omitempty"`
// RefreshToken The refresh token (required for refresh_token grant).
RefreshToken *string `json:"refresh_token,omitempty"`
// Scope Space-separated list of requested scopes. For refresh_token grant, must be equal to or a subset of the originally granted scopes.
Scope *string `json:"scope,omitempty"`
}
OAuthTokenRequest defines model for OAuthTokenRequest.
type OAuthTokenResponse ¶ added in v1.6.0
type OAuthTokenResponse struct {
// AccessToken The access token issued by the authorization server.
AccessToken string `json:"access_token"`
// DatasetRestriction Whether the list of datasets on an auth token limits what it can reach. Clients must accept
// values they do not recognize.
DatasetRestriction *DatasetRestriction `json:"dataset_restriction,omitempty"`
Datasets *[]string `json:"datasets,omitempty"`
// ExpiresIn Lifetime of the access token in seconds.
ExpiresIn int64 `json:"expires_in"`
// RefreshToken The refresh token for obtaining new access tokens.
RefreshToken *string `json:"refresh_token,omitempty"`
// Scope Space-separated list of granted scopes.
Scope *string `json:"scope,omitempty"`
// TokenType The type of token issued (always "Bearer").
TokenType string `json:"token_type"`
}
OAuthTokenResponse defines model for OAuthTokenResponse.
type OAuthTokenType ¶ added in v1.6.0
type OAuthTokenType string
OAuthTokenType - `access_token`: An OAuth 2.0 access token. - `refresh_token`: An OAuth 2.0 refresh token.
const ( OAuthTokenTypeAccessToken OAuthTokenType = "access_token" OAuthTokenTypeRefreshToken OAuthTokenType = "refresh_token" )
Defines values for OAuthTokenType.
func (OAuthTokenType) Valid ¶ added in v1.29.0
func (e OAuthTokenType) Valid() bool
Valid indicates whether the value is a known member of the OAuthTokenType enum.
type OTTLCondition ¶ added in v1.12.3
type OTTLCondition = string
OTTLCondition The OpenTelemetry Transformation Language (OTTL) is a small, domain-specific programming language intended to process data with OpenTelemetry-native concepts and constructs. An OTTL *Condition* is a boolean expression determining a certain behavior.
OTTL conditions are only valid for specific evaluation contexts: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/ottl/README.md#getting-started
Examples:
- Within the context of telemetry filtering, a condition evaluating to true means that the data should be dropped.
type OpsgenieConfig ¶ added in v1.9.0
type OpsgenieConfig struct {
ApiKey string `json:"apiKey"`
Instance OpsgenieConfigInstance `json:"instance"`
}
OpsgenieConfig defines model for OpsgenieConfig.
type OpsgenieConfigInstance ¶ added in v1.9.0
type OpsgenieConfigInstance string
OpsgenieConfigInstance defines model for OpsgenieConfig.Instance.
const ( Eu OpsgenieConfigInstance = "eu" Us OpsgenieConfigInstance = "us" )
Defines values for OpsgenieConfigInstance.
func (OpsgenieConfigInstance) Valid ¶ added in v1.29.0
func (e OpsgenieConfigInstance) Valid() bool
Valid indicates whether the value is a known member of the OpsgenieConfigInstance enum.
type OrderingCriteria ¶
type OrderingCriteria = []OrderingCriterion
OrderingCriteria Any supported attribute keys to order by.
type OrderingCriterion ¶
type OrderingCriterion struct {
Direction OrderingDirection `json:"direction"`
// Key Any attribute key to order by.
Key OrderingKey `json:"key"`
}
OrderingCriterion Any combination of a supported key to order by and a direction.
type OrderingDirection ¶
type OrderingDirection string
OrderingDirection defines model for OrderingDirection.
const ( Ascending OrderingDirection = "ascending" Descending OrderingDirection = "descending" )
Defines values for OrderingDirection.
func (OrderingDirection) Valid ¶ added in v1.29.0
func (e OrderingDirection) Valid() bool
Valid indicates whether the value is a known member of the OrderingDirection enum.
type OtlpEncoding ¶ added in v1.2.0
type OtlpEncoding string
OtlpEncoding specifies the wire format for OTLP data.
const ( // OtlpEncodingJson is the OTLP/JSON encoding over HTTP. OtlpEncodingJson OtlpEncoding = "otlp/json" )
type PKCEPair ¶ added in v1.15.0
type PKCEPair struct {
Verifier string // pass back to ExchangeToken as CodeVerifier
Challenge string // pass to AuthorizeURL as CodeChallenge with method S256
}
PKCEPair is a freshly-generated PKCE code verifier and the matching S256 code challenge, suitable for an OAuth 2.0 authorization-code-with-PKCE flow (RFC 7636).
func GeneratePKCEPair ¶ added in v1.15.0
GeneratePKCEPair returns a fresh verifier and its S256 challenge per RFC 7636. The verifier is base64url(32 random bytes) — 43 characters, no padding.
Example ¶
package main
import (
"fmt"
"log"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
pair, err := dash0.GeneratePKCEPair()
if err != nil {
log.Fatal(err)
}
// The verifier is base64url(32 random bytes) without padding — 43 chars.
// The S256 challenge is base64url(SHA-256(verifier)) — also 43 chars.
fmt.Println(len(pair.Verifier), len(pair.Challenge))
}
Output: 43 43
type PagerDutyConfig ¶ added in v1.9.0
PagerDutyConfig defines model for PagerDutyConfig.
type PersesDashboard ¶ added in v1.6.0
type PersesDashboard struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata PersesDashboardMetadata `json:"metadata"`
Spec map[string]interface{} `json:"spec"`
}
PersesDashboard represents the Perses Operator PersesDashboard CRD (perses.dev/v1alpha1 and perses.dev/v1alpha2).
type PersesDashboardMetadata ¶ added in v1.6.0
type PersesDashboardMetadata struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}
PersesDashboardMetadata contains metadata for a PersesDashboard.
type PinnedRetentionClass ¶ added in v1.26.0
type PinnedRetentionClass string
PinnedRetentionClass The retention of a signal that is not customer-selectable (metrics, profiling): always 30 days.
const (
PinnedRetentionClassN30d PinnedRetentionClass = "30d"
)
Defines values for PinnedRetentionClass.
func (PinnedRetentionClass) Valid ¶ added in v1.29.0
func (e PinnedRetentionClass) Valid() bool
Valid indicates whether the value is a known member of the PinnedRetentionClass enum.
type PostApiAgent0CustomSkillsJSONRequestBody ¶ added in v1.29.0
type PostApiAgent0CustomSkillsJSONRequestBody = SkillCreateRequest
PostApiAgent0CustomSkillsJSONRequestBody defines body for PostApiAgent0CustomSkills for application/json ContentType.
type PostApiAgent0CustomSkillsResponse ¶ added in v1.29.0
type PostApiAgent0CustomSkillsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiAgent0CustomSkillsResponse ¶ added in v1.29.0
func ParsePostApiAgent0CustomSkillsResponse(rsp *http.Response) (*PostApiAgent0CustomSkillsResponse, error)
ParsePostApiAgent0CustomSkillsResponse parses an HTTP response from a PostApiAgent0CustomSkillsWithResponse call
func (PostApiAgent0CustomSkillsResponse) ContentType ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiAgent0CustomSkillsResponse) GetBody ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiAgent0CustomSkillsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) GetJSON200() *SkillResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiAgent0CustomSkillsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiAgent0CustomSkillsResponse) Status ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAgent0CustomSkillsResponse) StatusCode ¶ added in v1.29.0
func (r PostApiAgent0CustomSkillsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiAgenticWorkflowsJSONRequestBody ¶ added in v1.17.0
type PostApiAgenticWorkflowsJSONRequestBody = AgenticWorkflowCreateRequest
PostApiAgenticWorkflowsJSONRequestBody defines body for PostApiAgenticWorkflows for application/json ContentType.
type PostApiAgenticWorkflowsParams ¶ added in v1.17.0
type PostApiAgenticWorkflowsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiAgenticWorkflowsParams defines parameters for PostApiAgenticWorkflows.
type PostApiAgenticWorkflowsResponse ¶ added in v1.17.0
type PostApiAgenticWorkflowsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgenticWorkflowResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiAgenticWorkflowsResponse ¶ added in v1.17.0
func ParsePostApiAgenticWorkflowsResponse(rsp *http.Response) (*PostApiAgenticWorkflowsResponse, error)
ParsePostApiAgenticWorkflowsResponse parses an HTTP response from a PostApiAgenticWorkflowsWithResponse call
func (PostApiAgenticWorkflowsResponse) ContentType ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiAgenticWorkflowsResponse) GetBody ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiAgenticWorkflowsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) GetJSON200() *AgenticWorkflowResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiAgenticWorkflowsResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiAgenticWorkflowsResponse) GetJSON503 ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (PostApiAgenticWorkflowsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiAgenticWorkflowsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiAgenticWorkflowsResponse) Status ¶ added in v1.17.0
func (r PostApiAgenticWorkflowsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAgenticWorkflowsResponse) StatusCode ¶ added in v1.17.0
func (r PostApiAgenticWorkflowsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiAlertingCheckRulesBulkJSONRequestBody ¶ added in v1.12.1
type PostApiAlertingCheckRulesBulkJSONRequestBody = PrometheusAlertRuleBulkCreateRequest
PostApiAlertingCheckRulesBulkJSONRequestBody defines body for PostApiAlertingCheckRulesBulk for application/json ContentType.
type PostApiAlertingCheckRulesBulkParams ¶ added in v1.12.1
type PostApiAlertingCheckRulesBulkParams struct {
// Dataset The dataset to deploy rules into. Required to prevent accidental deployment to the wrong dataset, so the `Dash0-Dataset` header is not used here.
Dataset Dataset `form:"dataset" json:"dataset"`
}
PostApiAlertingCheckRulesBulkParams defines parameters for PostApiAlertingCheckRulesBulk.
type PostApiAlertingCheckRulesBulkResponse ¶ added in v1.12.1
type PostApiAlertingCheckRulesBulkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRuleBulkCreateResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiAlertingCheckRulesBulkResponse ¶ added in v1.12.1
func ParsePostApiAlertingCheckRulesBulkResponse(rsp *http.Response) (*PostApiAlertingCheckRulesBulkResponse, error)
ParsePostApiAlertingCheckRulesBulkResponse parses an HTTP response from a PostApiAlertingCheckRulesBulkWithResponse call
func (PostApiAlertingCheckRulesBulkResponse) ContentType ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesBulkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiAlertingCheckRulesBulkResponse) GetBody ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesBulkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiAlertingCheckRulesBulkResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesBulkResponse) GetJSON200() *PrometheusAlertRuleBulkCreateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiAlertingCheckRulesBulkResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesBulkResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiAlertingCheckRulesBulkResponse) Status ¶ added in v1.12.1
func (r PostApiAlertingCheckRulesBulkResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAlertingCheckRulesBulkResponse) StatusCode ¶ added in v1.12.1
func (r PostApiAlertingCheckRulesBulkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiAlertingCheckRulesJSONRequestBody ¶
type PostApiAlertingCheckRulesJSONRequestBody = PrometheusAlertRule
PostApiAlertingCheckRulesJSONRequestBody defines body for PostApiAlertingCheckRules for application/json ContentType.
type PostApiAlertingCheckRulesParams ¶
type PostApiAlertingCheckRulesParams struct {
// Dataset The associated dataset.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiAlertingCheckRulesParams defines parameters for PostApiAlertingCheckRules.
type PostApiAlertingCheckRulesResponse ¶
type PostApiAlertingCheckRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiAlertingCheckRulesResponse ¶
func ParsePostApiAlertingCheckRulesResponse(rsp *http.Response) (*PostApiAlertingCheckRulesResponse, error)
ParsePostApiAlertingCheckRulesResponse parses an HTTP response from a PostApiAlertingCheckRulesWithResponse call
func (PostApiAlertingCheckRulesResponse) ContentType ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiAlertingCheckRulesResponse) GetBody ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiAlertingCheckRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesResponse) GetJSON200() *PrometheusAlertRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiAlertingCheckRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiAlertingCheckRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiAlertingCheckRulesResponse) Status ¶
func (r PostApiAlertingCheckRulesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAlertingCheckRulesResponse) StatusCode ¶
func (r PostApiAlertingCheckRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiAuthTokensJSONRequestBody ¶ added in v1.25.0
type PostApiAuthTokensJSONRequestBody = AuthTokenCreateRequest
PostApiAuthTokensJSONRequestBody defines body for PostApiAuthTokens for application/json ContentType.
type PostApiAuthTokensResponse ¶ added in v1.25.0
type PostApiAuthTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthTokenResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiAuthTokensResponse ¶ added in v1.25.0
func ParsePostApiAuthTokensResponse(rsp *http.Response) (*PostApiAuthTokensResponse, error)
ParsePostApiAuthTokensResponse parses an HTTP response from a PostApiAuthTokensWithResponse call
func (PostApiAuthTokensResponse) ContentType ¶ added in v1.29.0
func (r PostApiAuthTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiAuthTokensResponse) GetBody ¶ added in v1.29.0
func (r PostApiAuthTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiAuthTokensResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiAuthTokensResponse) GetJSON200() *AuthTokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiAuthTokensResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiAuthTokensResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiAuthTokensResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiAuthTokensResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiAuthTokensResponse) Status ¶ added in v1.25.0
func (r PostApiAuthTokensResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAuthTokensResponse) StatusCode ¶ added in v1.25.0
func (r PostApiAuthTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiDashboardsJSONRequestBody ¶
type PostApiDashboardsJSONRequestBody = DashboardDefinition
PostApiDashboardsJSONRequestBody defines body for PostApiDashboards for application/json ContentType.
type PostApiDashboardsParams ¶
type PostApiDashboardsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiDashboardsParams defines parameters for PostApiDashboards.
type PostApiDashboardsResponse ¶
type PostApiDashboardsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DashboardDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiDashboardsResponse ¶
func ParsePostApiDashboardsResponse(rsp *http.Response) (*PostApiDashboardsResponse, error)
ParsePostApiDashboardsResponse parses an HTTP response from a PostApiDashboardsWithResponse call
func (PostApiDashboardsResponse) ContentType ¶ added in v1.29.0
func (r PostApiDashboardsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiDashboardsResponse) GetBody ¶ added in v1.29.0
func (r PostApiDashboardsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiDashboardsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiDashboardsResponse) GetJSON200() *DashboardDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiDashboardsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiDashboardsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiDashboardsResponse) Status ¶
func (r PostApiDashboardsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiDashboardsResponse) StatusCode ¶
func (r PostApiDashboardsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiDatasetsJSONRequestBody ¶ added in v1.24.0
type PostApiDatasetsJSONRequestBody = DatasetCreateRequest
PostApiDatasetsJSONRequestBody defines body for PostApiDatasets for application/json ContentType.
type PostApiDatasetsResponse ¶ added in v1.24.0
type PostApiDatasetsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DatasetResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiDatasetsResponse ¶ added in v1.24.0
func ParsePostApiDatasetsResponse(rsp *http.Response) (*PostApiDatasetsResponse, error)
ParsePostApiDatasetsResponse parses an HTTP response from a PostApiDatasetsWithResponse call
func (PostApiDatasetsResponse) ContentType ¶ added in v1.29.0
func (r PostApiDatasetsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiDatasetsResponse) GetBody ¶ added in v1.29.0
func (r PostApiDatasetsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiDatasetsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiDatasetsResponse) GetJSON200() *DatasetResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiDatasetsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiDatasetsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiDatasetsResponse) Status ¶ added in v1.24.0
func (r PostApiDatasetsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiDatasetsResponse) StatusCode ¶ added in v1.24.0
func (r PostApiDatasetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportCheckRuleJSONRequestBody ¶
type PostApiImportCheckRuleJSONRequestBody = PrometheusAlertRule
PostApiImportCheckRuleJSONRequestBody defines body for PostApiImportCheckRule for application/json ContentType.
type PostApiImportCheckRuleParams ¶
type PostApiImportCheckRuleParams struct {
// Dataset The associated dataset.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiImportCheckRuleParams defines parameters for PostApiImportCheckRule.
type PostApiImportCheckRuleResponse ¶
type PostApiImportCheckRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiImportCheckRuleResponse ¶
func ParsePostApiImportCheckRuleResponse(rsp *http.Response) (*PostApiImportCheckRuleResponse, error)
ParsePostApiImportCheckRuleResponse parses an HTTP response from a PostApiImportCheckRuleWithResponse call
func (PostApiImportCheckRuleResponse) ContentType ¶ added in v1.29.0
func (r PostApiImportCheckRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportCheckRuleResponse) GetBody ¶ added in v1.29.0
func (r PostApiImportCheckRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportCheckRuleResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiImportCheckRuleResponse) GetJSON200() *PrometheusAlertRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportCheckRuleResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiImportCheckRuleResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiImportCheckRuleResponse) Status ¶
func (r PostApiImportCheckRuleResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportCheckRuleResponse) StatusCode ¶
func (r PostApiImportCheckRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportCheckRulesJSONRequestBody ¶ added in v1.12.1
type PostApiImportCheckRulesJSONRequestBody = PrometheusAlertRuleBulkCreateRequest
PostApiImportCheckRulesJSONRequestBody defines body for PostApiImportCheckRules for application/json ContentType.
type PostApiImportCheckRulesParams ¶ added in v1.12.1
type PostApiImportCheckRulesParams struct {
// Dataset The associated dataset.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiImportCheckRulesParams defines parameters for PostApiImportCheckRules.
type PostApiImportCheckRulesResponse ¶ added in v1.12.1
type PostApiImportCheckRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRuleBulkCreateResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiImportCheckRulesResponse ¶ added in v1.12.1
func ParsePostApiImportCheckRulesResponse(rsp *http.Response) (*PostApiImportCheckRulesResponse, error)
ParsePostApiImportCheckRulesResponse parses an HTTP response from a PostApiImportCheckRulesWithResponse call
func (PostApiImportCheckRulesResponse) ContentType ¶ added in v1.29.0
func (r PostApiImportCheckRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportCheckRulesResponse) GetBody ¶ added in v1.29.0
func (r PostApiImportCheckRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportCheckRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiImportCheckRulesResponse) GetJSON200() *PrometheusAlertRuleBulkCreateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportCheckRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiImportCheckRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiImportCheckRulesResponse) Status ¶ added in v1.12.1
func (r PostApiImportCheckRulesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportCheckRulesResponse) StatusCode ¶ added in v1.12.1
func (r PostApiImportCheckRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportDashboardJSONRequestBody ¶
type PostApiImportDashboardJSONRequestBody = DashboardDefinition
PostApiImportDashboardJSONRequestBody defines body for PostApiImportDashboard for application/json ContentType.
type PostApiImportDashboardParams ¶
type PostApiImportDashboardParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiImportDashboardParams defines parameters for PostApiImportDashboard.
type PostApiImportDashboardResponse ¶
type PostApiImportDashboardResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DashboardDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiImportDashboardResponse ¶
func ParsePostApiImportDashboardResponse(rsp *http.Response) (*PostApiImportDashboardResponse, error)
ParsePostApiImportDashboardResponse parses an HTTP response from a PostApiImportDashboardWithResponse call
func (PostApiImportDashboardResponse) ContentType ¶ added in v1.29.0
func (r PostApiImportDashboardResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportDashboardResponse) GetBody ¶ added in v1.29.0
func (r PostApiImportDashboardResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportDashboardResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiImportDashboardResponse) GetJSON200() *DashboardDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportDashboardResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiImportDashboardResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiImportDashboardResponse) Status ¶
func (r PostApiImportDashboardResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportDashboardResponse) StatusCode ¶
func (r PostApiImportDashboardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportSyntheticCheckJSONRequestBody ¶
type PostApiImportSyntheticCheckJSONRequestBody = SyntheticCheckDefinition
PostApiImportSyntheticCheckJSONRequestBody defines body for PostApiImportSyntheticCheck for application/json ContentType.
type PostApiImportSyntheticCheckParams ¶
type PostApiImportSyntheticCheckParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiImportSyntheticCheckParams defines parameters for PostApiImportSyntheticCheck.
type PostApiImportSyntheticCheckResponse ¶
type PostApiImportSyntheticCheckResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SyntheticCheckDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiImportSyntheticCheckResponse ¶
func ParsePostApiImportSyntheticCheckResponse(rsp *http.Response) (*PostApiImportSyntheticCheckResponse, error)
ParsePostApiImportSyntheticCheckResponse parses an HTTP response from a PostApiImportSyntheticCheckWithResponse call
func (PostApiImportSyntheticCheckResponse) ContentType ¶ added in v1.29.0
func (r PostApiImportSyntheticCheckResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportSyntheticCheckResponse) GetBody ¶ added in v1.29.0
func (r PostApiImportSyntheticCheckResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportSyntheticCheckResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiImportSyntheticCheckResponse) GetJSON200() *SyntheticCheckDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportSyntheticCheckResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiImportSyntheticCheckResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiImportSyntheticCheckResponse) Status ¶
func (r PostApiImportSyntheticCheckResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportSyntheticCheckResponse) StatusCode ¶
func (r PostApiImportSyntheticCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportViewJSONRequestBody ¶
type PostApiImportViewJSONRequestBody = ViewDefinition
PostApiImportViewJSONRequestBody defines body for PostApiImportView for application/json ContentType.
type PostApiImportViewParams ¶
type PostApiImportViewParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiImportViewParams defines parameters for PostApiImportView.
type PostApiImportViewResponse ¶
type PostApiImportViewResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ViewDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiImportViewResponse ¶
func ParsePostApiImportViewResponse(rsp *http.Response) (*PostApiImportViewResponse, error)
ParsePostApiImportViewResponse parses an HTTP response from a PostApiImportViewWithResponse call
func (PostApiImportViewResponse) ContentType ¶ added in v1.29.0
func (r PostApiImportViewResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportViewResponse) GetBody ¶ added in v1.29.0
func (r PostApiImportViewResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportViewResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiImportViewResponse) GetJSON200() *ViewDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportViewResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiImportViewResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiImportViewResponse) Status ¶
func (r PostApiImportViewResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportViewResponse) StatusCode ¶
func (r PostApiImportViewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiLogsDownloadJSONRequestBody ¶ added in v1.18.1
type PostApiLogsDownloadJSONRequestBody = LogRecordsDownloadRequest
PostApiLogsDownloadJSONRequestBody defines body for PostApiLogsDownload for application/json ContentType.
type PostApiLogsDownloadResponse ¶ added in v1.18.1
type PostApiLogsDownloadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *PostApiLogsDownloadResponse200Headers
}
func ParsePostApiLogsDownloadResponse ¶ added in v1.18.1
func ParsePostApiLogsDownloadResponse(rsp *http.Response) (*PostApiLogsDownloadResponse, error)
ParsePostApiLogsDownloadResponse parses an HTTP response from a PostApiLogsDownloadWithResponse call
func (PostApiLogsDownloadResponse) ContentType ¶ added in v1.29.0
func (r PostApiLogsDownloadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiLogsDownloadResponse) GetBody ¶ added in v1.29.0
func (r PostApiLogsDownloadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiLogsDownloadResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiLogsDownloadResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiLogsDownloadResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiLogsDownloadResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiLogsDownloadResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiLogsDownloadResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiLogsDownloadResponse) Status ¶ added in v1.18.1
func (r PostApiLogsDownloadResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiLogsDownloadResponse) StatusCode ¶ added in v1.18.1
func (r PostApiLogsDownloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiLogsDownloadResponse200Headers ¶ added in v1.29.0
type PostApiLogsDownloadResponse200Headers struct {
ContentDisposition *string
ContentType *string
}
PostApiLogsDownloadResponse200Headers the declared response headers of an HTTP 200 response for PostApiLogsDownload
type PostApiLogsJSONRequestBody ¶
type PostApiLogsJSONRequestBody = GetLogRecordsRequest
PostApiLogsJSONRequestBody defines body for PostApiLogs for application/json ContentType.
type PostApiLogsResponse ¶
type PostApiLogsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetLogRecordsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiLogsResponse ¶
func ParsePostApiLogsResponse(rsp *http.Response) (*PostApiLogsResponse, error)
ParsePostApiLogsResponse parses an HTTP response from a PostApiLogsWithResponse call
func (PostApiLogsResponse) ContentType ¶ added in v1.29.0
func (r PostApiLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiLogsResponse) GetBody ¶ added in v1.29.0
func (r PostApiLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiLogsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiLogsResponse) GetJSON200() *GetLogRecordsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiLogsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiLogsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiLogsResponse) Status ¶
func (r PostApiLogsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiLogsResponse) StatusCode ¶
func (r PostApiLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiMembersJSONRequestBody ¶ added in v1.4.0
type PostApiMembersJSONRequestBody = InviteMemberRequest
PostApiMembersJSONRequestBody defines body for PostApiMembers for application/json ContentType.
type PostApiMembersResponse ¶ added in v1.4.0
type PostApiMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiMembersResponse ¶ added in v1.4.0
func ParsePostApiMembersResponse(rsp *http.Response) (*PostApiMembersResponse, error)
ParsePostApiMembersResponse parses an HTTP response from a PostApiMembersWithResponse call
func (PostApiMembersResponse) ContentType ¶ added in v1.29.0
func (r PostApiMembersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiMembersResponse) GetBody ¶ added in v1.29.0
func (r PostApiMembersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiMembersResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiMembersResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiMembersResponse) Status ¶ added in v1.4.0
func (r PostApiMembersResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiMembersResponse) StatusCode ¶ added in v1.4.0
func (r PostApiMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotificationChannelsJSONRequestBody ¶ added in v1.9.0
type PostApiNotificationChannelsJSONRequestBody = NotificationChannelDefinition
PostApiNotificationChannelsJSONRequestBody defines body for PostApiNotificationChannels for application/json ContentType.
type PostApiNotificationChannelsResponse ¶ added in v1.9.0
type PostApiNotificationChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NotificationChannelDefinition
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiNotificationChannelsResponse ¶ added in v1.9.0
func ParsePostApiNotificationChannelsResponse(rsp *http.Response) (*PostApiNotificationChannelsResponse, error)
ParsePostApiNotificationChannelsResponse parses an HTTP response from a PostApiNotificationChannelsWithResponse call
func (PostApiNotificationChannelsResponse) ContentType ¶ added in v1.29.0
func (r PostApiNotificationChannelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotificationChannelsResponse) GetBody ¶ added in v1.29.0
func (r PostApiNotificationChannelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotificationChannelsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiNotificationChannelsResponse) GetJSON200() *NotificationChannelDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotificationChannelsResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiNotificationChannelsResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiNotificationChannelsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiNotificationChannelsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiNotificationChannelsResponse) Status ¶ added in v1.9.0
func (r PostApiNotificationChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotificationChannelsResponse) StatusCode ¶ added in v1.9.0
func (r PostApiNotificationChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1FormatQueryFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1FormatQueryFormdataRequestBody = PrometheusFormatQueryRequest
PostApiPrometheusApiV1FormatQueryFormdataRequestBody defines body for PostApiPrometheusApiV1FormatQuery for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1FormatQueryJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1FormatQueryJSONRequestBody = PrometheusFormatQueryRequest
PostApiPrometheusApiV1FormatQueryJSONRequestBody defines body for PostApiPrometheusApiV1FormatQuery for application/json ContentType.
type PostApiPrometheusApiV1FormatQueryResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1FormatQueryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusFormatQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1FormatQueryResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1FormatQueryResponse(rsp *http.Response) (*PostApiPrometheusApiV1FormatQueryResponse, error)
ParsePostApiPrometheusApiV1FormatQueryResponse parses an HTTP response from a PostApiPrometheusApiV1FormatQueryWithResponse call
func (PostApiPrometheusApiV1FormatQueryResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1FormatQueryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1FormatQueryResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1FormatQueryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1FormatQueryResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1FormatQueryResponse) GetJSON200() *PrometheusFormatQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1FormatQueryResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1FormatQueryResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1FormatQueryResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1FormatQueryResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1FormatQueryResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1FormatQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1LabelLabelNameValuesFormdataRequestBody defines body for PostApiPrometheusApiV1LabelLabelNameValues for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1LabelLabelNameValuesJSONRequestBody defines body for PostApiPrometheusApiV1LabelLabelNameValues for application/json ContentType.
type PostApiPrometheusApiV1LabelLabelNameValuesResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1LabelLabelNameValuesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusLabelNamesOrValuesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1LabelLabelNameValuesResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1LabelLabelNameValuesResponse(rsp *http.Response) (*PostApiPrometheusApiV1LabelLabelNameValuesResponse, error)
ParsePostApiPrometheusApiV1LabelLabelNameValuesResponse parses an HTTP response from a PostApiPrometheusApiV1LabelLabelNameValuesWithResponse call
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1LabelLabelNameValuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1LabelsFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1LabelsFormdataRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1LabelsFormdataRequestBody defines body for PostApiPrometheusApiV1Labels for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1LabelsJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1LabelsJSONRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1LabelsJSONRequestBody defines body for PostApiPrometheusApiV1Labels for application/json ContentType.
type PostApiPrometheusApiV1LabelsResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1LabelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusLabelNamesOrValuesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1LabelsResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1LabelsResponse(rsp *http.Response) (*PostApiPrometheusApiV1LabelsResponse, error)
ParsePostApiPrometheusApiV1LabelsResponse parses an HTTP response from a PostApiPrometheusApiV1LabelsWithResponse call
func (PostApiPrometheusApiV1LabelsResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1LabelsResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1LabelsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelsResponse) GetJSON200() *PrometheusLabelNamesOrValuesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1LabelsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1LabelsResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1LabelsResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1LabelsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1LabelsResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1LabelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1MetadataFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1MetadataFormdataRequestBody = PrometheusMetadataRequest
PostApiPrometheusApiV1MetadataFormdataRequestBody defines body for PostApiPrometheusApiV1Metadata for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1MetadataJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1MetadataJSONRequestBody = PrometheusMetadataRequest
PostApiPrometheusApiV1MetadataJSONRequestBody defines body for PostApiPrometheusApiV1Metadata for application/json ContentType.
type PostApiPrometheusApiV1MetadataResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1MetadataResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusMetadataResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1MetadataResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1MetadataResponse(rsp *http.Response) (*PostApiPrometheusApiV1MetadataResponse, error)
ParsePostApiPrometheusApiV1MetadataResponse parses an HTTP response from a PostApiPrometheusApiV1MetadataWithResponse call
func (PostApiPrometheusApiV1MetadataResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1MetadataResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1MetadataResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1MetadataResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1MetadataResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1MetadataResponse) GetJSON200() *PrometheusMetadataResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1MetadataResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1MetadataResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1MetadataResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1MetadataResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1MetadataResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1MetadataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1QueryFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1QueryFormdataRequestBody = PrometheusQueryRequest
PostApiPrometheusApiV1QueryFormdataRequestBody defines body for PostApiPrometheusApiV1Query for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1QueryJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1QueryJSONRequestBody = PrometheusQueryRequest
PostApiPrometheusApiV1QueryJSONRequestBody defines body for PostApiPrometheusApiV1Query for application/json ContentType.
type PostApiPrometheusApiV1QueryRangeFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1QueryRangeFormdataRequestBody = PrometheusQueryRangeRequest
PostApiPrometheusApiV1QueryRangeFormdataRequestBody defines body for PostApiPrometheusApiV1QueryRange for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1QueryRangeJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1QueryRangeJSONRequestBody = PrometheusQueryRangeRequest
PostApiPrometheusApiV1QueryRangeJSONRequestBody defines body for PostApiPrometheusApiV1QueryRange for application/json ContentType.
type PostApiPrometheusApiV1QueryRangeResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1QueryRangeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1QueryRangeResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1QueryRangeResponse(rsp *http.Response) (*PostApiPrometheusApiV1QueryRangeResponse, error)
ParsePostApiPrometheusApiV1QueryRangeResponse parses an HTTP response from a PostApiPrometheusApiV1QueryRangeWithResponse call
func (PostApiPrometheusApiV1QueryRangeResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryRangeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1QueryRangeResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryRangeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1QueryRangeResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryRangeResponse) GetJSON200() *PrometheusQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1QueryRangeResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryRangeResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1QueryRangeResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1QueryRangeResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1QueryRangeResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1QueryRangeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1QueryResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1QueryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusQueryResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1QueryResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1QueryResponse(rsp *http.Response) (*PostApiPrometheusApiV1QueryResponse, error)
ParsePostApiPrometheusApiV1QueryResponse parses an HTTP response from a PostApiPrometheusApiV1QueryWithResponse call
func (PostApiPrometheusApiV1QueryResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1QueryResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1QueryResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryResponse) GetJSON200() *PrometheusQueryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1QueryResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1QueryResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1QueryResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1QueryResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1QueryResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1QueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPrometheusApiV1SeriesFormdataRequestBody ¶ added in v1.29.0
type PostApiPrometheusApiV1SeriesFormdataRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1SeriesFormdataRequestBody defines body for PostApiPrometheusApiV1Series for application/x-www-form-urlencoded ContentType.
type PostApiPrometheusApiV1SeriesJSONRequestBody ¶ added in v1.13.1
type PostApiPrometheusApiV1SeriesJSONRequestBody = PrometheusLabelNamesOrValuesRequest
PostApiPrometheusApiV1SeriesJSONRequestBody defines body for PostApiPrometheusApiV1Series for application/json ContentType.
type PostApiPrometheusApiV1SeriesResponse ¶ added in v1.13.1
type PostApiPrometheusApiV1SeriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusSeriesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *PrometheusErrorResponse
}
func ParsePostApiPrometheusApiV1SeriesResponse ¶ added in v1.13.1
func ParsePostApiPrometheusApiV1SeriesResponse(rsp *http.Response) (*PostApiPrometheusApiV1SeriesResponse, error)
ParsePostApiPrometheusApiV1SeriesResponse parses an HTTP response from a PostApiPrometheusApiV1SeriesWithResponse call
func (PostApiPrometheusApiV1SeriesResponse) ContentType ¶ added in v1.29.0
func (r PostApiPrometheusApiV1SeriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiPrometheusApiV1SeriesResponse) GetBody ¶ added in v1.29.0
func (r PostApiPrometheusApiV1SeriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiPrometheusApiV1SeriesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiPrometheusApiV1SeriesResponse) GetJSON200() *PrometheusSeriesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiPrometheusApiV1SeriesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiPrometheusApiV1SeriesResponse) GetJSONDefault() *PrometheusErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiPrometheusApiV1SeriesResponse) Status ¶ added in v1.13.1
func (r PostApiPrometheusApiV1SeriesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPrometheusApiV1SeriesResponse) StatusCode ¶ added in v1.13.1
func (r PostApiPrometheusApiV1SeriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiRecordingRulesJSONRequestBody ¶ added in v1.9.0
type PostApiRecordingRulesJSONRequestBody = generatedPrometheusRule
PostApiRecordingRulesJSONRequestBody defines body for PostApiRecordingRules for application/json ContentType.
type PostApiRecordingRulesParams ¶ added in v1.11.1
type PostApiRecordingRulesParams struct {
// Dataset Target dataset. This parameter, or the `Dash0-Dataset` header when it is absent, overrides `dash0.com/dataset` in `metadata.labels`.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiRecordingRulesParams defines parameters for PostApiRecordingRules.
type PostApiRecordingRulesResponse ¶ added in v1.9.0
type PostApiRecordingRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *generatedPrometheusRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiRecordingRulesResponse ¶ added in v1.9.0
func ParsePostApiRecordingRulesResponse(rsp *http.Response) (*PostApiRecordingRulesResponse, error)
ParsePostApiRecordingRulesResponse parses an HTTP response from a PostApiRecordingRulesWithResponse call
func (PostApiRecordingRulesResponse) ContentType ¶ added in v1.29.0
func (r PostApiRecordingRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiRecordingRulesResponse) GetBody ¶ added in v1.29.0
func (r PostApiRecordingRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiRecordingRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiRecordingRulesResponse) GetJSON200() *generatedPrometheusRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiRecordingRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiRecordingRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiRecordingRulesResponse) Status ¶ added in v1.9.0
func (r PostApiRecordingRulesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiRecordingRulesResponse) StatusCode ¶ added in v1.9.0
func (r PostApiRecordingRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSamplingRulesJSONRequestBody ¶ added in v1.1.0
type PostApiSamplingRulesJSONRequestBody = SamplingRuleCreateRequest
PostApiSamplingRulesJSONRequestBody defines body for PostApiSamplingRules for application/json ContentType.
type PostApiSamplingRulesParams ¶ added in v1.1.0
type PostApiSamplingRulesParams struct {
// Dataset The dataset to write the sampling rule to. It may also be set with the
// `dash0.com/dataset` label in the request body. When only one of the two is set,
// that one is used; when neither is set, the rule is written to the `default` dataset.
// When both are set they must name the same dataset. A request in which they differ
// is deprecated: the label currently wins, and a future release will reject it with 400.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSamplingRulesParams defines parameters for PostApiSamplingRules.
type PostApiSamplingRulesResponse ¶ added in v1.1.0
type PostApiSamplingRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SamplingRuleResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSamplingRulesResponse ¶ added in v1.1.0
func ParsePostApiSamplingRulesResponse(rsp *http.Response) (*PostApiSamplingRulesResponse, error)
ParsePostApiSamplingRulesResponse parses an HTTP response from a PostApiSamplingRulesWithResponse call
func (PostApiSamplingRulesResponse) ContentType ¶ added in v1.29.0
func (r PostApiSamplingRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSamplingRulesResponse) GetBody ¶ added in v1.29.0
func (r PostApiSamplingRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSamplingRulesResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSamplingRulesResponse) GetJSON200() *SamplingRuleResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSamplingRulesResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiSamplingRulesResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSamplingRulesResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSamplingRulesResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSamplingRulesResponse) Status ¶ added in v1.1.0
func (r PostApiSamplingRulesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSamplingRulesResponse) StatusCode ¶ added in v1.1.0
func (r PostApiSamplingRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSignalToMetricsJSONRequestBody ¶ added in v1.9.0
type PostApiSignalToMetricsJSONRequestBody = SignalToMetricsCreateRequest
PostApiSignalToMetricsJSONRequestBody defines body for PostApiSignalToMetrics for application/json ContentType.
type PostApiSignalToMetricsParams ¶ added in v1.9.0
type PostApiSignalToMetricsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSignalToMetricsParams defines parameters for PostApiSignalToMetrics.
type PostApiSignalToMetricsResponse ¶ added in v1.9.0
type PostApiSignalToMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignalToMetricsResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSignalToMetricsResponse ¶ added in v1.9.0
func ParsePostApiSignalToMetricsResponse(rsp *http.Response) (*PostApiSignalToMetricsResponse, error)
ParsePostApiSignalToMetricsResponse parses an HTTP response from a PostApiSignalToMetricsWithResponse call
func (PostApiSignalToMetricsResponse) ContentType ¶ added in v1.29.0
func (r PostApiSignalToMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSignalToMetricsResponse) GetBody ¶ added in v1.29.0
func (r PostApiSignalToMetricsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSignalToMetricsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSignalToMetricsResponse) GetJSON200() *SignalToMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSignalToMetricsResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiSignalToMetricsResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSignalToMetricsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSignalToMetricsResponse) Status ¶ added in v1.9.0
func (r PostApiSignalToMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSignalToMetricsResponse) StatusCode ¶ added in v1.9.0
func (r PostApiSignalToMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSignalToMetricsTestJSONRequestBody ¶ added in v1.12.0
type PostApiSignalToMetricsTestJSONRequestBody = SignalToMetricsTestRequest
PostApiSignalToMetricsTestJSONRequestBody defines body for PostApiSignalToMetricsTest for application/json ContentType.
type PostApiSignalToMetricsTestParams ¶ added in v1.12.0
type PostApiSignalToMetricsTestParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSignalToMetricsTestParams defines parameters for PostApiSignalToMetricsTest.
type PostApiSignalToMetricsTestResponse ¶ added in v1.12.0
type PostApiSignalToMetricsTestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignalToMetricsTestResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSignalToMetricsTestResponse ¶ added in v1.12.0
func ParsePostApiSignalToMetricsTestResponse(rsp *http.Response) (*PostApiSignalToMetricsTestResponse, error)
ParsePostApiSignalToMetricsTestResponse parses an HTTP response from a PostApiSignalToMetricsTestWithResponse call
func (PostApiSignalToMetricsTestResponse) ContentType ¶ added in v1.29.0
func (r PostApiSignalToMetricsTestResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSignalToMetricsTestResponse) GetBody ¶ added in v1.29.0
func (r PostApiSignalToMetricsTestResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSignalToMetricsTestResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSignalToMetricsTestResponse) GetJSON200() *SignalToMetricsTestResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSignalToMetricsTestResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiSignalToMetricsTestResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSignalToMetricsTestResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSignalToMetricsTestResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSignalToMetricsTestResponse) Status ¶ added in v1.12.0
func (r PostApiSignalToMetricsTestResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSignalToMetricsTestResponse) StatusCode ¶ added in v1.12.0
func (r PostApiSignalToMetricsTestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSlosJSONRequestBody ¶ added in v1.14.0
type PostApiSlosJSONRequestBody = SloDefinition
PostApiSlosJSONRequestBody defines body for PostApiSlos for application/json ContentType.
type PostApiSlosOriginOrIdResetParams ¶ added in v1.23.0
type PostApiSlosOriginOrIdResetParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSlosOriginOrIdResetParams defines parameters for PostApiSlosOriginOrIdReset.
type PostApiSlosOriginOrIdResetResponse ¶ added in v1.23.0
type PostApiSlosOriginOrIdResetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SloDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSlosOriginOrIdResetResponse ¶ added in v1.23.0
func ParsePostApiSlosOriginOrIdResetResponse(rsp *http.Response) (*PostApiSlosOriginOrIdResetResponse, error)
ParsePostApiSlosOriginOrIdResetResponse parses an HTTP response from a PostApiSlosOriginOrIdResetWithResponse call
func (PostApiSlosOriginOrIdResetResponse) ContentType ¶ added in v1.29.0
func (r PostApiSlosOriginOrIdResetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSlosOriginOrIdResetResponse) GetBody ¶ added in v1.29.0
func (r PostApiSlosOriginOrIdResetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSlosOriginOrIdResetResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSlosOriginOrIdResetResponse) GetJSON200() *SloDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSlosOriginOrIdResetResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSlosOriginOrIdResetResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSlosOriginOrIdResetResponse) Status ¶ added in v1.23.0
func (r PostApiSlosOriginOrIdResetResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSlosOriginOrIdResetResponse) StatusCode ¶ added in v1.23.0
func (r PostApiSlosOriginOrIdResetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSlosParams ¶ added in v1.14.0
type PostApiSlosParams struct {
// Dataset Target dataset. This parameter, or the `Dash0-Dataset` header when it is absent, overrides `dash0.com/dataset` in `metadata.labels`.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSlosParams defines parameters for PostApiSlos.
type PostApiSlosResponse ¶ added in v1.14.0
type PostApiSlosResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SloDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSlosResponse ¶ added in v1.14.0
func ParsePostApiSlosResponse(rsp *http.Response) (*PostApiSlosResponse, error)
ParsePostApiSlosResponse parses an HTTP response from a PostApiSlosWithResponse call
func (PostApiSlosResponse) ContentType ¶ added in v1.29.0
func (r PostApiSlosResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSlosResponse) GetBody ¶ added in v1.29.0
func (r PostApiSlosResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSlosResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSlosResponse) GetJSON200() *SloDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSlosResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSlosResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSlosResponse) Status ¶ added in v1.14.0
func (r PostApiSlosResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSlosResponse) StatusCode ¶ added in v1.14.0
func (r PostApiSlosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSpamFiltersJSONRequestBody ¶ added in v1.12.0
type PostApiSpamFiltersJSONRequestBody = SpamFilterCreateRequest
PostApiSpamFiltersJSONRequestBody defines body for PostApiSpamFilters for application/json ContentType.
type PostApiSpamFiltersParams ¶ added in v1.12.0
type PostApiSpamFiltersParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSpamFiltersParams defines parameters for PostApiSpamFilters.
type PostApiSpamFiltersResponse ¶ added in v1.12.0
type PostApiSpamFiltersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SpamFilterResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSpamFiltersResponse ¶ added in v1.12.0
func ParsePostApiSpamFiltersResponse(rsp *http.Response) (*PostApiSpamFiltersResponse, error)
ParsePostApiSpamFiltersResponse parses an HTTP response from a PostApiSpamFiltersWithResponse call
func (PostApiSpamFiltersResponse) ContentType ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSpamFiltersResponse) GetBody ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSpamFiltersResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) GetJSON200() *SpamFilterResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSpamFiltersResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSpamFiltersResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSpamFiltersResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSpamFiltersResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSpamFiltersResponse) Status ¶ added in v1.12.0
func (r PostApiSpamFiltersResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSpamFiltersResponse) StatusCode ¶ added in v1.12.0
func (r PostApiSpamFiltersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSpansDownloadJSONRequestBody ¶ added in v1.18.1
type PostApiSpansDownloadJSONRequestBody = SpansDownloadRequest
PostApiSpansDownloadJSONRequestBody defines body for PostApiSpansDownload for application/json ContentType.
type PostApiSpansDownloadResponse ¶ added in v1.18.1
type PostApiSpansDownloadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *PostApiSpansDownloadResponse200Headers
}
func ParsePostApiSpansDownloadResponse ¶ added in v1.18.1
func ParsePostApiSpansDownloadResponse(rsp *http.Response) (*PostApiSpansDownloadResponse, error)
ParsePostApiSpansDownloadResponse parses an HTTP response from a PostApiSpansDownloadWithResponse call
func (PostApiSpansDownloadResponse) ContentType ¶ added in v1.29.0
func (r PostApiSpansDownloadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSpansDownloadResponse) GetBody ¶ added in v1.29.0
func (r PostApiSpansDownloadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSpansDownloadResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiSpansDownloadResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSpansDownloadResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiSpansDownloadResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSpansDownloadResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSpansDownloadResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSpansDownloadResponse) Status ¶ added in v1.18.1
func (r PostApiSpansDownloadResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSpansDownloadResponse) StatusCode ¶ added in v1.18.1
func (r PostApiSpansDownloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSpansDownloadResponse200Headers ¶ added in v1.29.0
type PostApiSpansDownloadResponse200Headers struct {
ContentDisposition *string
ContentType *string
}
PostApiSpansDownloadResponse200Headers the declared response headers of an HTTP 200 response for PostApiSpansDownload
type PostApiSpansJSONRequestBody ¶
type PostApiSpansJSONRequestBody = GetSpansRequest
PostApiSpansJSONRequestBody defines body for PostApiSpans for application/json ContentType.
type PostApiSpansResponse ¶
type PostApiSpansResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetSpansResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSpansResponse ¶
func ParsePostApiSpansResponse(rsp *http.Response) (*PostApiSpansResponse, error)
ParsePostApiSpansResponse parses an HTTP response from a PostApiSpansWithResponse call
func (PostApiSpansResponse) ContentType ¶ added in v1.29.0
func (r PostApiSpansResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSpansResponse) GetBody ¶ added in v1.29.0
func (r PostApiSpansResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSpansResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSpansResponse) GetJSON200() *GetSpansResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSpansResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSpansResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSpansResponse) Status ¶
func (r PostApiSpansResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSpansResponse) StatusCode ¶
func (r PostApiSpansResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSqlJSONRequestBody ¶ added in v1.6.0
type PostApiSqlJSONRequestBody = ExecuteSqlRequest
PostApiSqlJSONRequestBody defines body for PostApiSql for application/json ContentType.
type PostApiSqlResponse ¶ added in v1.6.0
type PostApiSqlResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ExecuteSqlResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSqlResponse ¶ added in v1.6.0
func ParsePostApiSqlResponse(rsp *http.Response) (*PostApiSqlResponse, error)
ParsePostApiSqlResponse parses an HTTP response from a PostApiSqlWithResponse call
func (PostApiSqlResponse) ContentType ¶ added in v1.29.0
func (r PostApiSqlResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSqlResponse) GetBody ¶ added in v1.29.0
func (r PostApiSqlResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSqlResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSqlResponse) GetJSON200() *ExecuteSqlResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSqlResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSqlResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSqlResponse) Status ¶ added in v1.6.0
func (r PostApiSqlResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSqlResponse) StatusCode ¶ added in v1.6.0
func (r PostApiSqlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSyntheticChecksJSONRequestBody ¶
type PostApiSyntheticChecksJSONRequestBody = SyntheticCheckDefinition
PostApiSyntheticChecksJSONRequestBody defines body for PostApiSyntheticChecks for application/json ContentType.
type PostApiSyntheticChecksParams ¶
type PostApiSyntheticChecksParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiSyntheticChecksParams defines parameters for PostApiSyntheticChecks.
type PostApiSyntheticChecksResponse ¶
type PostApiSyntheticChecksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SyntheticCheckDefinition
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSyntheticChecksResponse ¶
func ParsePostApiSyntheticChecksResponse(rsp *http.Response) (*PostApiSyntheticChecksResponse, error)
ParsePostApiSyntheticChecksResponse parses an HTTP response from a PostApiSyntheticChecksWithResponse call
func (PostApiSyntheticChecksResponse) ContentType ¶ added in v1.29.0
func (r PostApiSyntheticChecksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSyntheticChecksResponse) GetBody ¶ added in v1.29.0
func (r PostApiSyntheticChecksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSyntheticChecksResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSyntheticChecksResponse) GetJSON200() *SyntheticCheckDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSyntheticChecksResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiSyntheticChecksResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSyntheticChecksResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSyntheticChecksResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSyntheticChecksResponse) Status ¶
func (r PostApiSyntheticChecksResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSyntheticChecksResponse) StatusCode ¶
func (r PostApiSyntheticChecksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSyntheticChecksTestJSONRequestBody ¶ added in v1.4.0
type PostApiSyntheticChecksTestJSONRequestBody = TestSyntheticCheckRequest
PostApiSyntheticChecksTestJSONRequestBody defines body for PostApiSyntheticChecksTest for application/json ContentType.
type PostApiSyntheticChecksTestResponse ¶ added in v1.4.0
type PostApiSyntheticChecksTestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TestSyntheticCheckResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiSyntheticChecksTestResponse ¶ added in v1.4.0
func ParsePostApiSyntheticChecksTestResponse(rsp *http.Response) (*PostApiSyntheticChecksTestResponse, error)
ParsePostApiSyntheticChecksTestResponse parses an HTTP response from a PostApiSyntheticChecksTestWithResponse call
func (PostApiSyntheticChecksTestResponse) ContentType ¶ added in v1.29.0
func (r PostApiSyntheticChecksTestResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSyntheticChecksTestResponse) GetBody ¶ added in v1.29.0
func (r PostApiSyntheticChecksTestResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSyntheticChecksTestResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiSyntheticChecksTestResponse) GetJSON200() *TestSyntheticCheckResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSyntheticChecksTestResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiSyntheticChecksTestResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiSyntheticChecksTestResponse) Status ¶ added in v1.4.0
func (r PostApiSyntheticChecksTestResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSyntheticChecksTestResponse) StatusCode ¶ added in v1.4.0
func (r PostApiSyntheticChecksTestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTeamsJSONRequestBody ¶ added in v1.4.0
type PostApiTeamsJSONRequestBody = TeamDefinitionV1Alpha1
PostApiTeamsJSONRequestBody defines body for PostApiTeams for application/json ContentType.
type PostApiTeamsOriginOrIdMembersJSONRequestBody ¶ added in v1.4.0
type PostApiTeamsOriginOrIdMembersJSONRequestBody = AddTeamMembersRequest
PostApiTeamsOriginOrIdMembersJSONRequestBody defines body for PostApiTeamsOriginOrIdMembers for application/json ContentType.
type PostApiTeamsOriginOrIdMembersResponse ¶ added in v1.4.0
type PostApiTeamsOriginOrIdMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTeamsOriginOrIdMembersResponse ¶ added in v1.4.0
func ParsePostApiTeamsOriginOrIdMembersResponse(rsp *http.Response) (*PostApiTeamsOriginOrIdMembersResponse, error)
ParsePostApiTeamsOriginOrIdMembersResponse parses an HTTP response from a PostApiTeamsOriginOrIdMembersWithResponse call
func (PostApiTeamsOriginOrIdMembersResponse) ContentType ¶ added in v1.29.0
func (r PostApiTeamsOriginOrIdMembersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTeamsOriginOrIdMembersResponse) GetBody ¶ added in v1.29.0
func (r PostApiTeamsOriginOrIdMembersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTeamsOriginOrIdMembersResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTeamsOriginOrIdMembersResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTeamsOriginOrIdMembersResponse) Status ¶ added in v1.4.0
func (r PostApiTeamsOriginOrIdMembersResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTeamsOriginOrIdMembersResponse) StatusCode ¶ added in v1.4.0
func (r PostApiTeamsOriginOrIdMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTeamsResponse ¶ added in v1.4.0
type PostApiTeamsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TeamDefinitionV1Alpha1
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTeamsResponse ¶ added in v1.4.0
func ParsePostApiTeamsResponse(rsp *http.Response) (*PostApiTeamsResponse, error)
ParsePostApiTeamsResponse parses an HTTP response from a PostApiTeamsWithResponse call
func (PostApiTeamsResponse) ContentType ¶ added in v1.29.0
func (r PostApiTeamsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTeamsResponse) GetBody ¶ added in v1.29.0
func (r PostApiTeamsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTeamsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiTeamsResponse) GetJSON200() *TeamDefinitionV1Alpha1
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiTeamsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTeamsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTeamsResponse) Status ¶ added in v1.4.0
func (r PostApiTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTeamsResponse) StatusCode ¶ added in v1.4.0
func (r PostApiTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTimeSeriesAggregationsJSONRequestBody ¶ added in v1.17.0
type PostApiTimeSeriesAggregationsJSONRequestBody = TimeSeriesAggregationDefinition
PostApiTimeSeriesAggregationsJSONRequestBody defines body for PostApiTimeSeriesAggregations for application/json ContentType.
type PostApiTimeSeriesAggregationsParams ¶ added in v1.17.0
type PostApiTimeSeriesAggregationsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiTimeSeriesAggregationsParams defines parameters for PostApiTimeSeriesAggregations.
type PostApiTimeSeriesAggregationsResponse ¶ added in v1.17.0
type PostApiTimeSeriesAggregationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TimeSeriesAggregationDefinition
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTimeSeriesAggregationsResponse ¶ added in v1.17.0
func ParsePostApiTimeSeriesAggregationsResponse(rsp *http.Response) (*PostApiTimeSeriesAggregationsResponse, error)
ParsePostApiTimeSeriesAggregationsResponse parses an HTTP response from a PostApiTimeSeriesAggregationsWithResponse call
func (PostApiTimeSeriesAggregationsResponse) ContentType ¶ added in v1.29.0
func (r PostApiTimeSeriesAggregationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTimeSeriesAggregationsResponse) GetBody ¶ added in v1.29.0
func (r PostApiTimeSeriesAggregationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTimeSeriesAggregationsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiTimeSeriesAggregationsResponse) GetJSON200() *TimeSeriesAggregationDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiTimeSeriesAggregationsResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiTimeSeriesAggregationsResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiTimeSeriesAggregationsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTimeSeriesAggregationsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTimeSeriesAggregationsResponse) Status ¶ added in v1.17.0
func (r PostApiTimeSeriesAggregationsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTimeSeriesAggregationsResponse) StatusCode ¶ added in v1.17.0
func (r PostApiTimeSeriesAggregationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTopologyJSONRequestBody ¶ added in v1.28.0
type PostApiTopologyJSONRequestBody = GetTopologyRequest
PostApiTopologyJSONRequestBody defines body for PostApiTopology for application/json ContentType.
type PostApiTopologyResponse ¶ added in v1.28.0
type PostApiTopologyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TopologyResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTopologyResponse ¶ added in v1.28.0
func ParsePostApiTopologyResponse(rsp *http.Response) (*PostApiTopologyResponse, error)
ParsePostApiTopologyResponse parses an HTTP response from a PostApiTopologyWithResponse call
func (PostApiTopologyResponse) ContentType ¶ added in v1.29.0
func (r PostApiTopologyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTopologyResponse) GetBody ¶ added in v1.29.0
func (r PostApiTopologyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTopologyResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiTopologyResponse) GetJSON200() *TopologyResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiTopologyResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTopologyResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTopologyResponse) Status ¶ added in v1.28.0
func (r PostApiTopologyResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTopologyResponse) StatusCode ¶ added in v1.28.0
func (r PostApiTopologyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTraceDetailsJSONRequestBody ¶ added in v1.12.0
type PostApiTraceDetailsJSONRequestBody = GetTraceRequest
PostApiTraceDetailsJSONRequestBody defines body for PostApiTraceDetails for application/json ContentType.
type PostApiTraceDetailsResponse ¶ added in v1.12.0
type PostApiTraceDetailsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetTraceResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTraceDetailsResponse ¶ added in v1.12.0
func ParsePostApiTraceDetailsResponse(rsp *http.Response) (*PostApiTraceDetailsResponse, error)
ParsePostApiTraceDetailsResponse parses an HTTP response from a PostApiTraceDetailsWithResponse call
func (PostApiTraceDetailsResponse) ContentType ¶ added in v1.29.0
func (r PostApiTraceDetailsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTraceDetailsResponse) GetBody ¶ added in v1.29.0
func (r PostApiTraceDetailsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTraceDetailsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiTraceDetailsResponse) GetJSON200() *GetTraceResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiTraceDetailsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTraceDetailsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTraceDetailsResponse) Status ¶ added in v1.12.0
func (r PostApiTraceDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTraceDetailsResponse) StatusCode ¶ added in v1.12.0
func (r PostApiTraceDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTraceIdsJSONRequestBody ¶ added in v1.12.1
type PostApiTraceIdsJSONRequestBody = GetTraceIdsRequest
PostApiTraceIdsJSONRequestBody defines body for PostApiTraceIds for application/json ContentType.
type PostApiTraceIdsResponse ¶ added in v1.12.1
type PostApiTraceIdsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetTraceIdsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiTraceIdsResponse ¶ added in v1.12.1
func ParsePostApiTraceIdsResponse(rsp *http.Response) (*PostApiTraceIdsResponse, error)
ParsePostApiTraceIdsResponse parses an HTTP response from a PostApiTraceIdsWithResponse call
func (PostApiTraceIdsResponse) ContentType ¶ added in v1.29.0
func (r PostApiTraceIdsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTraceIdsResponse) GetBody ¶ added in v1.29.0
func (r PostApiTraceIdsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTraceIdsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiTraceIdsResponse) GetJSON200() *GetTraceIdsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiTraceIdsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiTraceIdsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiTraceIdsResponse) Status ¶ added in v1.12.1
func (r PostApiTraceIdsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTraceIdsResponse) StatusCode ¶ added in v1.12.1
func (r PostApiTraceIdsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiViewsJSONRequestBody ¶
type PostApiViewsJSONRequestBody = ViewDefinition
PostApiViewsJSONRequestBody defines body for PostApiViews for application/json ContentType.
type PostApiViewsParams ¶
type PostApiViewsParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PostApiViewsParams defines parameters for PostApiViews.
type PostApiViewsResponse ¶
type PostApiViewsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ViewDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostApiViewsResponse ¶
func ParsePostApiViewsResponse(rsp *http.Response) (*PostApiViewsResponse, error)
ParsePostApiViewsResponse parses an HTTP response from a PostApiViewsWithResponse call
func (PostApiViewsResponse) ContentType ¶ added in v1.29.0
func (r PostApiViewsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiViewsResponse) GetBody ¶ added in v1.29.0
func (r PostApiViewsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiViewsResponse) GetJSON200 ¶ added in v1.29.0
func (r PostApiViewsResponse) GetJSON200() *ViewDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiViewsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiViewsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiViewsResponse) Status ¶
func (r PostApiViewsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiViewsResponse) StatusCode ¶
func (r PostApiViewsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiWebEventsDownloadJSONRequestBody ¶ added in v1.18.1
type PostApiWebEventsDownloadJSONRequestBody = WebEventsDownloadRequest
PostApiWebEventsDownloadJSONRequestBody defines body for PostApiWebEventsDownload for application/json ContentType.
type PostApiWebEventsDownloadResponse ¶ added in v1.18.1
type PostApiWebEventsDownloadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *PostApiWebEventsDownloadResponse200Headers
}
func ParsePostApiWebEventsDownloadResponse ¶ added in v1.18.1
func ParsePostApiWebEventsDownloadResponse(rsp *http.Response) (*PostApiWebEventsDownloadResponse, error)
ParsePostApiWebEventsDownloadResponse parses an HTTP response from a PostApiWebEventsDownloadWithResponse call
func (PostApiWebEventsDownloadResponse) ContentType ¶ added in v1.29.0
func (r PostApiWebEventsDownloadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiWebEventsDownloadResponse) GetBody ¶ added in v1.29.0
func (r PostApiWebEventsDownloadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiWebEventsDownloadResponse) GetJSON400 ¶ added in v1.29.0
func (r PostApiWebEventsDownloadResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiWebEventsDownloadResponse) GetJSON403 ¶ added in v1.29.0
func (r PostApiWebEventsDownloadResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiWebEventsDownloadResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostApiWebEventsDownloadResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostApiWebEventsDownloadResponse) Status ¶ added in v1.18.1
func (r PostApiWebEventsDownloadResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiWebEventsDownloadResponse) StatusCode ¶ added in v1.18.1
func (r PostApiWebEventsDownloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiWebEventsDownloadResponse200Headers ¶ added in v1.29.0
type PostApiWebEventsDownloadResponse200Headers struct {
ContentDisposition *string
ContentType *string
}
PostApiWebEventsDownloadResponse200Headers the declared response headers of an HTTP 200 response for PostApiWebEventsDownload
type PostOauthRegisterJSONRequestBody ¶ added in v1.6.0
type PostOauthRegisterJSONRequestBody = OAuthClientRegistrationRequest
PostOauthRegisterJSONRequestBody defines body for PostOauthRegister for application/json ContentType.
type PostOauthRegisterResponse ¶ added in v1.6.0
type PostOauthRegisterResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *OAuthClientRegistrationResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostOauthRegisterResponse ¶ added in v1.6.0
func ParsePostOauthRegisterResponse(rsp *http.Response) (*PostOauthRegisterResponse, error)
ParsePostOauthRegisterResponse parses an HTTP response from a PostOauthRegisterWithResponse call
func (PostOauthRegisterResponse) ContentType ¶ added in v1.29.0
func (r PostOauthRegisterResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostOauthRegisterResponse) GetBody ¶ added in v1.29.0
func (r PostOauthRegisterResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostOauthRegisterResponse) GetJSON201 ¶ added in v1.29.0
func (r PostOauthRegisterResponse) GetJSON201() *OAuthClientRegistrationResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostOauthRegisterResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostOauthRegisterResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostOauthRegisterResponse) Status ¶ added in v1.6.0
func (r PostOauthRegisterResponse) Status() string
Status returns HTTPResponse.Status
func (PostOauthRegisterResponse) StatusCode ¶ added in v1.6.0
func (r PostOauthRegisterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOauthRevokeFormdataRequestBody ¶ added in v1.6.0
type PostOauthRevokeFormdataRequestBody = OAuthRevocationRequest
PostOauthRevokeFormdataRequestBody defines body for PostOauthRevoke for application/x-www-form-urlencoded ContentType.
type PostOauthRevokeResponse ¶ added in v1.6.0
type PostOauthRevokeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *OAuthTokenErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostOauthRevokeResponse ¶ added in v1.6.0
func ParsePostOauthRevokeResponse(rsp *http.Response) (*PostOauthRevokeResponse, error)
ParsePostOauthRevokeResponse parses an HTTP response from a PostOauthRevokeWithResponse call
func (PostOauthRevokeResponse) ContentType ¶ added in v1.29.0
func (r PostOauthRevokeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostOauthRevokeResponse) GetBody ¶ added in v1.29.0
func (r PostOauthRevokeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostOauthRevokeResponse) GetJSON400 ¶ added in v1.29.0
func (r PostOauthRevokeResponse) GetJSON400() *OAuthTokenErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostOauthRevokeResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostOauthRevokeResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostOauthRevokeResponse) Status ¶ added in v1.6.0
func (r PostOauthRevokeResponse) Status() string
Status returns HTTPResponse.Status
func (PostOauthRevokeResponse) StatusCode ¶ added in v1.6.0
func (r PostOauthRevokeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOauthTokenFormdataRequestBody ¶ added in v1.6.0
type PostOauthTokenFormdataRequestBody = OAuthTokenRequest
PostOauthTokenFormdataRequestBody defines body for PostOauthToken for application/x-www-form-urlencoded ContentType.
type PostOauthTokenResponse ¶ added in v1.6.0
type PostOauthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OAuthTokenResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *OAuthTokenErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePostOauthTokenResponse ¶ added in v1.6.0
func ParsePostOauthTokenResponse(rsp *http.Response) (*PostOauthTokenResponse, error)
ParsePostOauthTokenResponse parses an HTTP response from a PostOauthTokenWithResponse call
func (PostOauthTokenResponse) ContentType ¶ added in v1.29.0
func (r PostOauthTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostOauthTokenResponse) GetBody ¶ added in v1.29.0
func (r PostOauthTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostOauthTokenResponse) GetJSON200 ¶ added in v1.29.0
func (r PostOauthTokenResponse) GetJSON200() *OAuthTokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostOauthTokenResponse) GetJSON400 ¶ added in v1.29.0
func (r PostOauthTokenResponse) GetJSON400() *OAuthTokenErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostOauthTokenResponse) GetJSONDefault ¶ added in v1.29.0
func (r PostOauthTokenResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PostOauthTokenResponse) Status ¶ added in v1.6.0
func (r PostOauthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (PostOauthTokenResponse) StatusCode ¶ added in v1.6.0
func (r PostOauthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Progress ¶ added in v1.6.0
type Progress struct {
BytesRead uint64 `json:"bytesRead"`
ExecutionTimeMillis uint64 `json:"executionTimeMillis"`
RowsRead uint64 `json:"rowsRead"`
TotalRowsToRead uint64 `json:"totalRowsToRead"`
}
Progress defines model for Progress.
type PrometheusAlertRule ¶
type PrometheusAlertRule struct {
// Annotations Annotations are key-value pairs that can be used to add additional metadata to a check. They map
// to Prometheus alerting rules' "annotations" field.
//
// The "summary" and "description" annotations are expected and are used as the human-readable
// summary and description of the check rule.
Annotations *PrometheusAlertRule_Annotations `json:"annotations,omitempty"`
// Dataset The dataset the check rule belongs to. On create, update and import, the `dataset` query parameter, or the `Dash0-Dataset` header when the parameter is absent, wins over this field.
Dataset *Dataset `json:"dataset,omitempty"`
// Enabled A boolean flag to enable or disable the check rule. When a check rule is disabled, it will not be
// evaluated, and no check evaluations will be created. This field is optional and defaults to true.
Enabled *bool `json:"enabled,omitempty"`
// Expression An editable PromQL expression that can leverage the complete Dash0 Query Language. It furthermore
// supports a variable called $__threshold.
//
// - `$__threshold` can be used as a placeholder for both the degraded and failed thresholds. The
// thresholds are defined in the thresholds field. When `$__threshold` is used in the expression,
// the `thresholds` field is required and at least one of the thresholds must be defined.
//
// Usage of `$__threshold` implies that the PromQL expression may have to be evaluated up to two
// times using the degraded threshold and critical threshold respectively.
//
// - Top-level AND statements are treated as enablement conditions that specify when the check should
// "be running", i.e., is active. The use-cases for enablement conditions are several, e.g., requiring
// a minimum amount of requests being served before triggering due to errors rates,
// maintenance windows or muted timeframes.
Expression string `json:"expression"`
// For For, also called "pending duration", specifies a time duration for how long the expression must
// have been continuously satisfied before a check evaluation is created. When the check evaluation
// is created, its "start" timestamp is set to the instant the pending duration started elapsing.
//
// This is effectively equivalent to the "for" configuration in Prometheus alerting rules.
//
// Default value is 0s, meaning that the check would transition immediately into one of the degraded
// or critical states at the first failed evaluation.
//
// If for is not set to 0s (or equivalent, like 0m), its value must be larger than or equal to that
// of evaluationFrequency, as it does not make sense to expect the status of a check to change without another
// evaluation having occurred.
For *Duration `json:"for,omitempty"`
// Id User defined id for getting/updating/deleting the alert rule through the API.
Id *string `json:"id,omitempty"`
// Interval Specifies a check evaluation frequency.
Interval *Duration `json:"interval,omitempty"`
// KeepFiringFor Keep firing for, also called "resolution duration", that specifies a time duration for how long
// the evaluation of the expression must be consistently healthy before an critical or degraded check
// enters the healthy state, or de-escalates from critical to degraded.
//
// This is effectively equivalent to the "keep_firing_for" configuration in Prometheus alerting rules.
//
// Default value is 0s, meaning that the check would transition immediately into the healthy state at
// the first successful evaluation.
//
// If keep_firing_for is not set to 0s (or equivalent, like 0m), its value must be larger than or equal
// to that of evaluationFrequency, as it does not make sense to expect the status of a check to change
// without another evaluation having occurred.
KeepFiringFor *Duration `json:"keep_firing_for,omitempty"`
// Labels Label are key-value pairs that can be used to add additional metadata to a check. They map
// to Prometheus alerting rules' "labels" field.
Labels *map[string]string `json:"labels,omitempty"`
// Metadata Server-populated metadata for the alert rule. Read-only on responses; ignored on write.
Metadata *PrometheusAlertRuleMetadata `json:"metadata,omitempty"`
// Name Human-readable name for the check. Dash0 does not expand templates in the name. Use the summary for a title that names each failing series. In Prometheus alerting rules this is called "alert".
Name string `json:"name"`
// Thresholds Thresholds to use for the `$__threshold` variable in the expression field.
//
// By default `degraded` and `failed` are absolute values. The optional `baseline` and
// `changeGate` sub-objects are detector configuration: **the presence of one of them is the
// discriminator** that changes how `degraded` and `failed` are interpreted.
//
// - Neither present: `degraded` and `failed` are absolute values compared against the
// expression's own value, as they always have been.
// - `baseline` present: `degraded` and `failed` are re-interpreted as z-score cutoffs —
// multiples of the watched entity's own typical spread away from its prediction — rather
// than as absolute values. Each configured cutoff must be greater than `0` and less than
// `1000000`, the detector score cap.
// - `changeGate` present: `degraded` and `failed` stay absolute, but the check additionally
// requires the value to have become materially worse than it recently was before it fails.
//
// At most one of `baseline` and `changeGate` may be set. A request setting both is rejected
// with a `400`; the mutual exclusion is enforced by the server rather than by this schema,
// matching the existing treatment of `metric` versus `servicesMetricQuery`.
Thresholds *CheckThresholds `json:"thresholds,omitempty"`
}
PrometheusAlertRule Check rules represent a periodically evaluated expression to determine the health of a resource. The result of the evaluation are zero or more CheckEvaluations.
func ConvertPrometheusRuleToPrometheusAlertRule ¶ added in v1.6.0
func ConvertPrometheusRuleToPrometheusAlertRule(rule *PrometheusRule, groupInterval time.Duration, ruleID string) (*PrometheusAlertRule, error)
ConvertPrometheusRuleToPrometheusAlertRule converts a Prometheus alerting rule to a Dash0 CheckRule. It extracts Dash0-specific annotations (thresholds, enabled flag) from the rule annotations and maps them to dedicated fields on the returned rule. It returns an error for non-numeric thresholds or malformed detector annotations.
type PrometheusAlertRuleApiListItem ¶
type PrometheusAlertRuleApiListItem struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset Dataset `json:"dataset"`
// Id The unique identifier of the check rule.
//
// For backward compatibility, this field is also filled with the origin, if it exists.
// However in a future version, this field will only return the actual check rule ID.
Id string `json:"id"`
// Name Human-readable name for the check. Dash0 does not expand templates in the name. Use the summary for a title that names each failing series. In Prometheus alerting rules this is called "alert".
Name *string `json:"name,omitempty"`
// Origin User defined origin for getting/updating/deleting the alert rule through the API.
Origin *string `json:"origin,omitempty"`
// Source Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Source *CrdSource `json:"source,omitempty"`
}
PrometheusAlertRuleApiListItem The ID, origin, dataset, and the name of a check rule.
type PrometheusAlertRuleBulkCreateRequest ¶ added in v1.12.1
type PrometheusAlertRuleBulkCreateRequest struct {
Items []PrometheusAlertRule `json:"items"`
}
PrometheusAlertRuleBulkCreateRequest defines model for PrometheusAlertRuleBulkCreateRequest.
type PrometheusAlertRuleBulkCreateResponse ¶ added in v1.12.1
type PrometheusAlertRuleBulkCreateResponse struct {
// Created Number of check rules that were newly created.
Created int `json:"created"`
}
PrometheusAlertRuleBulkCreateResponse defines model for PrometheusAlertRuleBulkCreateResponse.
type PrometheusAlertRuleMetadata ¶ added in v1.12.0
type PrometheusAlertRuleMetadata struct {
// Annotations Server-populated annotations that apply to the alert-rule resource itself, not to the
// emitted alert. Read-only on responses; ignored on write if a valid date-time.
Annotations *PrometheusAlertRuleMetadataAnnotations `json:"annotations,omitempty"`
// Labels Server-derived labels that apply to the alert-rule resource itself, not to the
// emitted alert. Currently includes `dash0.com/source` when the origin is known; see
// the `CrdSource` enum for the values it can take.
Labels *PrometheusAlertRuleMetadataLabels `json:"labels,omitempty"`
}
PrometheusAlertRuleMetadata Server-populated metadata for the alert rule. Read-only on responses; ignored on write.
type PrometheusAlertRuleMetadataAnnotations ¶ added in v1.25.0
type PrometheusAlertRuleMetadataAnnotations struct {
// Dash0ComdeletedAt Soft-delete timestamp. Present when the check rule has been deleted but not yet purged.
// Set by the server; read-only. Ignored on write if a valid date-time; a malformed value is rejected with a 400.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
}
PrometheusAlertRuleMetadataAnnotations Server-populated annotations that apply to the alert-rule resource itself, not to the emitted alert. Read-only on responses; ignored on write if a valid date-time.
type PrometheusAlertRuleMetadataLabels ¶ added in v1.12.0
type PrometheusAlertRuleMetadataLabels struct {
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
PrometheusAlertRuleMetadataLabels Server-derived labels that apply to the alert-rule resource itself, not to the emitted alert. Currently includes `dash0.com/source` when the origin is known; see the `CrdSource` enum for the values it can take.
type PrometheusAlertRule_Annotations ¶ added in v1.6.0
type PrometheusAlertRule_Annotations struct {
// Description Human-readable and templatable description for the check that allows you to customize the way the
// rationale of the check is textually described in the Dash0 UI, in notifications, etc. This will
// be optimized in the design for long form viewing. Limited to 2048 characters.
Description *string `json:"description,omitempty"`
// FolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
FolderPath *string `json:"folderPath,omitempty"`
// Sharing Comma-separated list of principals to grant read and delete access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on check rules that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on a check rule that declares no dash0.com/origin is rejected with a 400 — manage that rule's access via the UI share dialog instead.
Sharing *string `json:"sharing,omitempty"`
// Summary Human-readable and templatable summary for the check that allows you to customize the way the check
// is textually described in short form in the Dash0 UI, in notifications, etc. Templates in the summary
// can read `$labels`, the labels of each failing series. Notifications use the rendered summary as
// their title, except the email subject, which uses the name. When the summary is empty, notifications
// use the name. Limited to 255 characters.
Summary *string `json:"summary,omitempty"`
AdditionalProperties map[string]string `json:"-"`
}
PrometheusAlertRule_Annotations Annotations are key-value pairs that can be used to add additional metadata to a check. They map to Prometheus alerting rules' "annotations" field.
The "summary" and "description" annotations are expected and are used as the human-readable summary and description of the check rule.
func (PrometheusAlertRule_Annotations) Get ¶ added in v1.6.0
func (a PrometheusAlertRule_Annotations) Get(fieldName string) (value string, found bool)
Getter for additional properties for PrometheusAlertRule_Annotations. Returns the specified element and whether it was found
func (PrometheusAlertRule_Annotations) MarshalJSON ¶ added in v1.6.0
func (a PrometheusAlertRule_Annotations) MarshalJSON() ([]byte, error)
Override default JSON handling for PrometheusAlertRule_Annotations to handle AdditionalProperties
func (*PrometheusAlertRule_Annotations) Set ¶ added in v1.6.0
func (a *PrometheusAlertRule_Annotations) Set(fieldName string, value string)
Setter for additional properties for PrometheusAlertRule_Annotations
func (*PrometheusAlertRule_Annotations) UnmarshalJSON ¶ added in v1.6.0
func (a *PrometheusAlertRule_Annotations) UnmarshalJSON(b []byte) error
Override default JSON handling for PrometheusAlertRule_Annotations to handle AdditionalProperties
type PrometheusBuildInfo ¶ added in v1.13.1
type PrometheusBuildInfo struct {
// Branch Not exposed by Dash0; always empty.
Branch *string `json:"branch,omitempty"`
// BuildDate Not exposed by Dash0; always empty.
BuildDate *string `json:"buildDate,omitempty"`
// BuildUser Not exposed by Dash0; always empty.
BuildUser *string `json:"buildUser,omitempty"`
// GoVersion Not exposed by Dash0; always empty.
GoVersion *string `json:"goVersion,omitempty"`
// Revision Not exposed by Dash0; always empty.
Revision *string `json:"revision,omitempty"`
// Version The upstream Prometheus version Dash0 is compatible with.
Version *string `json:"version,omitempty"`
}
PrometheusBuildInfo Build information about the Prometheus-compatible server. Only `version` is populated — with the upstream Prometheus version Dash0 is compatible with, for client feature detection. The remaining fields are retained for upstream API compatibility but are always empty; Dash0 does not expose build internals.
type PrometheusBuildInfoResponse ¶ added in v1.13.1
type PrometheusBuildInfoResponse struct {
// Data Build information about the Prometheus-compatible server. Only `version` is populated —
// with the upstream Prometheus version Dash0 is compatible with, for client feature
// detection. The remaining fields are retained for upstream API compatibility but are
// always empty; Dash0 does not expose build internals.
Data *PrometheusBuildInfo `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusBuildInfoResponse defines model for PrometheusBuildInfoResponse.
type PrometheusErrorResponse ¶ added in v1.13.1
type PrometheusErrorResponse struct {
Error string `json:"error"`
ErrorType string `json:"errorType"`
// Infos Info-level annotations produced while evaluating the query (Prometheus 3.0+).
// Only populated by the instant and range query endpoints.
Infos *[]string `json:"infos,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusErrorResponse defines model for PrometheusErrorResponse.
type PrometheusFormatQueryRequest ¶ added in v1.13.1
type PrometheusFormatQueryRequest struct {
Query string `json:"query"`
}
PrometheusFormatQueryRequest defines model for PrometheusFormatQueryRequest.
type PrometheusFormatQueryResponse ¶ added in v1.13.1
type PrometheusFormatQueryResponse struct {
Data *string `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusFormatQueryResponse defines model for PrometheusFormatQueryResponse.
type PrometheusLabelNamesOrValuesRequest ¶ added in v1.13.1
type PrometheusLabelNamesOrValuesRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// End Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `json:"end,omitempty"`
Limit *int64 `json:"limit,omitempty"`
// Match Repeated series selector. Optional: without one, the endpoint covers every series in the time range, up to `limit`. Upstream Prometheus requires at least one selector for `/series`.
Match *[]string `json:"match[],omitempty"`
// Start Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `json:"start,omitempty"`
}
PrometheusLabelNamesOrValuesRequest defines model for PrometheusLabelNamesOrValuesRequest.
type PrometheusLabelNamesOrValuesResponse ¶ added in v1.13.1
type PrometheusLabelNamesOrValuesResponse struct {
Data *[]string `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusLabelNamesOrValuesResponse defines model for PrometheusLabelNamesOrValuesResponse.
type PrometheusMatrixResult ¶ added in v1.13.1
type PrometheusMatrixResult = []PrometheusMatrixSampleResult
PrometheusMatrixResult defines model for PrometheusMatrixResult.
type PrometheusMatrixSampleResult ¶ added in v1.13.1
type PrometheusMatrixSampleResult struct {
Metric PrometheusMetric `json:"metric"`
Values MetricSamples `json:"values"`
}
PrometheusMatrixSampleResult defines model for PrometheusMatrixSampleResult.
type PrometheusMetadataRequest ¶ added in v1.13.1
type PrometheusMetadataRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// End Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `json:"end,omitempty"`
Limit *int64 `json:"limit,omitempty"`
LimitPerMetric *int64 `json:"limit_per_metric,omitempty"`
Metric *string `json:"metric,omitempty"`
// Start Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `json:"start,omitempty"`
}
PrometheusMetadataRequest defines model for PrometheusMetadataRequest.
type PrometheusMetadataResponse ¶ added in v1.13.1
type PrometheusMetadataResponse struct {
// Data Metric metadata keyed by metric name. Each metric maps to a list of metadata entries.
Data *map[string][]PrometheusMetricMetadata `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusMetadataResponse defines model for PrometheusMetadataResponse.
type PrometheusMetric ¶ added in v1.13.1
PrometheusMetric defines model for PrometheusMetric.
type PrometheusMetricMetadata ¶ added in v1.13.1
type PrometheusMetricMetadata struct {
// Help A human-readable description of the metric.
Help *string `json:"help,omitempty"`
// Type The metric type as reported by the source. One of `counter`, `gauge`,
// `histogram`, `gaugehistogram`, `summary`, `info`, `stateset`, or `unknown`.
Type *string `json:"type,omitempty"`
// Unit The metric unit, if known.
Unit *string `json:"unit,omitempty"`
}
PrometheusMetricMetadata defines model for PrometheusMetricMetadata.
type PrometheusQueryRangeRequest ¶ added in v1.13.1
type PrometheusQueryRangeRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
// End Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
End *string `json:"end,omitempty"`
Limit *int64 `json:"limit,omitempty"`
Query string `json:"query"`
// Start Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Start *string `json:"start,omitempty"`
// Step Accepts a duration such as `30s` or `1m`, or a number of seconds.
Step string `json:"step"`
// Timeout Accepts a duration such as `30s` or `1m`, or a number of seconds.
Timeout *string `json:"timeout,omitempty"`
}
PrometheusQueryRangeRequest defines model for PrometheusQueryRangeRequest.
type PrometheusQueryRequest ¶ added in v1.13.1
type PrometheusQueryRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Limit *int64 `json:"limit,omitempty"`
Query string `json:"query"`
// Time Accepts an RFC 3339 timestamp, a Unix timestamp in seconds with an optional fractional part, or a relative time such as `now-1h`.
Time *string `json:"time,omitempty"`
// Timeout Accepts a duration such as `30s` or `1m`, or a number of seconds.
Timeout *string `json:"timeout,omitempty"`
}
PrometheusQueryRequest defines model for PrometheusQueryRequest.
type PrometheusQueryResponse ¶ added in v1.13.1
type PrometheusQueryResponse struct {
Data *PrometheusQueryResult `json:"data,omitempty"`
// Infos Info-level annotations produced while evaluating the query (Prometheus 3.0+),
// kept separate from `warnings`.
Infos *[]string `json:"infos,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusQueryResponse defines model for PrometheusQueryResponse.
type PrometheusQueryResult ¶ added in v1.13.1
type PrometheusQueryResult struct {
Result PrometheusQueryResult_Result `json:"result"`
// ResultType The shape of the `result` field, mirroring Prometheus:
// - `vector`: instant-vector result (array of samples), returned by instant queries.
// - `matrix`: range-vector result (array of series with value ranges), returned by range queries.
// - `scalar`: a single scalar value.
// - `string`: a single string value.
ResultType PrometheusResultType `json:"resultType"`
}
PrometheusQueryResult defines model for PrometheusQueryResult.
type PrometheusQueryResult_Result ¶ added in v1.13.1
type PrometheusQueryResult_Result struct {
// contains filtered or unexported fields
}
PrometheusQueryResult_Result defines model for PrometheusQueryResult.Result.
func (PrometheusQueryResult_Result) AsPrometheusMatrixResult ¶ added in v1.13.1
func (t PrometheusQueryResult_Result) AsPrometheusMatrixResult() (PrometheusMatrixResult, error)
AsPrometheusMatrixResult returns the union data inside the PrometheusQueryResult_Result as a PrometheusMatrixResult
func (PrometheusQueryResult_Result) AsPrometheusScalarResult ¶ added in v1.13.1
func (t PrometheusQueryResult_Result) AsPrometheusScalarResult() (PrometheusScalarResult, error)
AsPrometheusScalarResult returns the union data inside the PrometheusQueryResult_Result as a PrometheusScalarResult
func (PrometheusQueryResult_Result) AsPrometheusStringResult ¶ added in v1.13.1
func (t PrometheusQueryResult_Result) AsPrometheusStringResult() (PrometheusStringResult, error)
AsPrometheusStringResult returns the union data inside the PrometheusQueryResult_Result as a PrometheusStringResult
func (PrometheusQueryResult_Result) AsPrometheusVectorResult ¶ added in v1.13.1
func (t PrometheusQueryResult_Result) AsPrometheusVectorResult() (PrometheusVectorResult, error)
AsPrometheusVectorResult returns the union data inside the PrometheusQueryResult_Result as a PrometheusVectorResult
func (*PrometheusQueryResult_Result) FromPrometheusMatrixResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) FromPrometheusMatrixResult(v PrometheusMatrixResult) error
FromPrometheusMatrixResult overwrites any union data inside the PrometheusQueryResult_Result as the provided PrometheusMatrixResult
func (*PrometheusQueryResult_Result) FromPrometheusScalarResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) FromPrometheusScalarResult(v PrometheusScalarResult) error
FromPrometheusScalarResult overwrites any union data inside the PrometheusQueryResult_Result as the provided PrometheusScalarResult
func (*PrometheusQueryResult_Result) FromPrometheusStringResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) FromPrometheusStringResult(v PrometheusStringResult) error
FromPrometheusStringResult overwrites any union data inside the PrometheusQueryResult_Result as the provided PrometheusStringResult
func (*PrometheusQueryResult_Result) FromPrometheusVectorResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) FromPrometheusVectorResult(v PrometheusVectorResult) error
FromPrometheusVectorResult overwrites any union data inside the PrometheusQueryResult_Result as the provided PrometheusVectorResult
func (PrometheusQueryResult_Result) MarshalJSON ¶ added in v1.13.1
func (t PrometheusQueryResult_Result) MarshalJSON() ([]byte, error)
func (*PrometheusQueryResult_Result) MergePrometheusMatrixResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) MergePrometheusMatrixResult(v PrometheusMatrixResult) error
MergePrometheusMatrixResult performs a merge with any union data inside the PrometheusQueryResult_Result, using the provided PrometheusMatrixResult
func (*PrometheusQueryResult_Result) MergePrometheusScalarResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) MergePrometheusScalarResult(v PrometheusScalarResult) error
MergePrometheusScalarResult performs a merge with any union data inside the PrometheusQueryResult_Result, using the provided PrometheusScalarResult
func (*PrometheusQueryResult_Result) MergePrometheusStringResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) MergePrometheusStringResult(v PrometheusStringResult) error
MergePrometheusStringResult performs a merge with any union data inside the PrometheusQueryResult_Result, using the provided PrometheusStringResult
func (*PrometheusQueryResult_Result) MergePrometheusVectorResult ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) MergePrometheusVectorResult(v PrometheusVectorResult) error
MergePrometheusVectorResult performs a merge with any union data inside the PrometheusQueryResult_Result, using the provided PrometheusVectorResult
func (*PrometheusQueryResult_Result) UnmarshalJSON ¶ added in v1.13.1
func (t *PrometheusQueryResult_Result) UnmarshalJSON(b []byte) error
type PrometheusResultType ¶ added in v1.13.1
type PrometheusResultType string
PrometheusResultType The shape of the `result` field, mirroring Prometheus: - `vector`: instant-vector result (array of samples), returned by instant queries. - `matrix`: range-vector result (array of series with value ranges), returned by range queries. - `scalar`: a single scalar value. - `string`: a single string value.
const ( Matrix PrometheusResultType = "matrix" Scalar PrometheusResultType = "scalar" PrometheusResultTypeString PrometheusResultType = "string" Vector PrometheusResultType = "vector" )
Defines values for PrometheusResultType.
func (PrometheusResultType) Valid ¶ added in v1.29.0
func (e PrometheusResultType) Valid() bool
Valid indicates whether the value is a known member of the PrometheusResultType enum.
type PrometheusRule ¶ added in v1.6.0
type PrometheusRule struct {
Alert string `json:"alert"`
Expr string `json:"expr"`
For time.Duration `json:"for,omitempty"`
KeepFiringFor time.Duration `json:"keep_firing_for,omitempty"`
Annotations map[string]string `json:"annotations"`
Labels map[string]string `json:"labels"`
}
PrometheusRule represents a single alerting rule in Prometheus format.
type PrometheusRuleApiVersion ¶ added in v1.9.0
type PrometheusRuleApiVersion string
PrometheusRuleApiVersion API version of the PrometheusRule CRD.
const (
MonitoringCoreosComv1 PrometheusRuleApiVersion = "monitoring.coreos.com/v1"
)
Defines values for PrometheusRuleApiVersion.
func (PrometheusRuleApiVersion) Valid ¶ added in v1.29.0
func (e PrometheusRuleApiVersion) Valid() bool
Valid indicates whether the value is a known member of the PrometheusRuleApiVersion enum.
type PrometheusRuleDefinition ¶ added in v1.9.0
type PrometheusRuleDefinition struct {
// Alert Name of the alert for an alerting rule.
// Mutually exclusive with `record`.
Alert *string `json:"alert,omitempty"`
// Annotations Annotations to attach to alerts. Only applicable to alerting rules.
// Commonly used keys include `summary` and `description`.
//
// Dash0 also recognizes:
// - `dash0.com/notification-channel-ids`: Comma-separated list of notification channels to
// notify when the alert fires. Each entry is a channel UUID or a channel origin, and may
// carry the `:critical-only` suffix to notify that channel only once the check reaches
// critical — for example
// `dash0.com/notification-channel-ids: fbc39ea2-d6da-4c8e-b77f-730821913a3c, pagerduty-prod:critical-only`.
// The annotation declares the routing in full: a channel it does not name is unlinked,
// and a channel it names without the suffix notifies on every issue, including when the
// only-on-critical trigger had been set in the UI.
Annotations *map[string]string `json:"annotations,omitempty"`
// Expr PromQL expression to evaluate.
//
// For **recording rules**, the expression must satisfy these constraints
// (alerting rules are not subject to them):
// - **Maximum query window**: the longest matrix-selector range (or subquery
// range, plus `lookbackDelta`) may not exceed 30 days + 15 minutes.
// - **Minimum evaluation interval** depends on the query window — see the
// band table on the group's `interval` field, including the RR-over-RR carve-out.
// - **At most 7 distinct metric names** may be referenced (only enforced when
// the query window exceeds 1h+10m).
// - **Each matrix selector** must be bounded — at least one non-`__name__`
// label matcher, an enclosing range function (`rate`, `*_over_time`, …),
// an enclosing `by`/`without` aggregation, or the inner metric must itself
// be an active recording-rule output in the same (organization, dataset).
// - **At most 10 `or` arms** (only enforced when the query window exceeds 1h+10m).
// - **Self-reference is rejected**: the rule's own `record` may not appear
// in its own expression.
// - **Vector matching must resolve to a clean, aligned match**: a binary
// operation matched with `on()` and an empty label set is rejected when the
// one-side operand is not statically a single series (an unaggregated selector
// there fails at evaluation with a duplicate-series error). Aggregate the
// one-side to a single series (e.g. `sum(...)`) or match on explicit labels
// with `on(<labels>)`.
Expr string `json:"expr"`
// For Duration for which the expression must be continuously satisfied before an alert fires.
// Only applicable to alerting rules (e.g., "5m", "10m").
For *string `json:"for,omitempty"`
// KeepFiringFor Duration for which an alert continues firing after the expression is no longer satisfied.
// Only applicable to alerting rules (e.g., "5m").
KeepFiringFor *string `json:"keep_firing_for,omitempty"`
// Labels Additional labels to attach to the resulting metrics or alerts.
Labels *map[string]string `json:"labels,omitempty"`
// Record Name of the output metric for a recording rule. Must be a valid Prometheus metric name.
// Mutually exclusive with `alert`.
Record *string `json:"record,omitempty"`
}
PrometheusRuleDefinition An individual rule within a group. A rule is either a recording rule (has `record`) or an alerting rule (has `alert`). Exactly one of `record` or `alert` must be set.
Recording rules pre-compute a PromQL expression and store the result as a new metric. Alerting rules evaluate a PromQL expression and fire alerts when the result is non-empty.
type PrometheusRuleGroup ¶ added in v1.9.0
type PrometheusRuleGroup struct {
// Interval Evaluation interval for all rules in the group.
// Applies to every rule in the group; individual rules cannot override it.
// Defaults to "1m" if not specified.
//
// For **recording rules**, the minimum interval depends on the longest
// matrix-selector range in the rule's PromQL expression (the "query window"):
//
// | Query window | Minimum interval |
// |------------------------|----------------------------------------------------------------------|
// | ≤ 1h+10m | 1m (absolute floor) |
// | (1h+10m, 8h+10m] | 5m |
// | (8h+10m, 24h+10m] | 10m — relaxed to **5m** for RR-over-RR |
// | (24h+10m, 30d+15m] | 1h — relaxed to **5m** for RR-over-RR |
// | > 30d+15m | rejected |
//
// "RR-over-RR" means every metric referenced by the recording rule's
// expression is itself an active recording-rule output in the same
// (organization, dataset). In that case the relaxed 5m floor applies for
// query windows above 8h+10m — the inner recording rule's own validation
// already bounded the per-eval cost.
//
// Alerting rules are not subject to these interval constraints.
Interval *string `json:"interval,omitempty"`
// Labels Labels to apply to all rules in the group. These are merged with rule-level labels;
// rule-level labels take precedence in case of conflict.
Labels *map[string]string `json:"labels,omitempty"`
// Name Display name for the rule group.
Name string `json:"name"`
// QueryOffset Shifts the timestamp at which rules in the group query their data backwards
// by this duration (e.g. "5m"). Output series points are stamped at the shifted
// moment, allowing late-arriving data to settle before being counted.
// Maximum 1h. Defaults to 0 if omitted (no shift).
QueryOffset *string `json:"query_offset,omitempty"`
// Rules List of rules in this group.
Rules []PrometheusRuleDefinition `json:"rules"`
}
PrometheusRuleGroup A group of rules evaluated together at a common interval. Follows the Prometheus rule group concept (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/).
Note: The upstream RuleGroup fields `partial_response_strategy` and `limit` are intentionally omitted as they are not supported by the Dash0 evaluation engine.
Caveat for synthetic metrics: when a rule reads from a synthetic metric (one computed on demand from underlying signals at query time, rather than pre-computed during ingestion), evaluation near the leading edge of available data may under-count, since late-arriving signals may not yet have been processed. Two rules within the same group can therefore disagree even when their queries share a strict subset/superset relationship — a ratio of the two values may briefly exceed 1.0 at some timestamps. Use `query_offset` to delay evaluation enough for the underlying data to settle.
type PrometheusRuleKind ¶ added in v1.9.0
type PrometheusRuleKind string
PrometheusRuleKind Kind of the PrometheusRule CRD.
const (
PrometheusRuleKindPrometheusRule PrometheusRuleKind = "PrometheusRule"
)
Defines values for PrometheusRuleKind.
func (PrometheusRuleKind) Valid ¶ added in v1.29.0
func (e PrometheusRuleKind) Valid() bool
Valid indicates whether the value is a known member of the PrometheusRuleKind enum.
type PrometheusRuleMetadata ¶ added in v1.9.0
type PrometheusRuleMetadata struct {
// Annotations Key-value annotations for the resource. Dash0 recognizes the following annotations:
//
// - `dash0.com/enabled`: Set to "false" to disable evaluation. Defaults to "true" when absent.
// - `dash0.com/folder-path`: UI folder path for organising resources (e.g., "/infrastructure/hosts"). Nesting is expressed with "/" separators.
// - `dash0.com/sharing`: Comma-separated list of principals to grant read access to. Supported formats: "team:<team_id>" and "user:<email>". Honored only on rules that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API); setting it on a rule that declares no dash0.com/origin is rejected with a 400.
// - `dash0.com/created-at`: Creation timestamp (read-only, server-set).
// - `dash0.com/updated-at`: Last update timestamp (read-only, server-set).
// - `dash0.com/deleted-at`: Soft-delete timestamp (read-only, server-set).
// - `dash0.com/first-evaluation-at`: First evaluation timestamp (recording rules only, read-only, server-set).
// - `dash0.com/runtime-disabled-at`: Timestamp when the recorder took the group out of evaluation because a rule was too expensive (it exceeded the query sample limit). Recording rules only, read-only, server-set. Independent of `dash0.com/enabled`. Cleared only when a cost-determining field changes (the rules or the interval) — a `dash0.com/enabled` toggle, a cosmetic edit, or a blind re-apply of the identical manifest does not re-enable the group.
// - `dash0.com/runtime-disabled-reason`: Why the recorder runtime-disabled the group (currently only "max_samples"). Recording rules only, read-only, server-set.
// - `dash0.com/baseline-direction`: Anomaly detector baseline direction — "above", "below", or "both". Check rules only. Lifted into the rule's `thresholds.baseline`.
// - `dash0.com/baseline-spread-floor`: Optional minimum spread as a fraction of the baseline prediction. Check rules only; use with `dash0.com/baseline-direction`.
// - `dash0.com/volume-floor`: Optional minimum traffic rate for a baseline or windowed average traffic rate for a change gate. Supported for Services Metrics and Spans Metrics check rules only.
// - `dash0.com/change-gate-comparison`: Change gate comparison — "absolute_delta" or "relative_factor". Check rules only. Set together with the two keys below.
// - `dash0.com/change-gate-value`: The minimum change the change gate requires, interpreted according to the comparison. Check rules only.
// - `dash0.com/change-gate-baseline-window`: The window the change gate derives the recent level from (e.g. "1h"). Check rules only.
//
// The detector keys are the only way to configure an anomaly detector from Kubernetes: check rules
// are a flat resource whose body has no `thresholds` field. All three change-gate keys must be present
// and valid for a change gate to be created. Malformed or incomplete detector annotations reject
// the submission. Baseline and change gate detectors are mutually exclusive. A typed
// `thresholds` field on the body always wins over the matching annotation.
//
// New annotation keys use the `dash0.com/` prefix. The legacy `dash0-threshold-degraded` /
// `dash0-threshold-critical` forms (and their unprefixed variants) are still lifted for compatibility
// but are not extended.
Annotations *map[string]string `json:"annotations,omitempty"`
// Labels Key-value labels for the resource. Dash0 recognizes the following labels:
//
// - `dash0.com/id`: Internal ID (read-only, server-set).
// - `dash0.com/origin`: External identifier for API-managed resources.
// - `dash0.com/version`: Version for optimistic concurrency (required on update, server-set on create).
// - `dash0.com/dataset`: Dataset this resource belongs to (defaults to the default dataset).
// - `dash0.com/source`: Origin source — "ui", "terraform", "operator", "dash0-cli", "platform", or "api" (read-only, derived from origin).
Labels *map[string]string `json:"labels,omitempty"`
// Name Resource name.
Name string `json:"name"`
}
PrometheusRuleMetadata Metadata for the PrometheusRule resource, following Kubernetes metadata conventions.
type PrometheusRuleSpec ¶ added in v1.9.0
type PrometheusRuleSpec struct {
// Groups Rule groups. Each group is evaluated independently at its own interval.
// Unlike the upstream PrometheusRule CRD, this field is required and must contain exactly one group.
Groups []PrometheusRuleGroup `json:"groups"`
}
PrometheusRuleSpec Spec of the PrometheusRule resource containing rule groups.
type PrometheusRules ¶ added in v1.6.0
type PrometheusRules struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata PrometheusRulesMetadata `json:"metadata"`
Spec PrometheusRulesSpec `json:"spec"`
}
PrometheusRules represents the Kubernetes Prometheus Operator PrometheusRule CRD document. This is the user-facing format used by the Terraform provider and Kubernetes operator.
type PrometheusRulesGroup ¶ added in v1.6.0
type PrometheusRulesGroup struct {
Name string `json:"name"`
Interval time.Duration `json:"interval,omitempty"`
Rules []PrometheusRule `json:"rules"`
}
PrometheusRulesGroup represents a single rule group in Prometheus format.
type PrometheusRulesMetadata ¶ added in v1.6.0
type PrometheusRulesMetadata struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}
PrometheusRulesMetadata contains Kubernetes-style metadata for a PrometheusRules document.
type PrometheusRulesSpec ¶ added in v1.6.0
type PrometheusRulesSpec struct {
Groups []PrometheusRulesGroup `json:"groups"`
}
PrometheusRulesSpec contains the groups of rules.
type PrometheusRuntimeInfo ¶ added in v1.13.1
type PrometheusRuntimeInfo struct {
// CWD Not exposed by Dash0; always empty.
CWD *string `json:"CWD,omitempty"`
// GODEBUG Not exposed by Dash0; always empty.
GODEBUG *string `json:"GODEBUG,omitempty"`
// GOGC Not exposed by Dash0; always empty.
GOGC *string `json:"GOGC,omitempty"`
// GOMAXPROCS Not exposed by Dash0; always 0.
GOMAXPROCS *int `json:"GOMAXPROCS,omitempty"`
// GOMEMLIMIT Not exposed by Dash0; always 0.
GOMEMLIMIT *int64 `json:"GOMEMLIMIT,omitempty"`
// CorruptionCount Not exposed by Dash0; always 0.
CorruptionCount *int64 `json:"corruptionCount,omitempty"`
// GoroutineCount Not exposed by Dash0; always 0.
GoroutineCount *int `json:"goroutineCount,omitempty"`
// Hostname Not exposed by Dash0; always empty.
Hostname *string `json:"hostname,omitempty"`
// LastConfigTime Not exposed by Dash0; always the zero time.
LastConfigTime *time.Time `json:"lastConfigTime,omitempty"`
// ReloadConfigSuccess Always `true`.
ReloadConfigSuccess *bool `json:"reloadConfigSuccess,omitempty"`
// ServerTime Not exposed by Dash0; always the zero time.
ServerTime *time.Time `json:"serverTime,omitempty"`
// StartTime Not exposed by Dash0; always the zero time.
StartTime *time.Time `json:"startTime,omitempty"`
// StorageRetention The data retention period.
StorageRetention *string `json:"storageRetention,omitempty"`
}
PrometheusRuntimeInfo Runtime information about the Prometheus-compatible server. Dash0 is not a single Prometheus process, so most of the upstream runtime fields are not applicable: only `reloadConfigSuccess` and `storageRetention` carry meaning. The remaining fields are retained for upstream API compatibility but are always empty/zero — Dash0 does not expose process, Go-runtime, or filesystem internals.
type PrometheusRuntimeInfoResponse ¶ added in v1.13.1
type PrometheusRuntimeInfoResponse struct {
// Data Runtime information about the Prometheus-compatible server. Dash0 is not a single
// Prometheus process, so most of the upstream runtime fields are not applicable: only
// `reloadConfigSuccess` and `storageRetention` carry meaning. The remaining fields are
// retained for upstream API compatibility but are always empty/zero — Dash0 does not
// expose process, Go-runtime, or filesystem internals.
Data *PrometheusRuntimeInfo `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusRuntimeInfoResponse defines model for PrometheusRuntimeInfoResponse.
type PrometheusScalarResult ¶ added in v1.13.1
type PrometheusScalarResult = MetricSample
PrometheusScalarResult defines model for PrometheusScalarResult.
type PrometheusSeriesResponse ¶ added in v1.13.1
type PrometheusSeriesResponse struct {
Data *[]PrometheusMetric `json:"data,omitempty"`
Status string `json:"status"`
Warnings *[]string `json:"warnings,omitempty"`
}
PrometheusSeriesResponse defines model for PrometheusSeriesResponse.
type PrometheusStringResult ¶ added in v1.13.1
type PrometheusStringResult = MetricSample
PrometheusStringResult defines model for PrometheusStringResult.
type PrometheusVectorResult ¶ added in v1.13.1
type PrometheusVectorResult = []PrometheusVectorSampleResult
PrometheusVectorResult defines model for PrometheusVectorResult.
type PrometheusVectorSampleResult ¶ added in v1.13.1
type PrometheusVectorSampleResult struct {
Metric PrometheusMetric `json:"metric"`
Value MetricSample `json:"value"`
}
PrometheusVectorSampleResult defines model for PrometheusVectorSampleResult.
type PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody ¶ added in v1.29.0
type PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody = SkillUpdateRequest
PutApiAgent0CustomSkillsOriginOrIdJSONRequestBody defines body for PutApiAgent0CustomSkillsOriginOrId for application/json ContentType.
type PutApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
type PutApiAgent0CustomSkillsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiAgent0CustomSkillsOriginOrIdResponse ¶ added in v1.29.0
func ParsePutApiAgent0CustomSkillsOriginOrIdResponse(rsp *http.Response) (*PutApiAgent0CustomSkillsOriginOrIdResponse, error)
ParsePutApiAgent0CustomSkillsOriginOrIdResponse parses an HTTP response from a PutApiAgent0CustomSkillsOriginOrIdWithResponse call
func (PutApiAgent0CustomSkillsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiAgent0CustomSkillsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSON200() *SkillResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiAgent0CustomSkillsOriginOrIdResponse) Status ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiAgent0CustomSkillsOriginOrIdResponse) StatusCode ¶ added in v1.29.0
func (r PutApiAgent0CustomSkillsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiAgenticWorkflowsOriginOrIdJSONRequestBody ¶ added in v1.17.0
type PutApiAgenticWorkflowsOriginOrIdJSONRequestBody = AgenticWorkflowResponse
PutApiAgenticWorkflowsOriginOrIdJSONRequestBody defines body for PutApiAgenticWorkflowsOriginOrId for application/json ContentType.
type PutApiAgenticWorkflowsOriginOrIdParams ¶ added in v1.17.0
type PutApiAgenticWorkflowsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiAgenticWorkflowsOriginOrIdParams defines parameters for PutApiAgenticWorkflowsOriginOrId.
type PutApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
type PutApiAgenticWorkflowsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgenticWorkflowResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiAgenticWorkflowsOriginOrIdResponse ¶ added in v1.17.0
func ParsePutApiAgenticWorkflowsOriginOrIdResponse(rsp *http.Response) (*PutApiAgenticWorkflowsOriginOrIdResponse, error)
ParsePutApiAgenticWorkflowsOriginOrIdResponse parses an HTTP response from a PutApiAgenticWorkflowsOriginOrIdWithResponse call
func (PutApiAgenticWorkflowsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiAgenticWorkflowsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON200() *AgenticWorkflowResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON503 ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (PutApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiAgenticWorkflowsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiAgenticWorkflowsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r PutApiAgenticWorkflowsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiAlertingCheckRulesOriginOrIdJSONRequestBody ¶
type PutApiAlertingCheckRulesOriginOrIdJSONRequestBody = PrometheusAlertRule
PutApiAlertingCheckRulesOriginOrIdJSONRequestBody defines body for PutApiAlertingCheckRulesOriginOrId for application/json ContentType.
type PutApiAlertingCheckRulesOriginOrIdParams ¶
type PutApiAlertingCheckRulesOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiAlertingCheckRulesOriginOrIdParams defines parameters for PutApiAlertingCheckRulesOriginOrId.
type PutApiAlertingCheckRulesOriginOrIdResponse ¶
type PutApiAlertingCheckRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PrometheusAlertRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiAlertingCheckRulesOriginOrIdResponse ¶
func ParsePutApiAlertingCheckRulesOriginOrIdResponse(rsp *http.Response) (*PutApiAlertingCheckRulesOriginOrIdResponse, error)
ParsePutApiAlertingCheckRulesOriginOrIdResponse parses an HTTP response from a PutApiAlertingCheckRulesOriginOrIdWithResponse call
func (PutApiAlertingCheckRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiAlertingCheckRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiAlertingCheckRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiAlertingCheckRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetJSON200() *PrometheusAlertRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiAlertingCheckRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiAlertingCheckRulesOriginOrIdResponse) Status ¶
func (r PutApiAlertingCheckRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiAlertingCheckRulesOriginOrIdResponse) StatusCode ¶
func (r PutApiAlertingCheckRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiAuthTokensOriginOrIdJSONRequestBody ¶ added in v1.25.0
type PutApiAuthTokensOriginOrIdJSONRequestBody = AuthTokenUpdateRequest
PutApiAuthTokensOriginOrIdJSONRequestBody defines body for PutApiAuthTokensOriginOrId for application/json ContentType.
type PutApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
type PutApiAuthTokensOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthTokenResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiAuthTokensOriginOrIdResponse ¶ added in v1.25.0
func ParsePutApiAuthTokensOriginOrIdResponse(rsp *http.Response) (*PutApiAuthTokensOriginOrIdResponse, error)
ParsePutApiAuthTokensOriginOrIdResponse parses an HTTP response from a PutApiAuthTokensOriginOrIdWithResponse call
func (PutApiAuthTokensOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiAuthTokensOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiAuthTokensOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiAuthTokensOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiAuthTokensOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiAuthTokensOriginOrIdResponse) GetJSON200() *AuthTokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiAuthTokensOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiAuthTokensOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiAuthTokensOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiAuthTokensOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiAuthTokensOriginOrIdResponse) Status ¶ added in v1.25.0
func (r PutApiAuthTokensOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiAuthTokensOriginOrIdResponse) StatusCode ¶ added in v1.25.0
func (r PutApiAuthTokensOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody ¶ added in v1.28.0
type PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody = AwsMetricScrapeConfigDefinition
PutApiAwsMetricScrapeConfigsIntegrationIdJSONRequestBody defines body for PutApiAwsMetricScrapeConfigsIntegrationId for application/json ContentType.
type PutApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
type PutApiAwsMetricScrapeConfigsIntegrationIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AwsMetricScrapeConfigDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiAwsMetricScrapeConfigsIntegrationIdResponse ¶ added in v1.28.0
func ParsePutApiAwsMetricScrapeConfigsIntegrationIdResponse(rsp *http.Response) (*PutApiAwsMetricScrapeConfigsIntegrationIdResponse, error)
ParsePutApiAwsMetricScrapeConfigsIntegrationIdResponse parses an HTTP response from a PutApiAwsMetricScrapeConfigsIntegrationIdWithResponse call
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSON200() *AwsMetricScrapeConfigDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) Status ¶ added in v1.28.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode ¶ added in v1.28.0
func (r PutApiAwsMetricScrapeConfigsIntegrationIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiDashboardsOriginOrIdJSONRequestBody ¶
type PutApiDashboardsOriginOrIdJSONRequestBody = DashboardDefinition
PutApiDashboardsOriginOrIdJSONRequestBody defines body for PutApiDashboardsOriginOrId for application/json ContentType.
type PutApiDashboardsOriginOrIdParams ¶
type PutApiDashboardsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiDashboardsOriginOrIdParams defines parameters for PutApiDashboardsOriginOrId.
type PutApiDashboardsOriginOrIdResponse ¶
type PutApiDashboardsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DashboardDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiDashboardsOriginOrIdResponse ¶
func ParsePutApiDashboardsOriginOrIdResponse(rsp *http.Response) (*PutApiDashboardsOriginOrIdResponse, error)
ParsePutApiDashboardsOriginOrIdResponse parses an HTTP response from a PutApiDashboardsOriginOrIdWithResponse call
func (PutApiDashboardsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiDashboardsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiDashboardsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiDashboardsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiDashboardsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiDashboardsOriginOrIdResponse) GetJSON200() *DashboardDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiDashboardsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiDashboardsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiDashboardsOriginOrIdResponse) Status ¶
func (r PutApiDashboardsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiDashboardsOriginOrIdResponse) StatusCode ¶
func (r PutApiDashboardsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiDatasetsOriginOrIdJSONRequestBody ¶ added in v1.24.0
type PutApiDatasetsOriginOrIdJSONRequestBody = DatasetUpdateRequest
PutApiDatasetsOriginOrIdJSONRequestBody defines body for PutApiDatasetsOriginOrId for application/json ContentType.
type PutApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
type PutApiDatasetsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DatasetResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiDatasetsOriginOrIdResponse ¶ added in v1.24.0
func ParsePutApiDatasetsOriginOrIdResponse(rsp *http.Response) (*PutApiDatasetsOriginOrIdResponse, error)
ParsePutApiDatasetsOriginOrIdResponse parses an HTTP response from a PutApiDatasetsOriginOrIdWithResponse call
func (PutApiDatasetsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiDatasetsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiDatasetsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiDatasetsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiDatasetsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiDatasetsOriginOrIdResponse) GetJSON200() *DatasetResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiDatasetsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiDatasetsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiDatasetsOriginOrIdResponse) Status ¶ added in v1.24.0
func (r PutApiDatasetsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiDatasetsOriginOrIdResponse) StatusCode ¶ added in v1.24.0
func (r PutApiDatasetsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiImportSignalToMetricsJSONRequestBody ¶ added in v1.12.3
type PutApiImportSignalToMetricsJSONRequestBody = SignalToMetricsBulkUpsertRequest
PutApiImportSignalToMetricsJSONRequestBody defines body for PutApiImportSignalToMetrics for application/json ContentType.
type PutApiImportSignalToMetricsParams ¶ added in v1.12.3
type PutApiImportSignalToMetricsParams struct {
// Dataset The dataset to deploy rules into. Required to prevent accidental deployment to the wrong dataset, so the `Dash0-Dataset` header is not used here.
Dataset Dataset `form:"dataset" json:"dataset"`
}
PutApiImportSignalToMetricsParams defines parameters for PutApiImportSignalToMetrics.
type PutApiImportSignalToMetricsResponse ¶ added in v1.12.3
type PutApiImportSignalToMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignalToMetricsBulkUpsertResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiImportSignalToMetricsResponse ¶ added in v1.12.3
func ParsePutApiImportSignalToMetricsResponse(rsp *http.Response) (*PutApiImportSignalToMetricsResponse, error)
ParsePutApiImportSignalToMetricsResponse parses an HTTP response from a PutApiImportSignalToMetricsWithResponse call
func (PutApiImportSignalToMetricsResponse) ContentType ¶ added in v1.29.0
func (r PutApiImportSignalToMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiImportSignalToMetricsResponse) GetBody ¶ added in v1.29.0
func (r PutApiImportSignalToMetricsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiImportSignalToMetricsResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiImportSignalToMetricsResponse) GetJSON200() *SignalToMetricsBulkUpsertResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiImportSignalToMetricsResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiImportSignalToMetricsResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiImportSignalToMetricsResponse) Status ¶ added in v1.12.3
func (r PutApiImportSignalToMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiImportSignalToMetricsResponse) StatusCode ¶ added in v1.12.3
func (r PutApiImportSignalToMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiMembersMemberIDRoleJSONRequestBody ¶ added in v1.23.0
type PutApiMembersMemberIDRoleJSONRequestBody = UpdateMemberRoleRequest
PutApiMembersMemberIDRoleJSONRequestBody defines body for PutApiMembersMemberIDRole for application/json ContentType.
type PutApiMembersMemberIDRoleResponse ¶ added in v1.23.0
type PutApiMembersMemberIDRoleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiMembersMemberIDRoleResponse ¶ added in v1.23.0
func ParsePutApiMembersMemberIDRoleResponse(rsp *http.Response) (*PutApiMembersMemberIDRoleResponse, error)
ParsePutApiMembersMemberIDRoleResponse parses an HTTP response from a PutApiMembersMemberIDRoleWithResponse call
func (PutApiMembersMemberIDRoleResponse) ContentType ¶ added in v1.29.0
func (r PutApiMembersMemberIDRoleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiMembersMemberIDRoleResponse) GetBody ¶ added in v1.29.0
func (r PutApiMembersMemberIDRoleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiMembersMemberIDRoleResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiMembersMemberIDRoleResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiMembersMemberIDRoleResponse) Status ¶ added in v1.23.0
func (r PutApiMembersMemberIDRoleResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiMembersMemberIDRoleResponse) StatusCode ¶ added in v1.23.0
func (r PutApiMembersMemberIDRoleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiNotificationChannelsOriginOrIdJSONRequestBody ¶ added in v1.9.0
type PutApiNotificationChannelsOriginOrIdJSONRequestBody = NotificationChannelDefinition
PutApiNotificationChannelsOriginOrIdJSONRequestBody defines body for PutApiNotificationChannelsOriginOrId for application/json ContentType.
type PutApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
type PutApiNotificationChannelsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NotificationChannelDefinition
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiNotificationChannelsOriginOrIdResponse ¶ added in v1.9.0
func ParsePutApiNotificationChannelsOriginOrIdResponse(rsp *http.Response) (*PutApiNotificationChannelsOriginOrIdResponse, error)
ParsePutApiNotificationChannelsOriginOrIdResponse parses an HTTP response from a PutApiNotificationChannelsOriginOrIdWithResponse call
func (PutApiNotificationChannelsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiNotificationChannelsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiNotificationChannelsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiNotificationChannelsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiNotificationChannelsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSON200() *NotificationChannelDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiNotificationChannelsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiNotificationChannelsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiNotificationChannelsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiNotificationChannelsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r PutApiNotificationChannelsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiNotificationChannelsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r PutApiNotificationChannelsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiRecordingRulesOriginOrIdJSONRequestBody ¶ added in v1.9.0
type PutApiRecordingRulesOriginOrIdJSONRequestBody = generatedPrometheusRule
PutApiRecordingRulesOriginOrIdJSONRequestBody defines body for PutApiRecordingRulesOriginOrId for application/json ContentType.
type PutApiRecordingRulesOriginOrIdParams ¶ added in v1.11.1
type PutApiRecordingRulesOriginOrIdParams struct {
// Dataset Target dataset. This parameter, or the `Dash0-Dataset` header when it is absent, overrides `dash0.com/dataset` in `metadata.labels`.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiRecordingRulesOriginOrIdParams defines parameters for PutApiRecordingRulesOriginOrId.
type PutApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
type PutApiRecordingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *generatedPrometheusRule
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiRecordingRulesOriginOrIdResponse ¶ added in v1.9.0
func ParsePutApiRecordingRulesOriginOrIdResponse(rsp *http.Response) (*PutApiRecordingRulesOriginOrIdResponse, error)
ParsePutApiRecordingRulesOriginOrIdResponse parses an HTTP response from a PutApiRecordingRulesOriginOrIdWithResponse call
func (PutApiRecordingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiRecordingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiRecordingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiRecordingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiRecordingRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiRecordingRulesOriginOrIdResponse) GetJSON200() *generatedPrometheusRule
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiRecordingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiRecordingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiRecordingRulesOriginOrIdResponse) Status ¶ added in v1.9.0
func (r PutApiRecordingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiRecordingRulesOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r PutApiRecordingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiSamplingRulesOriginOrIdJSONRequestBody ¶ added in v1.1.0
type PutApiSamplingRulesOriginOrIdJSONRequestBody = SamplingRuleResponse
PutApiSamplingRulesOriginOrIdJSONRequestBody defines body for PutApiSamplingRulesOriginOrId for application/json ContentType.
type PutApiSamplingRulesOriginOrIdParams ¶ added in v1.1.0
type PutApiSamplingRulesOriginOrIdParams struct {
// Dataset The dataset to write the sampling rule to. It may also be set with the
// `dash0.com/dataset` label in the request body. When only one of the two is set,
// that one is used; when neither is set, the rule is written to the `default` dataset.
// When both are set they must name the same dataset. A request in which they differ
// is deprecated: the label currently wins, and a future release will reject it with 400.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiSamplingRulesOriginOrIdParams defines parameters for PutApiSamplingRulesOriginOrId.
type PutApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
type PutApiSamplingRulesOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SamplingRuleResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiSamplingRulesOriginOrIdResponse ¶ added in v1.1.0
func ParsePutApiSamplingRulesOriginOrIdResponse(rsp *http.Response) (*PutApiSamplingRulesOriginOrIdResponse, error)
ParsePutApiSamplingRulesOriginOrIdResponse parses an HTTP response from a PutApiSamplingRulesOriginOrIdWithResponse call
func (PutApiSamplingRulesOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiSamplingRulesOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiSamplingRulesOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiSamplingRulesOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiSamplingRulesOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiSamplingRulesOriginOrIdResponse) GetJSON200() *SamplingRuleResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiSamplingRulesOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiSamplingRulesOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiSamplingRulesOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiSamplingRulesOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiSamplingRulesOriginOrIdResponse) Status ¶ added in v1.1.0
func (r PutApiSamplingRulesOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiSamplingRulesOriginOrIdResponse) StatusCode ¶ added in v1.1.0
func (r PutApiSamplingRulesOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiSignalToMetricsOriginOrIdJSONRequestBody ¶ added in v1.9.0
type PutApiSignalToMetricsOriginOrIdJSONRequestBody = SignalToMetricsResponse
PutApiSignalToMetricsOriginOrIdJSONRequestBody defines body for PutApiSignalToMetricsOriginOrId for application/json ContentType.
type PutApiSignalToMetricsOriginOrIdParams ¶ added in v1.9.0
type PutApiSignalToMetricsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiSignalToMetricsOriginOrIdParams defines parameters for PutApiSignalToMetricsOriginOrId.
type PutApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
type PutApiSignalToMetricsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignalToMetricsResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiSignalToMetricsOriginOrIdResponse ¶ added in v1.9.0
func ParsePutApiSignalToMetricsOriginOrIdResponse(rsp *http.Response) (*PutApiSignalToMetricsOriginOrIdResponse, error)
ParsePutApiSignalToMetricsOriginOrIdResponse parses an HTTP response from a PutApiSignalToMetricsOriginOrIdWithResponse call
func (PutApiSignalToMetricsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiSignalToMetricsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiSignalToMetricsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiSignalToMetricsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiSignalToMetricsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSON200() *SignalToMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiSignalToMetricsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiSignalToMetricsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiSignalToMetricsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiSignalToMetricsOriginOrIdResponse) Status ¶ added in v1.9.0
func (r PutApiSignalToMetricsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiSignalToMetricsOriginOrIdResponse) StatusCode ¶ added in v1.9.0
func (r PutApiSignalToMetricsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiSlosOriginOrIdJSONRequestBody ¶ added in v1.14.0
type PutApiSlosOriginOrIdJSONRequestBody = SloDefinition
PutApiSlosOriginOrIdJSONRequestBody defines body for PutApiSlosOriginOrId for application/json ContentType.
type PutApiSlosOriginOrIdParams ¶ added in v1.14.0
type PutApiSlosOriginOrIdParams struct {
// Dataset Target dataset. This parameter, or the `Dash0-Dataset` header when it is absent, overrides `dash0.com/dataset` in `metadata.labels`.
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiSlosOriginOrIdParams defines parameters for PutApiSlosOriginOrId.
type PutApiSlosOriginOrIdResponse ¶ added in v1.14.0
type PutApiSlosOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SloDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiSlosOriginOrIdResponse ¶ added in v1.14.0
func ParsePutApiSlosOriginOrIdResponse(rsp *http.Response) (*PutApiSlosOriginOrIdResponse, error)
ParsePutApiSlosOriginOrIdResponse parses an HTTP response from a PutApiSlosOriginOrIdWithResponse call
func (PutApiSlosOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiSlosOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiSlosOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiSlosOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiSlosOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiSlosOriginOrIdResponse) GetJSON200() *SloDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiSlosOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiSlosOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiSlosOriginOrIdResponse) Status ¶ added in v1.14.0
func (r PutApiSlosOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiSlosOriginOrIdResponse) StatusCode ¶ added in v1.14.0
func (r PutApiSlosOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiSpamFiltersOriginOrIdJSONRequestBody ¶ added in v1.12.0
type PutApiSpamFiltersOriginOrIdJSONRequestBody = SpamFilterResponse
PutApiSpamFiltersOriginOrIdJSONRequestBody defines body for PutApiSpamFiltersOriginOrId for application/json ContentType.
type PutApiSpamFiltersOriginOrIdParams ¶ added in v1.12.0
type PutApiSpamFiltersOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiSpamFiltersOriginOrIdParams defines parameters for PutApiSpamFiltersOriginOrId.
type PutApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
type PutApiSpamFiltersOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SpamFilterResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiSpamFiltersOriginOrIdResponse ¶ added in v1.12.0
func ParsePutApiSpamFiltersOriginOrIdResponse(rsp *http.Response) (*PutApiSpamFiltersOriginOrIdResponse, error)
ParsePutApiSpamFiltersOriginOrIdResponse parses an HTTP response from a PutApiSpamFiltersOriginOrIdWithResponse call
func (PutApiSpamFiltersOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiSpamFiltersOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiSpamFiltersOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiSpamFiltersOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiSpamFiltersOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiSpamFiltersOriginOrIdResponse) GetJSON200() *SpamFilterResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiSpamFiltersOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiSpamFiltersOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiSpamFiltersOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiSpamFiltersOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiSpamFiltersOriginOrIdResponse) Status ¶ added in v1.12.0
func (r PutApiSpamFiltersOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiSpamFiltersOriginOrIdResponse) StatusCode ¶ added in v1.12.0
func (r PutApiSpamFiltersOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiSyntheticChecksOriginOrIdJSONRequestBody ¶
type PutApiSyntheticChecksOriginOrIdJSONRequestBody = SyntheticCheckDefinition
PutApiSyntheticChecksOriginOrIdJSONRequestBody defines body for PutApiSyntheticChecksOriginOrId for application/json ContentType.
type PutApiSyntheticChecksOriginOrIdParams ¶
type PutApiSyntheticChecksOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiSyntheticChecksOriginOrIdParams defines parameters for PutApiSyntheticChecksOriginOrId.
type PutApiSyntheticChecksOriginOrIdResponse ¶
type PutApiSyntheticChecksOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SyntheticCheckDefinition
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiSyntheticChecksOriginOrIdResponse ¶
func ParsePutApiSyntheticChecksOriginOrIdResponse(rsp *http.Response) (*PutApiSyntheticChecksOriginOrIdResponse, error)
ParsePutApiSyntheticChecksOriginOrIdResponse parses an HTTP response from a PutApiSyntheticChecksOriginOrIdWithResponse call
func (PutApiSyntheticChecksOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiSyntheticChecksOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiSyntheticChecksOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiSyntheticChecksOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiSyntheticChecksOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSON200() *SyntheticCheckDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiSyntheticChecksOriginOrIdResponse) GetJSON400 ¶ added in v1.29.0
func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PutApiSyntheticChecksOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiSyntheticChecksOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiSyntheticChecksOriginOrIdResponse) Status ¶
func (r PutApiSyntheticChecksOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiSyntheticChecksOriginOrIdResponse) StatusCode ¶
func (r PutApiSyntheticChecksOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiTeamsOriginOrIdDisplayJSONRequestBody ¶ added in v1.4.0
type PutApiTeamsOriginOrIdDisplayJSONRequestBody = TeamDisplay
PutApiTeamsOriginOrIdDisplayJSONRequestBody defines body for PutApiTeamsOriginOrIdDisplay for application/json ContentType.
type PutApiTeamsOriginOrIdDisplayResponse ¶ added in v1.4.0
type PutApiTeamsOriginOrIdDisplayResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiTeamsOriginOrIdDisplayResponse ¶ added in v1.4.0
func ParsePutApiTeamsOriginOrIdDisplayResponse(rsp *http.Response) (*PutApiTeamsOriginOrIdDisplayResponse, error)
ParsePutApiTeamsOriginOrIdDisplayResponse parses an HTTP response from a PutApiTeamsOriginOrIdDisplayWithResponse call
func (PutApiTeamsOriginOrIdDisplayResponse) ContentType ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdDisplayResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiTeamsOriginOrIdDisplayResponse) GetBody ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdDisplayResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiTeamsOriginOrIdDisplayResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdDisplayResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiTeamsOriginOrIdDisplayResponse) Status ¶ added in v1.4.0
func (r PutApiTeamsOriginOrIdDisplayResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiTeamsOriginOrIdDisplayResponse) StatusCode ¶ added in v1.4.0
func (r PutApiTeamsOriginOrIdDisplayResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiTeamsOriginOrIdJSONRequestBody ¶ added in v1.17.0
type PutApiTeamsOriginOrIdJSONRequestBody = TeamDefinitionV1Alpha1
PutApiTeamsOriginOrIdJSONRequestBody defines body for PutApiTeamsOriginOrId for application/json ContentType.
type PutApiTeamsOriginOrIdResponse ¶ added in v1.17.0
type PutApiTeamsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TeamDefinitionV1Alpha1
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiTeamsOriginOrIdResponse ¶ added in v1.17.0
func ParsePutApiTeamsOriginOrIdResponse(rsp *http.Response) (*PutApiTeamsOriginOrIdResponse, error)
ParsePutApiTeamsOriginOrIdResponse parses an HTTP response from a PutApiTeamsOriginOrIdWithResponse call
func (PutApiTeamsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiTeamsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiTeamsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdResponse) GetJSON200() *TeamDefinitionV1Alpha1
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiTeamsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiTeamsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiTeamsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r PutApiTeamsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiTeamsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r PutApiTeamsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody ¶ added in v1.17.0
type PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody = TimeSeriesAggregationDefinition
PutApiTimeSeriesAggregationsOriginOrIdJSONRequestBody defines body for PutApiTimeSeriesAggregationsOriginOrId for application/json ContentType.
type PutApiTimeSeriesAggregationsOriginOrIdParams ¶ added in v1.17.0
type PutApiTimeSeriesAggregationsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiTimeSeriesAggregationsOriginOrIdParams defines parameters for PutApiTimeSeriesAggregationsOriginOrId.
type PutApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
type PutApiTimeSeriesAggregationsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TimeSeriesAggregationDefinition
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiTimeSeriesAggregationsOriginOrIdResponse ¶ added in v1.17.0
func ParsePutApiTimeSeriesAggregationsOriginOrIdResponse(rsp *http.Response) (*PutApiTimeSeriesAggregationsOriginOrIdResponse, error)
ParsePutApiTimeSeriesAggregationsOriginOrIdResponse parses an HTTP response from a PutApiTimeSeriesAggregationsOriginOrIdWithResponse call
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON200() *TimeSeriesAggregationDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403 ¶ added in v1.29.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) Status ¶ added in v1.17.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode ¶ added in v1.17.0
func (r PutApiTimeSeriesAggregationsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiViewsOriginOrIdJSONRequestBody ¶
type PutApiViewsOriginOrIdJSONRequestBody = ViewDefinition
PutApiViewsOriginOrIdJSONRequestBody defines body for PutApiViewsOriginOrId for application/json ContentType.
type PutApiViewsOriginOrIdParams ¶
type PutApiViewsOriginOrIdParams struct {
Dataset *Dataset `form:"dataset,omitempty" json:"dataset,omitempty"`
}
PutApiViewsOriginOrIdParams defines parameters for PutApiViewsOriginOrId.
type PutApiViewsOriginOrIdResponse ¶
type PutApiViewsOriginOrIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ViewDefinition
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParsePutApiViewsOriginOrIdResponse ¶
func ParsePutApiViewsOriginOrIdResponse(rsp *http.Response) (*PutApiViewsOriginOrIdResponse, error)
ParsePutApiViewsOriginOrIdResponse parses an HTTP response from a PutApiViewsOriginOrIdWithResponse call
func (PutApiViewsOriginOrIdResponse) ContentType ¶ added in v1.29.0
func (r PutApiViewsOriginOrIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutApiViewsOriginOrIdResponse) GetBody ¶ added in v1.29.0
func (r PutApiViewsOriginOrIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutApiViewsOriginOrIdResponse) GetJSON200 ¶ added in v1.29.0
func (r PutApiViewsOriginOrIdResponse) GetJSON200() *ViewDefinition
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutApiViewsOriginOrIdResponse) GetJSONDefault ¶ added in v1.29.0
func (r PutApiViewsOriginOrIdResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutApiViewsOriginOrIdResponse) Status ¶
func (r PutApiViewsOriginOrIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiViewsOriginOrIdResponse) StatusCode ¶
func (r PutApiViewsOriginOrIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryError ¶ added in v1.9.0
type QueryError struct {
// CorrectedQuery Validated and formatted corrected SQL query. Only present when an AI-suggested correction is available and passes validation.
CorrectedQuery *string `json:"correctedQuery,omitempty"`
// Description Human-readable explanation of what went wrong and how to fix it. May contain markdown (inline code, bold, lists).
Description string `json:"description"`
// Title Short error title in plain text (no markdown), e.g. Syntax error - Invalid LIMIT clause
Title string `json:"title"`
}
QueryError Structured error information for query errors. Present alongside the error string when the error is related to the user's query (syntax, semantic, or execution errors). Not present for system-level errors (unauthorized access, unexpected failures).
type RecordingRule ¶ added in v1.6.0
type RecordingRule = generatedPrometheusRule
RecordingRule is a PrometheusRule CRD document containing recording rule groups.
type RefreshingAuthTokenProvider ¶ added in v1.21.0
type RefreshingAuthTokenProvider interface {
AuthTokenProvider
// ForceRefreshAuthToken returns a token to replace staleAuthToken, which the
// server has just rejected.
//
// staleAuthToken lets an implementation tell "nobody has replaced this yet,
// mint a new one" from "a concurrent caller already replaced it, hand that
// result back". Without it, a single revocation 401s every request in
// flight and each one mints again; for an OAuth provider that means one
// refresh-token rotation per in-flight request, and every extra rotation is
// another chance to land on invalid_grant and force an interactive login.
//
// Returning staleAuthToken unchanged is allowed and signals that no fresher
// credential is available.
ForceRefreshAuthToken(ctx context.Context, staleAuthToken string) (string, error)
}
RefreshingAuthTokenProvider is an AuthTokenProvider that can discard its current token and mint a replacement on demand.
The client calls RefreshingAuthTokenProvider.ForceRefreshAuthToken after a request comes back 401, which recovers from a token the server stopped accepting earlier than its stated expiry — clock skew between the client and the authorization server, or a revocation performed elsewhere. Providers that hold an immutable token (see StaticAuthTokenProvider) do not implement this interface, and the client then surfaces the 401 unchanged.
type RelativeTime ¶
type RelativeTime = string
RelativeTime A relative time reference based on the current time ("now").
**Format**: `now[/unit][+|-duration][/unit]`
A duration chains one or more amount-and-unit pairs, such as `1h30m`. A `/unit` rounds down to the start of that unit: placed before the duration it rounds the current time, placed after it rounds the result.
**Examples**: - `now` - current time - `now-30m` - 30 minutes ago - `now-1h` - 1 hour ago - `now-1d` - 1 day ago - `now-1h30m` - 90 minutes ago - `now/d` - start of the current day - `now-1d/d` - start of the previous day
**Units**: - `s` - seconds - `m` - minutes - `h` - hours - `d` - days - `w` - weeks - `M` - months - `Q` - quarters - `y` - years
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Resource ¶
type Resource struct {
Attributes []KeyValue `json:"attributes"`
// Clouds The property is only included when `includeOTLPSchemaExtensions` is `true`.
Clouds *ResourceClouds `json:"clouds,omitempty"`
// DeploymentEnvironments The property is only included when `includeOTLPSchemaExtensions` is `true`.
DeploymentEnvironments *ResourceDeploymentEnvironments `json:"deploymentEnvironments,omitempty"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
// FirstSeenUnixNano The property is only included when `includeOTLPSchemaExtensions` is `true`.
FirstSeenUnixNano *string `json:"firstSeenUnixNano,omitempty"`
// Languages The property is only included when `includeOTLPSchemaExtensions` is `true`.
Languages *ResourceLanguages `json:"languages,omitempty"`
// LastSeenUnixNano The property is only included when `includeOTLPSchemaExtensions` is `true`.
LastSeenUnixNano *string `json:"lastSeenUnixNano,omitempty"`
// OperationTypes The property is only included when `includeOTLPSchemaExtensions` is `true`.
OperationTypes *[]string `json:"operationTypes,omitempty"`
// Orchestrations The property is only included when `includeOTLPSchemaExtensions` is `true`.
Orchestrations *ResourceOrchestrations `json:"orchestrations,omitempty"`
}
Resource defines model for Resource.
type ResourceCloud ¶
type ResourceCloud = string
ResourceCloud Resource cloud identified based on the `cloud.provider` resource attribute. Some sample values: - alibaba_cloud - aws - azure - gcp - heroku - ibm_cloud - tencent_cloud
type ResourceClouds ¶
type ResourceClouds = []ResourceCloud
ResourceClouds defines model for ResourceClouds.
type ResourceDeploymentEnvironment ¶
type ResourceDeploymentEnvironment = string
ResourceDeploymentEnvironment The value of the `deployment.environment.name` (or `deployment.environment` pre v1.27 semconvs)
type ResourceDeploymentEnvironments ¶
type ResourceDeploymentEnvironments = []ResourceDeploymentEnvironment
ResourceDeploymentEnvironments defines model for ResourceDeploymentEnvironments.
type ResourceLanguage ¶
type ResourceLanguage = string
ResourceLanguage Resource language identified based on the `telemetry.sdk.language` resource attribute. Some sample values: - cpp - dotnet - erlang - go - java - nodejs - php - python - ruby - rust - swift - webjs
type ResourceLanguages ¶
type ResourceLanguages = []ResourceLanguage
ResourceLanguages defines model for ResourceLanguages.
type ResourceLogs ¶
type ResourceLogs struct {
Resource Resource `json:"resource"`
SchemaUrl *string `json:"schemaUrl,omitempty"`
ScopeLogs []ScopeLogs `json:"scopeLogs"`
}
ResourceLogs defines model for ResourceLogs.
type ResourceOrchestration ¶
type ResourceOrchestration string
ResourceOrchestration Resource orchestration identified based on orchestration related resource attributes, e.g., existence of `k8s.*` resource attribute.
const (
Kubernetes ResourceOrchestration = "kubernetes"
)
Defines values for ResourceOrchestration.
func (ResourceOrchestration) Valid ¶ added in v1.29.0
func (e ResourceOrchestration) Valid() bool
Valid indicates whether the value is a known member of the ResourceOrchestration enum.
type ResourceOrchestrations ¶
type ResourceOrchestrations = []ResourceOrchestration
ResourceOrchestrations defines model for ResourceOrchestrations.
type ResourceSpans ¶
type ResourceSpans struct {
Resource Resource `json:"resource"`
SchemaUrl *string `json:"schemaUrl,omitempty"`
ScopeSpans []ScopeSpans `json:"scopeSpans"`
}
ResourceSpans defines model for ResourceSpans.
type RespectNativeCodingAgentTelemetry ¶ added in v1.21.0
type RespectNativeCodingAgentTelemetry string
RespectNativeCodingAgentTelemetry Controls whether OpenTelemetry telemetry natively emitted by coding agents (e.g. Claude Code) is processed by Darkplane.
- `disabled`: Native coding-agent telemetry is not processed by Darkplane. - `enabled`: Native coding-agent telemetry is processed by Darkplane.
const ( RespectNativeCodingAgentTelemetryDisabled RespectNativeCodingAgentTelemetry = "disabled" RespectNativeCodingAgentTelemetryEnabled RespectNativeCodingAgentTelemetry = "enabled" )
Defines values for RespectNativeCodingAgentTelemetry.
func (RespectNativeCodingAgentTelemetry) Valid ¶ added in v1.29.0
func (e RespectNativeCodingAgentTelemetry) Valid() bool
Valid indicates whether the value is a known member of the RespectNativeCodingAgentTelemetry enum.
type ResultRow ¶ added in v1.6.0
type ResultRow struct {
Values []KeyValue `json:"values"`
}
ResultRow defines model for ResultRow.
type ResultRows ¶ added in v1.6.0
type ResultRows = []ResultRow
ResultRows defines model for ResultRows.
type RetentionClass ¶ added in v1.12.3
type RetentionClass string
RetentionClass The retention class selected for a signal, per dataset. The value is the total retention in days, not an increase on top of a baseline. Customer-selectable signals (logs, spans, web events) expose the full set.
- `30d`: 30 days total (the included baseline). - `60d`: 60 days total. - `90d`: 90 days total. - `120d`: 120 days total. - `210d`: 210 days total. - `390d`: 390 days total.
const ( RetentionClassN120d RetentionClass = "120d" RetentionClassN210d RetentionClass = "210d" RetentionClassN30d RetentionClass = "30d" RetentionClassN390d RetentionClass = "390d" RetentionClassN60d RetentionClass = "60d" RetentionClassN90d RetentionClass = "90d" )
Defines values for RetentionClass.
func (RetentionClass) Valid ¶ added in v1.29.0
func (e RetentionClass) Valid() bool
Valid indicates whether the value is a known member of the RetentionClass enum.
type Sampling ¶
type Sampling struct {
Mode SamplingMode `json:"mode"`
// TimeRange The global time range. We need this to differentiate between a local time selection, e.g., in the heat map, and the global
// time selection that is defining the sampling decision. We do this so that a selection in the heat map (which is based off
// the global time range) and the span list (which is based on the heat map selected time range) show consistent results.
//
// Without this, it could be that an a selection of an empty area in the heat map produces results in the span list.
TimeRange TimeReferenceRange `json:"timeRange"`
}
Sampling defines model for Sampling.
type SamplingCondition ¶ added in v1.1.0
type SamplingCondition struct {
// contains filtered or unexported fields
}
SamplingCondition defines model for SamplingCondition.
func (SamplingCondition) AsSamplingConditionAnd ¶ added in v1.1.0
func (t SamplingCondition) AsSamplingConditionAnd() (SamplingConditionAnd, error)
AsSamplingConditionAnd returns the union data inside the SamplingCondition as a SamplingConditionAnd
func (SamplingCondition) AsSamplingConditionError ¶ added in v1.1.0
func (t SamplingCondition) AsSamplingConditionError() (SamplingConditionError, error)
AsSamplingConditionError returns the union data inside the SamplingCondition as a SamplingConditionError
func (SamplingCondition) AsSamplingConditionOttl ¶ added in v1.1.0
func (t SamplingCondition) AsSamplingConditionOttl() (SamplingConditionOttl, error)
AsSamplingConditionOttl returns the union data inside the SamplingCondition as a SamplingConditionOttl
func (SamplingCondition) AsSamplingConditionProbabilistic ¶ added in v1.1.0
func (t SamplingCondition) AsSamplingConditionProbabilistic() (SamplingConditionProbabilistic, error)
AsSamplingConditionProbabilistic returns the union data inside the SamplingCondition as a SamplingConditionProbabilistic
func (*SamplingCondition) FromSamplingConditionAnd ¶ added in v1.1.0
func (t *SamplingCondition) FromSamplingConditionAnd(v SamplingConditionAnd) error
FromSamplingConditionAnd overwrites any union data inside the SamplingCondition as the provided SamplingConditionAnd
func (*SamplingCondition) FromSamplingConditionError ¶ added in v1.1.0
func (t *SamplingCondition) FromSamplingConditionError(v SamplingConditionError) error
FromSamplingConditionError overwrites any union data inside the SamplingCondition as the provided SamplingConditionError
func (*SamplingCondition) FromSamplingConditionOttl ¶ added in v1.1.0
func (t *SamplingCondition) FromSamplingConditionOttl(v SamplingConditionOttl) error
FromSamplingConditionOttl overwrites any union data inside the SamplingCondition as the provided SamplingConditionOttl
func (*SamplingCondition) FromSamplingConditionProbabilistic ¶ added in v1.1.0
func (t *SamplingCondition) FromSamplingConditionProbabilistic(v SamplingConditionProbabilistic) error
FromSamplingConditionProbabilistic overwrites any union data inside the SamplingCondition as the provided SamplingConditionProbabilistic
func (SamplingCondition) MarshalJSON ¶ added in v1.1.0
func (t SamplingCondition) MarshalJSON() ([]byte, error)
func (*SamplingCondition) MergeSamplingConditionAnd ¶ added in v1.1.0
func (t *SamplingCondition) MergeSamplingConditionAnd(v SamplingConditionAnd) error
MergeSamplingConditionAnd performs a merge with any union data inside the SamplingCondition, using the provided SamplingConditionAnd
func (*SamplingCondition) MergeSamplingConditionError ¶ added in v1.1.0
func (t *SamplingCondition) MergeSamplingConditionError(v SamplingConditionError) error
MergeSamplingConditionError performs a merge with any union data inside the SamplingCondition, using the provided SamplingConditionError
func (*SamplingCondition) MergeSamplingConditionOttl ¶ added in v1.1.0
func (t *SamplingCondition) MergeSamplingConditionOttl(v SamplingConditionOttl) error
MergeSamplingConditionOttl performs a merge with any union data inside the SamplingCondition, using the provided SamplingConditionOttl
func (*SamplingCondition) MergeSamplingConditionProbabilistic ¶ added in v1.1.0
func (t *SamplingCondition) MergeSamplingConditionProbabilistic(v SamplingConditionProbabilistic) error
MergeSamplingConditionProbabilistic performs a merge with any union data inside the SamplingCondition, using the provided SamplingConditionProbabilistic
func (*SamplingCondition) UnmarshalJSON ¶ added in v1.1.0
func (t *SamplingCondition) UnmarshalJSON(b []byte) error
type SamplingConditionAnd ¶ added in v1.1.0
type SamplingConditionAnd struct {
Kind SamplingConditionAndKind `json:"kind"`
Spec SamplingConditionAndSpec `json:"spec"`
}
SamplingConditionAnd defines model for SamplingConditionAnd.
type SamplingConditionAndKind ¶ added in v1.1.0
type SamplingConditionAndKind string
SamplingConditionAndKind defines model for SamplingConditionAnd.Kind.
const (
And SamplingConditionAndKind = "and"
)
Defines values for SamplingConditionAndKind.
func (SamplingConditionAndKind) Valid ¶ added in v1.29.0
func (e SamplingConditionAndKind) Valid() bool
Valid indicates whether the value is a known member of the SamplingConditionAndKind enum.
type SamplingConditionAndSpec ¶ added in v1.1.0
type SamplingConditionAndSpec struct {
Conditions []SamplingCondition `json:"conditions"`
}
SamplingConditionAndSpec defines model for SamplingConditionAndSpec.
type SamplingConditionError ¶ added in v1.1.0
type SamplingConditionError struct {
Kind SamplingConditionErrorKind `json:"kind"`
Spec SamplingConditionErrorSpec `json:"spec"`
}
SamplingConditionError Matches spans that have the have `otel.span.status.code=ERROR`
type SamplingConditionErrorKind ¶ added in v1.1.0
type SamplingConditionErrorKind string
SamplingConditionErrorKind defines model for SamplingConditionError.Kind.
const (
SamplingConditionErrorKindError SamplingConditionErrorKind = "error"
)
Defines values for SamplingConditionErrorKind.
func (SamplingConditionErrorKind) Valid ¶ added in v1.29.0
func (e SamplingConditionErrorKind) Valid() bool
Valid indicates whether the value is a known member of the SamplingConditionErrorKind enum.
type SamplingConditionErrorSpec ¶ added in v1.1.0
type SamplingConditionErrorSpec = interface{}
SamplingConditionErrorSpec defines model for SamplingConditionErrorSpec.
type SamplingConditionOttl ¶ added in v1.1.0
type SamplingConditionOttl struct {
Kind SamplingConditionOttlKind `json:"kind"`
Spec SamplingConditionOttlSpec `json:"spec"`
}
SamplingConditionOttl defines model for SamplingConditionOttl.
type SamplingConditionOttlKind ¶ added in v1.1.0
type SamplingConditionOttlKind string
SamplingConditionOttlKind defines model for SamplingConditionOttl.Kind.
const (
Ottl SamplingConditionOttlKind = "ottl"
)
Defines values for SamplingConditionOttlKind.
func (SamplingConditionOttlKind) Valid ¶ added in v1.29.0
func (e SamplingConditionOttlKind) Valid() bool
Valid indicates whether the value is a known member of the SamplingConditionOttlKind enum.
type SamplingConditionOttlSpec ¶ added in v1.1.0
type SamplingConditionOttlSpec struct {
Ottl string `json:"ottl"`
}
SamplingConditionOttlSpec defines model for SamplingConditionOttlSpec.
type SamplingConditionProbabilistic ¶ added in v1.1.0
type SamplingConditionProbabilistic struct {
Kind SamplingConditionProbabilisticKind `json:"kind"`
Spec SamplingConditionProbabilisticSpec `json:"spec"`
}
SamplingConditionProbabilistic defines model for SamplingConditionProbabilistic.
type SamplingConditionProbabilisticKind ¶ added in v1.1.0
type SamplingConditionProbabilisticKind string
SamplingConditionProbabilisticKind defines model for SamplingConditionProbabilistic.Kind.
const (
Probabilistic SamplingConditionProbabilisticKind = "probabilistic"
)
Defines values for SamplingConditionProbabilisticKind.
func (SamplingConditionProbabilisticKind) Valid ¶ added in v1.29.0
func (e SamplingConditionProbabilisticKind) Valid() bool
Valid indicates whether the value is a known member of the SamplingConditionProbabilisticKind enum.
type SamplingConditionProbabilisticSpec ¶ added in v1.1.0
type SamplingConditionProbabilisticSpec struct {
// Rate A value between 0 and 1 reflecting the percentage of traces that should be sampled probabilistically.
// This sampling decision is made deterministically by inspecting the trace ID.
Rate float32 `json:"rate"`
}
SamplingConditionProbabilisticSpec defines model for SamplingConditionProbabilisticSpec.
type SamplingDefinition ¶ added in v1.1.0
type SamplingDefinition struct {
Kind SamplingDefinitionKind `json:"kind"`
Metadata SamplingMetadata `json:"metadata"`
Spec SamplingSpec `json:"spec"`
}
SamplingDefinition defines model for SamplingDefinition.
type SamplingDefinitionKind ¶ added in v1.1.0
type SamplingDefinitionKind string
SamplingDefinitionKind defines model for SamplingDefinition.Kind.
const (
Dash0Sampling SamplingDefinitionKind = "Dash0Sampling"
)
Defines values for SamplingDefinitionKind.
func (SamplingDefinitionKind) Valid ¶ added in v1.29.0
func (e SamplingDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SamplingDefinitionKind enum.
type SamplingDisplay ¶ added in v1.1.0
type SamplingDisplay struct {
// Name Short-form name for the view to be shown prominently within the view list and atop
// the screen when the view is selected.
Name string `json:"name"`
}
SamplingDisplay defines model for SamplingDisplay.
type SamplingLabels ¶ added in v1.1.0
type SamplingLabels struct {
Custom *map[string]string `json:"custom,omitempty"`
// Dash0Comdataset The dataset the sampling rule belongs to. Always set on responses. On writes it is
// optional and may be replaced by the `dataset` query parameter; when both are set they
// must name the same dataset. When neither is set, the rule is written to the `default`
// dataset.
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
SamplingLabels defines model for SamplingLabels.
type SamplingMetadata ¶ added in v1.1.0
type SamplingMetadata struct {
Labels *SamplingLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
SamplingMetadata defines model for SamplingMetadata.
type SamplingMode ¶
type SamplingMode string
SamplingMode defines model for SamplingMode.
const ( SamplingModeAdaptive SamplingMode = "adaptive" SamplingModeDisabled SamplingMode = "disabled" )
Defines values for SamplingMode.
func (SamplingMode) Valid ¶ added in v1.29.0
func (e SamplingMode) Valid() bool
Valid indicates whether the value is a known member of the SamplingMode enum.
type SamplingRateLimit ¶ added in v1.1.0
type SamplingRateLimit struct {
// Rate The maximum number of traces per minute that should be allowed for this sampling rule. Dash0 will make every
// effort not to exceed this rate. However, there is also no guarantee that Dash0 will match exactly this rate.
// Dash0 is attempting to hit a rate that is lower than or equal to the configured rate.
//
// Dash0 cannot guarantee that very low rate limits (<=16) are upheld.
Rate int `json:"rate"`
}
SamplingRateLimit Rate limit is helpful to avoid ingesting extremely large amounts of spans when the sampling conditions are triggering much more frequently than expected. For example, when the tail sampling rule is configured to match every error, then a system-wide outage can result in a huge amount of spans being ingested.
Note: Probabilistic-only sampling rules do not support rate limiting.
type SamplingRuleCreateRequest ¶ added in v1.1.0
type SamplingRuleCreateRequest = SamplingDefinition
SamplingRuleCreateRequest defines model for SamplingRuleCreateRequest.
type SamplingRuleResponse ¶ added in v1.1.0
type SamplingRuleResponse = SamplingDefinition
SamplingRuleResponse defines model for SamplingRuleResponse.
type SamplingSpec ¶ added in v1.1.0
type SamplingSpec struct {
Conditions SamplingCondition `json:"conditions"`
Display *SamplingDisplay `json:"display,omitempty"`
Enabled bool `json:"enabled"`
// RateLimit Rate limit is helpful to avoid ingesting extremely large amounts of spans when the sampling conditions are
// triggering much more frequently than expected. For example, when the tail sampling rule is configured to match
// every error, then a system-wide outage can result in a huge amount of spans being ingested.
//
// Note: Probabilistic-only sampling rules do not support rate limiting.
RateLimit *SamplingRateLimit `json:"rateLimit,omitempty"`
}
SamplingSpec defines model for SamplingSpec.
type ScheduleTriggerVariableName ¶ added in v1.17.0
type ScheduleTriggerVariableName string
ScheduleTriggerVariableName Variables provided by the `schedule` trigger.
- `cron`: The cron expression that fired.
const (
Cron ScheduleTriggerVariableName = "cron"
)
Defines values for ScheduleTriggerVariableName.
func (ScheduleTriggerVariableName) Valid ¶ added in v1.29.0
func (e ScheduleTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the ScheduleTriggerVariableName enum.
type ScheduledAgenticWorkflowTrigger ¶ added in v1.17.0
type ScheduledAgenticWorkflowTrigger struct {
Kind ScheduledAgenticWorkflowTriggerKind `json:"kind"`
Spec ScheduledAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
ScheduledAgenticWorkflowTrigger defines model for ScheduledAgenticWorkflowTrigger.
type ScheduledAgenticWorkflowTriggerKind ¶ added in v1.17.0
type ScheduledAgenticWorkflowTriggerKind string
ScheduledAgenticWorkflowTriggerKind defines model for ScheduledAgenticWorkflowTrigger.Kind.
const ( ScheduledAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation ScheduledAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" ScheduledAgenticWorkflowTriggerKindFailedCheckNew ScheduledAgenticWorkflowTriggerKind = "failed_check.new" ScheduledAgenticWorkflowTriggerKindGithubCheckRun ScheduledAgenticWorkflowTriggerKind = "github.check_run" ScheduledAgenticWorkflowTriggerKindGithubCheckSuite ScheduledAgenticWorkflowTriggerKind = "github.check_suite" ScheduledAgenticWorkflowTriggerKindGithubDeployment ScheduledAgenticWorkflowTriggerKind = "github.deployment" ScheduledAgenticWorkflowTriggerKindGithubDeploymentStatus ScheduledAgenticWorkflowTriggerKind = "github.deployment_status" ScheduledAgenticWorkflowTriggerKindGithubIssueComment ScheduledAgenticWorkflowTriggerKind = "github.issue_comment" ScheduledAgenticWorkflowTriggerKindGithubPullRequest ScheduledAgenticWorkflowTriggerKind = "github.pull_request" ScheduledAgenticWorkflowTriggerKindGithubPullRequestReview ScheduledAgenticWorkflowTriggerKind = "github.pull_request_review" ScheduledAgenticWorkflowTriggerKindGithubPullRequestReviewComment ScheduledAgenticWorkflowTriggerKind = "github.pull_request_review_comment" ScheduledAgenticWorkflowTriggerKindGithubPush ScheduledAgenticWorkflowTriggerKind = "github.push" ScheduledAgenticWorkflowTriggerKindGithubRelease ScheduledAgenticWorkflowTriggerKind = "github.release" ScheduledAgenticWorkflowTriggerKindGithubWorkflowDispatch ScheduledAgenticWorkflowTriggerKind = "github.workflow_dispatch" ScheduledAgenticWorkflowTriggerKindGithubWorkflowJob ScheduledAgenticWorkflowTriggerKind = "github.workflow_job" ScheduledAgenticWorkflowTriggerKindGithubWorkflowRun ScheduledAgenticWorkflowTriggerKind = "github.workflow_run" ScheduledAgenticWorkflowTriggerKindGitlabMergeRequest ScheduledAgenticWorkflowTriggerKind = "gitlab.merge_request" ScheduledAgenticWorkflowTriggerKindGitlabNote ScheduledAgenticWorkflowTriggerKind = "gitlab.note" ScheduledAgenticWorkflowTriggerKindLinearComment ScheduledAgenticWorkflowTriggerKind = "linear.comment" ScheduledAgenticWorkflowTriggerKindLinearCommentReaction ScheduledAgenticWorkflowTriggerKind = "linear.comment_reaction" ScheduledAgenticWorkflowTriggerKindLinearInitiative ScheduledAgenticWorkflowTriggerKind = "linear.initiative" ScheduledAgenticWorkflowTriggerKindLinearInitiativeUpdate ScheduledAgenticWorkflowTriggerKind = "linear.initiative_update" ScheduledAgenticWorkflowTriggerKindLinearIssue ScheduledAgenticWorkflowTriggerKind = "linear.issue" ScheduledAgenticWorkflowTriggerKindLinearIssueAttachment ScheduledAgenticWorkflowTriggerKind = "linear.issue_attachment" ScheduledAgenticWorkflowTriggerKindLinearIssueComment ScheduledAgenticWorkflowTriggerKind = "linear.issue_comment" ScheduledAgenticWorkflowTriggerKindLinearProject ScheduledAgenticWorkflowTriggerKind = "linear.project" ScheduledAgenticWorkflowTriggerKindLinearProjectUpdate ScheduledAgenticWorkflowTriggerKind = "linear.project_update" ScheduledAgenticWorkflowTriggerKindManual ScheduledAgenticWorkflowTriggerKind = "manual" ScheduledAgenticWorkflowTriggerKindSchedule ScheduledAgenticWorkflowTriggerKind = "schedule" ScheduledAgenticWorkflowTriggerKindSlackBotFailedCheckNew ScheduledAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" ScheduledAgenticWorkflowTriggerKindSlackBotMessage ScheduledAgenticWorkflowTriggerKind = "slack_bot.message" ScheduledAgenticWorkflowTriggerKindSlackBotReaction ScheduledAgenticWorkflowTriggerKind = "slack_bot.reaction" ScheduledAgenticWorkflowTriggerKindWebhook ScheduledAgenticWorkflowTriggerKind = "webhook" )
Defines values for ScheduledAgenticWorkflowTriggerKind.
func (ScheduledAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e ScheduledAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the ScheduledAgenticWorkflowTriggerKind enum.
type ScheduledAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type ScheduledAgenticWorkflowTriggerSpec struct {
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]ScheduleTriggerVariableName `json:"availableVariables,omitempty"`
// Cron Crontab-notation to express when the automation is supposed to run.
//
// “`
// {minute} {hour} {day} {month} {weekday}
// “`
//
// For example, `0 12 * * MON-WED,FRI` is every M/Tu/W/F at noon.
//
// Predefined schedules are also supported:
//
// - `@yearly` (or `@annually`): Run once a year at midnight on January 1st.
// - `@monthly`: Run once a month at midnight on the first day.
// - `@weekly`: Run once a week at midnight on Sunday.
// - `@daily` (or `@midnight`): Run once a day at midnight.
// - `@hourly`: Run once an hour at the beginning of the hour.
// - `@every <duration>`: Run at fixed intervals, e.g. `@every 1h30m` or `@every 5m`.
Cron string `json:"cron"`
}
ScheduledAgenticWorkflowTriggerSpec defines model for ScheduledAgenticWorkflowTriggerSpec.
type ScopeLogs ¶
type ScopeLogs struct {
LogRecords []LogRecord `json:"logRecords"`
SchemaUrl *string `json:"schemaUrl,omitempty"`
// Scope InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.
Scope *InstrumentationScope `json:"scope,omitempty"`
}
ScopeLogs defines model for ScopeLogs.
type ScopeSpans ¶
type ScopeSpans struct {
SchemaUrl *string `json:"schemaUrl,omitempty"`
// Scope InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.
Scope *InstrumentationScope `json:"scope,omitempty"`
Spans []Span `json:"spans"`
}
ScopeSpans defines model for ScopeSpans.
type SecretRef ¶ added in v1.12.3
type SecretRef struct {
// Hash The hash is computed as follows:
// 1. Parse the secrets JSON into a generic structure
// 2. Recursively sort all object keys alphabetically (Unicode code point order)
// 3. Re-serialize to compact JSON (no whitespace between tokens)
// 4. Compute SHA-256 hash of the UTF-8 encoded JSON bytes
// 5. Encode the hash as lowercase hexadecimal string
//
// This ensures the hash is stable and reproducible across different implementations.
Hash string `json:"hash"`
// Id Opaque identifier of the encrypted secret.
Id string `json:"id"`
}
SecretRef defines model for SecretRef.
type SemanticConventionUpgrades ¶ added in v1.12.3
type SemanticConventionUpgrades = string
SemanticConventionUpgrades Choose whether or not semantic convention upgrades should be executed. Can be one of:
- disabled: No upgrade will be executed - latest: We will always upgrade to the latest and greatest - vX.X.X: A SEMVER version. We will automatically upgrade up to that version (inclusive)
type ServiceDurationStatistic ¶ added in v1.28.0
type ServiceDurationStatistic struct {
Duration *ServiceDurationSummary `json:"duration,omitempty"`
}
ServiceDurationStatistic Duration distribution of the requests attributed to the entry. `duration` is `null` when the server declined to compute any duration statistic, or when no request carried duration data.
type ServiceDurationSummary ¶ added in v1.28.0
type ServiceDurationSummary struct {
Avg *float64 `json:"avg,omitempty"`
Max *float64 `json:"max,omitempty"`
Min *float64 `json:"min,omitempty"`
P50 *float64 `json:"p50,omitempty"`
P75 *float64 `json:"p75,omitempty"`
P90 *float64 `json:"p90,omitempty"`
P95 *float64 `json:"p95,omitempty"`
P99 *float64 `json:"p99,omitempty"`
Sum *float64 `json:"sum,omitempty"`
}
ServiceDurationSummary Duration distribution over the requests attributed to the entry. All fields are in seconds.
Every field is optional because `ServiceStatistic` selects duration fields individually, so any subset of the nine can be absent. An absent field was not requested or could not be computed; it is never a zero or a sentinel.
type ServiceRedStatistics ¶ added in v1.28.0
type ServiceRedStatistics struct {
Count *int `json:"count,omitempty"`
Duration *ServiceDurationSummary `json:"duration,omitempty"`
StatusCounts *StatusCounts `json:"statusCounts,omitempty"`
}
ServiceRedStatistics RED statistics for one entry: total request `count`, the per-status breakdown (`statusCounts`), and the duration distribution (`duration`).
Read from the `dash0.spans.red` metric family rather than counted from spans, so `count` is a request total and not a span total. The status breakdown keys off the `otel.span.status.code` metric attribute.
The error rate is not included: derive it as `statusCounts.error / count`. `count` may be `0`, in which case there is no rate to show.
Any field may be `null` when the server declined to compute it, and the enclosing `statistics` field may itself be absent.
type ServiceRef ¶ added in v1.28.0
type ServiceRef struct {
// Name The value of the `service.name` resource attribute.
Name string `json:"name"`
// Namespace The value of the `service.namespace` resource attribute. An
// absent namespace is represented as an empty string.
Namespace string `json:"namespace"`
}
ServiceRef Identifies a service: an OpenTelemetry resource grouped by `service.namespace` + `service.name`.
Field names are unprefixed because the property carrying this object already qualifies them (`service.name`, not `service.serviceName`). That is a deliberate divergence from `StarredServiceRef`, whose prefixed names are already shipped to clients and cannot be renamed without a breaking change, so the two stay separate rather than being consolidated.
type ServiceStatistic ¶ added in v1.28.0
type ServiceStatistic string
ServiceStatistic Selects which statistics the server computes. The unit of selection is the measurement, not the response field, which is why the granularity differs between the status breakdown and the duration distribution.
- `count`: total request count.
- `statusCounts`: the per-status request breakdown, as a whole. It has no leaf members: `unset`, `ok` and `error` are a closed partition of OTel's `StatusCode`, produced by a single aggregate over the status key, so requesting a proper subset saves nothing. Leaf members would advertise configurability this endpoint cannot deliver.
- `duration`: prefix alias for all nine duration fields.
- `duration.min`, `duration.max`, `duration.sum`, `duration.avg`, `duration.p50`, `duration.p75`, `duration.p90`, `duration.p95`, `duration.p99`: individually selectable. Unlike the status breakdown these are an open set of distinct aggregate functions — each is its own aggregate, and a tenth (say `p999`) could be added without disturbing the existing nine.
Four rules govern the vocabulary. None is expressible in OpenAPI, so this description is where they live.
- **`duration` means all nine fields.** It previously meant only the four scalars, alongside a separate `durationPercentiles` member; both are gone, and "scalars only" is now those four leaves spelled out.
- **The list is a set.** Duplicates and overlaps collapse: `["duration", "duration.p99"]` is the same request as `["duration"]`, not an error. `uniqueItems` is deliberately not set: it would reject a repeated member rather than collapse it.
- **Cost is documented, never encoded.** Naming any `duration.p*` pays an exponential-histogram bucket read; `count`, `statusCounts` and the four scalar duration fields come off scalar columns. That is guidance for callers, not a viability constraint: no member implies any other, and the server never widens a request to a superset.
- **Ordering requires coverage, not an exact match.** An alias covers its leaves, so ordering by `duration.p99` is satisfied by either `duration.p99` or `duration`, and ordering by `statusCounts.error` is satisfied by `statusCounts`. An ordering key the requested set does not cover is rejected with `400`, rather than silently added, so a sort can never widen the query beyond what was asked for; the error message names both the offending ordering key and the statistic that would have covered it. Note that `statusCounts` does not cover `count`, even though the three counts sum to it, which is why `errorRate` requires both — rejected the same way, naming `count` and `statusCounts` as what is missing.
const ( ServiceStatisticCount ServiceStatistic = "count" ServiceStatisticDuration ServiceStatistic = "duration" ServiceStatisticDurationAvg ServiceStatistic = "duration.avg" ServiceStatisticDurationMax ServiceStatistic = "duration.max" ServiceStatisticDurationMin ServiceStatistic = "duration.min" ServiceStatisticDurationP50 ServiceStatistic = "duration.p50" ServiceStatisticDurationP75 ServiceStatistic = "duration.p75" ServiceStatisticDurationP90 ServiceStatistic = "duration.p90" ServiceStatisticDurationP95 ServiceStatistic = "duration.p95" ServiceStatisticDurationP99 ServiceStatistic = "duration.p99" ServiceStatisticDurationSum ServiceStatistic = "duration.sum" ServiceStatisticStatusCounts ServiceStatistic = "statusCounts" )
Defines values for ServiceStatistic.
func (ServiceStatistic) Valid ¶ added in v1.29.0
func (e ServiceStatistic) Valid() bool
Valid indicates whether the value is a known member of the ServiceStatistic enum.
type SettingsPerOrganizationAndDatasetInfo ¶ added in v1.12.3
type SettingsPerOrganizationAndDatasetInfo struct {
DatasetSettings []DatasetSettings `json:"datasetSettings"`
GenerativeAiEvaluationSettings []GenerativeAiEvaluationResponse `json:"generativeAiEvaluationSettings"`
SamplingSettings []SamplingDefinition `json:"samplingSettings"`
// SignalControlEdge SignalControl configuration for the organization. Always reports `enabled: true`
// since SignalControl is generally available.
SignalControlEdge SignalControlEdgeSettings `json:"signalControlEdge"`
// SignalControlMetering Edge billing metering enforcement for the organization. Deliberately **not** in this
// schema's `required` list, unlike `signalControlEdge`: an absent object means warn mode,
// so absence has to stay expressible. Requiring it would also force a backfill for every
// existing organization, which the rollout does not need — each one receives an explicit
// value by the end of the transition window.
SignalControlMetering *SignalControlMeteringSettings `json:"signalControlMetering,omitempty"`
// SignalControlOperationCardinalityReduction SaaS-side operation-name cardinality reduction for the organization. When `enabled` is
// false, the operation processor keeps its static behavior and runs no pattern matching or
// inference marking.
SignalControlOperationCardinalityReduction SignalControlOperationCardinalityReductionSettings `json:"signalControlOperationCardinalityReduction"`
// SignalToMetricsSettings Signal-to-metrics rules without `spec.output.type`, which every collector version
// understands.
SignalToMetricsSettings []SignalToMetricsDefinition `json:"signalToMetricsSettings"`
SourceMapSettings []SourceMapIntegration `json:"sourceMapSettings"`
TechnicalID string `json:"technicalID"`
TimeSeriesAggregationSettings []TimeSeriesAggregationDefinition `json:"timeSeriesAggregationSettings"`
}
SettingsPerOrganizationAndDatasetInfo defines model for SettingsPerOrganizationAndDatasetInfo.
type SeverityNumber ¶
type SeverityNumber = int32
SeverityNumber SEVERITY_NUMBER_UNSPECIFIED = 0; SEVERITY_NUMBER_TRACE = 1; SEVERITY_NUMBER_TRACE2 = 2; SEVERITY_NUMBER_TRACE3 = 3; SEVERITY_NUMBER_TRACE4 = 4; SEVERITY_NUMBER_DEBUG = 5; SEVERITY_NUMBER_DEBUG2 = 6; SEVERITY_NUMBER_DEBUG3 = 7; SEVERITY_NUMBER_DEBUG4 = 8; SEVERITY_NUMBER_INFO = 9; SEVERITY_NUMBER_INFO2 = 10; SEVERITY_NUMBER_INFO3 = 11; SEVERITY_NUMBER_INFO4 = 12; SEVERITY_NUMBER_WARN = 13; SEVERITY_NUMBER_WARN2 = 14; SEVERITY_NUMBER_WARN3 = 15; SEVERITY_NUMBER_WARN4 = 16; SEVERITY_NUMBER_ERROR = 17; SEVERITY_NUMBER_ERROR2 = 18; SEVERITY_NUMBER_ERROR3 = 19; SEVERITY_NUMBER_ERROR4 = 20; SEVERITY_NUMBER_FATAL = 21; SEVERITY_NUMBER_FATAL2 = 22; SEVERITY_NUMBER_FATAL3 = 23; SEVERITY_NUMBER_FATAL4 = 24;
type SignalControlEdgeSettings ¶ added in v1.17.0
type SignalControlEdgeSettings struct {
// Enabled Always `true`. Every organization is entitled to use SignalControl.
Enabled bool `json:"enabled"`
}
SignalControlEdgeSettings SignalControl *edge* configuration (the edge facet of SignalControl).
SignalControl is generally available, so this is no longer per-organization state: it is not stored, not settable, and always reports `enabled: true`. It is still returned in the edge-settings payload for Dash0 Operators that still check entitlement before deploying the SignalControl components.
type SignalControlMeteringSettings ¶ added in v1.21.0
type SignalControlMeteringSettings struct {
// Enforce Whether edge collectors enforce billing metering for this organization.
//
// `true` enforces: Signal Control components on edge stop acting on telemetry that no
// metering processor marked, so a capability cannot run on usage nothing metered.
//
// `false` and an absent field both mean warn mode: the capabilities keep working on
// unmarked telemetry and the misconfiguration is only logged and reported. The two
// negatives are collapsed on purpose, so an organization can be returned to warn mode by
// writing `false` rather than by deleting a key, and an organization nobody has touched
// behaves identically to one explicitly parked.
//
// The collector's compiled-in default is warn, permanently — enforcement is only ever
// something the server turns on. A collector that has never synced never enforces, but
// one that has been told to enforce keeps enforcing if it later loses contact.
Enforce *bool `json:"enforce,omitempty"`
}
SignalControlMeteringSettings Per-organization control over edge billing metering enforcement. Set centrally by Dash0 and not customer-configurable.
Deliberately a sibling of `signalControlEdge` rather than a field inside it: that object is a pre-release entitlement gate that goes away at GA, and enforcement has to outlive it.
Every field is optional, and absence is meaningful — see `enforce`.
type SignalControlOperationCardinalityReductionSettings ¶ added in v1.23.0
type SignalControlOperationCardinalityReductionSettings struct {
// Enabled Whether SaaS-side operation-name cardinality reduction runs for the organization.
Enabled bool `json:"enabled"`
}
SignalControlOperationCardinalityReductionSettings Per-organization SignalControl configuration for SaaS-side operation-name cardinality reduction (the operation-name-cardinality-reduction facet of SignalControl). Set centrally by Dash0, not customer-configurable. A sibling of `signalControlEdge` rather than a field inside it, matching how SaaS-side facets are modelled as their own schemas.
type SignalRestriction ¶ added in v1.25.0
type SignalRestriction string
SignalRestriction Whether the list of signal types on an auth token limits what it can reach. Clients must accept values they do not recognize.
const ( SignalRestrictionRestricted SignalRestriction = "restricted" SignalRestrictionUnrestricted SignalRestriction = "unrestricted" )
Defines values for SignalRestriction.
func (SignalRestriction) Valid ¶ added in v1.29.0
func (e SignalRestriction) Valid() bool
Valid indicates whether the value is a known member of the SignalRestriction enum.
type SignalToMetricsBulkUpsertRequest ¶ added in v1.12.3
type SignalToMetricsBulkUpsertRequest struct {
Items []SignalToMetricsDefinition `json:"items"`
}
SignalToMetricsBulkUpsertRequest defines model for SignalToMetricsBulkUpsertRequest.
type SignalToMetricsBulkUpsertResponse ¶ added in v1.12.3
type SignalToMetricsBulkUpsertResponse struct {
// Created Number of rules that were newly created.
Created int `json:"created"`
// Updated Number of rules that were updated.
Updated int `json:"updated"`
}
SignalToMetricsBulkUpsertResponse defines model for SignalToMetricsBulkUpsertResponse.
type SignalToMetricsCounts ¶ added in v1.21.0
type SignalToMetricsCounts struct {
// Logs Counts for rules whose source signal is `logs`.
Logs SignalToMetricsSignalCounts `json:"logs"`
// Spans Counts for rules whose source signal is `spans`.
Spans SignalToMetricsSignalCounts `json:"spans"`
}
SignalToMetricsCounts defines model for SignalToMetricsCounts.
type SignalToMetricsCreateRequest ¶ added in v1.9.0
type SignalToMetricsCreateRequest = SignalToMetricsDefinition
SignalToMetricsCreateRequest defines model for SignalToMetricsCreateRequest.
type SignalToMetricsDefinition ¶ added in v1.9.0
type SignalToMetricsDefinition struct {
Kind SignalToMetricsDefinitionKind `json:"kind"`
Metadata SignalToMetricsMetadata `json:"metadata"`
Spec SignalToMetricsSpec `json:"spec"`
}
SignalToMetricsDefinition defines model for SignalToMetricsDefinition.
type SignalToMetricsDefinitionKind ¶ added in v1.9.0
type SignalToMetricsDefinitionKind string
SignalToMetricsDefinitionKind defines model for SignalToMetricsDefinition.Kind.
const (
Dash0SignalToMetrics SignalToMetricsDefinitionKind = "Dash0SignalToMetrics"
)
Defines values for SignalToMetricsDefinitionKind.
func (SignalToMetricsDefinitionKind) Valid ¶ added in v1.29.0
func (e SignalToMetricsDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SignalToMetricsDefinitionKind enum.
type SignalToMetricsDisplay ¶ added in v1.9.0
type SignalToMetricsDisplay struct {
Name string `json:"name"`
}
SignalToMetricsDisplay defines model for SignalToMetricsDisplay.
type SignalToMetricsGroupAnnotations ¶ added in v1.12.1
type SignalToMetricsGroupAnnotations struct {
// Dash0ComcreatedAt Timestamp when the rule was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComdeletedAt Soft-delete timestamp. Present when the rule has been deleted but not yet purged. Set by the server; read-only.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Note: this resource type does not currently enforce sharing; the field is accepted but has no effect on access.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
SignalToMetricsGroupAnnotations defines model for SignalToMetricsGroupAnnotations.
type SignalToMetricsLabels ¶ added in v1.9.0
type SignalToMetricsLabels struct {
// Dash0Comdataset Dataset this rule belongs to. Defaults to the default dataset when absent.
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
// Dash0Comid Unique internal ID of the signal-to-metrics rule. Set by the server on creation; do not set manually.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for API-managed resources (e.g. the CRD name from an operator or Terraform resource ID). Empty for user-created rules; non-empty for rules created via the internal API.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
// Dash0Comversion Current version of the rule. Needs to be set when updating a rule to prevent conflicting writes.
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
SignalToMetricsLabels defines model for SignalToMetricsLabels.
type SignalToMetricsMatch ¶ added in v1.9.0
type SignalToMetricsMatch struct {
Filters FilterCriteria `json:"filters"`
Signal SignalToMetricsSignalType `json:"signal"`
}
SignalToMetricsMatch defines model for SignalToMetricsMatch.
type SignalToMetricsMetadata ¶ added in v1.9.0
type SignalToMetricsMetadata struct {
Annotations *SignalToMetricsGroupAnnotations `json:"annotations,omitempty"`
Labels *SignalToMetricsLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
SignalToMetricsMetadata defines model for SignalToMetricsMetadata.
type SignalToMetricsOutput ¶ added in v1.9.0
type SignalToMetricsOutput struct {
// Count OTTL value expression for how many times `value` is recorded per matching
// signal. Only allowed when `type` is `exponential-histogram`. Defaults to `"1"`
// when absent.
Count *string `json:"count,omitempty"`
// Description Will be used as metadata on the generated metric.
Description *string `json:"description,omitempty"`
// Interval Defines at what interval to output a data point for the matched signals.
Interval Duration `json:"interval"`
// KeepResourceAttributes Key matchers that select which resource attributes from the incoming signal
// are kept as resource attributes on the output metric. An attribute is kept
// if its key matches any matcher in this list. By default, no additional
// resource attributes are kept.
KeepResourceAttributes *[]Matcher `json:"keepResourceAttributes,omitempty"`
// KeepSignalAttributes Key matchers that select which signal attributes (span attributes for traces,
// log record attributes for logs) from the incoming signal are kept as metric
// attributes (dimensions) on the output metric. An attribute is kept if its
// key matches any matcher in this list. By default, no additional signal
// attributes are kept, except for otel.span.status.code which is always set
// when the signal type is spans and `type` is absent.
KeepSignalAttributes *[]Matcher `json:"keepSignalAttributes,omitempty"`
// MaxSize Maximum number of buckets per positive and negative range of the histogram, between
// `1` and `160`.
// Only allowed when `type` is `exponential-histogram`. Defaults to `160` when absent.
MaxSize *int32 `json:"maxSize,omitempty"`
// Monotonic Whether the sum only increases. Only allowed when `type` is `sum`. Defaults to
// `false` when absent.
Monotonic *bool `json:"monotonic,omitempty"`
// Name The name of the resulting metric
Name string `json:"name"`
// Type The kind of metric to produce. When absent, the rule is a built-in rule whose
// metric is derived from the signal: an exponential histogram of span duration
// for `spans`, a monotonic count of matching records for `logs`. Absence is the
// only way to select the built-in behavior; new built-in rules leave it unset too.
Type *SignalToMetricsOutputType `json:"type,omitempty"`
// Value OTTL value expression producing the number to record, evaluated in the span
// context for `spans` rules and the log context for `logs` rules. Required when
// `type` is set; must be absent otherwise. A non-numeric, nil, or failing result
// records no data point.
Value *string `json:"value,omitempty"`
}
SignalToMetricsOutput defines model for SignalToMetricsOutput.
type SignalToMetricsOutputType ¶ added in v1.28.0
type SignalToMetricsOutputType string
SignalToMetricsOutputType Metric types computed from the `value` OTTL expression, for both `spans` and `logs` rules. - `sum`: Cumulative float64 sum of `value`, monotonic when `monotonic` is true. - `gauge`: Float64 gauge holding the last `value` observed per series. - `exponential-histogram`: Exponential histogram of `value`, recorded `count` times.
const ( SignalToMetricsOutputTypeExponentialHistogram SignalToMetricsOutputType = "exponential-histogram" SignalToMetricsOutputTypeGauge SignalToMetricsOutputType = "gauge" SignalToMetricsOutputTypeSum SignalToMetricsOutputType = "sum" )
Defines values for SignalToMetricsOutputType.
func (SignalToMetricsOutputType) Valid ¶ added in v1.29.0
func (e SignalToMetricsOutputType) Valid() bool
Valid indicates whether the value is a known member of the SignalToMetricsOutputType enum.
type SignalToMetricsResponse ¶ added in v1.9.0
type SignalToMetricsResponse = SignalToMetricsDefinition
SignalToMetricsResponse defines model for SignalToMetricsResponse.
type SignalToMetricsSignalCounts ¶ added in v1.21.0
type SignalToMetricsSignalCounts struct {
// Enabled The subset that is enabled. Disabled rules are `total - enabled`.
Enabled int `json:"enabled"`
// Total Rules with this source signal, enabled and disabled alike.
Total int `json:"total"`
}
SignalToMetricsSignalCounts defines model for SignalToMetricsSignalCounts.
type SignalToMetricsSignalType ¶ added in v1.9.0
type SignalToMetricsSignalType string
SignalToMetricsSignalType defines model for SignalToMetricsSignalType.
const ( SignalToMetricsSignalTypeLogs SignalToMetricsSignalType = "logs" SignalToMetricsSignalTypeSpans SignalToMetricsSignalType = "spans" )
Defines values for SignalToMetricsSignalType.
func (SignalToMetricsSignalType) Valid ¶ added in v1.29.0
func (e SignalToMetricsSignalType) Valid() bool
Valid indicates whether the value is a known member of the SignalToMetricsSignalType enum.
type SignalToMetricsSource
deprecated
added in
v1.9.0
type SignalToMetricsSpec ¶ added in v1.9.0
type SignalToMetricsSpec struct {
// AlternativeDatasetId The slug of the target dataset. Required when targetDatasetMode is
// `alternative` or `both`. Must not be set when targetDatasetMode is
// `original` or absent.
AlternativeDatasetId *string `json:"alternativeDatasetId,omitempty"`
Display SignalToMetricsDisplay `json:"display"`
Enabled bool `json:"enabled"`
Match SignalToMetricsMatch `json:"match"`
Output SignalToMetricsOutput `json:"output"`
// TargetDatasetMode Controls where the generated metric is written.
// Defaults to `original` when absent. Old-format rules omit this field entirely.
TargetDatasetMode *SignalToMetricsTargetDatasetMode `json:"targetDatasetMode,omitempty"`
}
SignalToMetricsSpec defines model for SignalToMetricsSpec.
type SignalToMetricsTargetDatasetMode ¶ added in v1.14.0
type SignalToMetricsTargetDatasetMode string
SignalToMetricsTargetDatasetMode Controls where the generated metric is written. - `original`: Metric lands in the dataset where the rule is defined. - `alternative`: Metric lands in the dataset specified by `alternativeDatasetId`. - `both`: Metric is produced twice — once for the original dataset, once for the alternative.
const ( SignalToMetricsTargetDatasetModeAlternative SignalToMetricsTargetDatasetMode = "alternative" SignalToMetricsTargetDatasetModeBoth SignalToMetricsTargetDatasetMode = "both" SignalToMetricsTargetDatasetModeOriginal SignalToMetricsTargetDatasetMode = "original" )
Defines values for SignalToMetricsTargetDatasetMode.
func (SignalToMetricsTargetDatasetMode) Valid ¶ added in v1.29.0
func (e SignalToMetricsTargetDatasetMode) Valid() bool
Valid indicates whether the value is a known member of the SignalToMetricsTargetDatasetMode enum.
type SignalToMetricsTestRequest ¶ added in v1.12.0
type SignalToMetricsTestRequest struct {
Definition SignalToMetricsDefinition `json:"definition"`
// TimeRange Time window over which to simulate the rule. Defaults to the last 15 minutes.
TimeRange *TimeReferenceRange `json:"timeRange,omitempty"`
}
SignalToMetricsTestRequest defines model for SignalToMetricsTestRequest.
type SignalToMetricsTestResponse ¶ added in v1.12.0
type SignalToMetricsTestResponse struct {
// ExecutionTime A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
ExecutionTime FixedTime `json:"executionTime"`
// MatchedCount Number of signals (spans or logs) matching `spec.match.filters` over the
// evaluated time window.
MatchedCount int64 `json:"matchedCount"`
// TimeRange Concrete time window that was evaluated, with relative references resolved.
TimeRange TimeRange `json:"timeRange"`
}
SignalToMetricsTestResponse defines model for SignalToMetricsTestResponse.
type SignalType ¶ added in v1.25.0
type SignalType string
SignalType Enumeration of valid signal types in Dash0.
const ( SignalTypeAgent0Credits SignalType = "agent0Credits" SignalTypeCodeAgentCommitters SignalType = "codeAgentCommitters" SignalTypeExtendedRetentionLogs SignalType = "extendedRetentionLogs" SignalTypeExtendedRetentionSpans SignalType = "extendedRetentionSpans" SignalTypeExtendedRetentionWebEvents SignalType = "extendedRetentionWebEvents" SignalTypeLogs SignalType = "logs" SignalTypeMetricDataPoints SignalType = "metricDataPoints" SignalTypeProfiles SignalType = "profiles" SignalTypeSessionReplays SignalType = "sessionReplays" SignalTypeSignalControlEdgeLogs SignalType = "signalControlEdgeLogs" SignalTypeSignalControlEdgeMetrics SignalType = "signalControlEdgeMetrics" SignalTypeSignalControlEdgeProfiles SignalType = "signalControlEdgeProfiles" SignalTypeSignalControlEdgeTraces SignalType = "signalControlEdgeTraces" SignalTypeSignalControlManagedLogs SignalType = "signalControlManagedLogs" SignalTypeSignalControlManagedMetrics SignalType = "signalControlManagedMetrics" SignalTypeSignalControlManagedProfiles SignalType = "signalControlManagedProfiles" SignalTypeSignalControlManagedTraces SignalType = "signalControlManagedTraces" SignalTypeSignalControlManagedWebEvents SignalType = "signalControlManagedWebEvents" SignalTypeSpans SignalType = "spans" SignalTypeSyntheticApiChecks SignalType = "syntheticApiChecks" SignalTypeWebEvents SignalType = "webEvents" )
Defines values for SignalType.
func (SignalType) Valid ¶ added in v1.29.0
func (e SignalType) Valid() bool
Valid indicates whether the value is a known member of the SignalType enum.
type SkillAnnotations ¶ added in v1.29.0
type SkillAnnotations struct {
// Dash0ComcreatedAt Timestamp when the skill was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComcreatedBy The Dash0 user ID of the user who created the skill, matching the member's `dash0.com/userId` label. Editing or sharing the skill does not change it. Absent when the skill was created with an API token or by a desired-state source. Set by the server; read-only.
Dash0ComcreatedBy *string `json:"dash0.com/created-by,omitempty"`
// Dash0ComcreatorAvatarUrl Avatar URL of the user in `dash0.com/created-by`. Resolved on every read. Absent when the user has no avatar, `dash0.com/created-by` is absent, or the user has since been deleted. Set by the server; read-only.
Dash0ComcreatorAvatarUrl *string `json:"dash0.com/creator-avatar-url,omitempty"`
// Dash0ComcreatorName Display name of the user in `dash0.com/created-by`: their first and last name, or their email when neither is set. Resolved on every read, so it follows later profile changes. Absent when `dash0.com/created-by` is absent or the user has since been deleted. Set by the server; read-only.
Dash0ComcreatorName *string `json:"dash0.com/creator-name,omitempty"`
// Dash0ComdeletedAt Soft-delete timestamp. Present when the skill has been deleted but not yet purged. Set by the server; read-only.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0Comenabled Whether the skill is active for the user it was read for, `"true"` or `"false"`. A user's own choice wins; without one, the skill is on if any grant that applies to them turns it on by default. The author's grant does; a grant a user adds when sharing does not, so a recipient enables a shared skill themselves. On a create or update by a user, `"false"` disables the skill for that user only and `"true"` enables it, neither appends a version, and a value matching the user's current state stores nothing. A machine token has no user to scope a choice to, so it may send `"true"` but gets 400 for `"false"`. `PUT /api/agent0/custom-skills/{originOrId}/disabled` does the same without an update. A disabled skill drops off the catalogue the worker loads into that user's sandbox.
Dash0Comenabled *string `json:"dash0.com/enabled,omitempty"`
// Dash0ComoverriddenBy The `dash0.com/id` of the skill Agent0 uses instead of this one for the user it was read for. Present only on a skill that is enabled for that user while another enabled skill they can read has the same name and takes priority: their own skill comes first, then the earliest created. Absent when this skill is the one used, is disabled, or the read names no user. Set on list reads only. Set by the server; read-only.
Dash0ComoverriddenBy *string `json:"dash0.com/overridden-by,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
SkillAnnotations defines model for SkillAnnotations.
type SkillCreateRequest ¶ added in v1.29.0
type SkillCreateRequest = SkillDefinition
SkillCreateRequest defines model for SkillCreateRequest.
type SkillDefinition ¶ added in v1.29.0
type SkillDefinition struct {
Kind SkillDefinitionKind `json:"kind"`
Metadata SkillMetadata `json:"metadata"`
Spec SkillSpec `json:"spec"`
}
SkillDefinition defines model for SkillDefinition.
type SkillDefinitionKind ¶ added in v1.29.0
type SkillDefinitionKind string
SkillDefinitionKind defines model for SkillDefinition.Kind.
const (
Dash0Skill SkillDefinitionKind = "Dash0Skill"
)
Defines values for SkillDefinitionKind.
func (SkillDefinitionKind) Valid ¶ added in v1.29.0
func (e SkillDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SkillDefinitionKind enum.
type SkillFile ¶ added in v1.29.0
type SkillFile struct {
// Content Contents of the file.
Content string `json:"content"`
// RelativePath Path of the file relative to the skill root (e.g. `SKILL.md`).
RelativePath string `json:"relativePath"`
}
SkillFile defines model for SkillFile.
type SkillLabels ¶ added in v1.29.0
type SkillLabels struct {
// Dash0Comid Unique internal ID of the skill. Set by the server on creation; do not set manually.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for skills managed as code (e.g. a Terraform resource ID or a `dash0 apply` document). Set on create and immutable afterwards; use it as the `originOrId` path parameter to upsert the skill with PUT. Empty for skills created in the Dash0 UI.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
// Dash0Comversion Current version of the skill. Optional on update: when set, an update whose version no longer matches the stored one is rejected, which prevents conflicting writes; when omitted, the update applies without that check.
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
SkillLabels defines model for SkillLabels.
type SkillListResponse ¶ added in v1.29.0
type SkillListResponse struct {
Skills []SkillDefinition `json:"skills"`
}
SkillListResponse defines model for SkillListResponse.
type SkillMetadata ¶ added in v1.29.0
type SkillMetadata struct {
Annotations *SkillAnnotations `json:"annotations,omitempty"`
Labels *SkillLabels `json:"labels,omitempty"`
// Name Name of the skill, extracted from the `name` field in the `SKILL.md` frontmatter. Unique within the organization unless the organization allows duplicate names; then it is unique per creator, several skills by different creators may share it, and `dash0.com/overridden-by` says which one Agent0 uses. Server-derived and read-only: any value supplied on a write is ignored.
Name *string `json:"name,omitempty"`
}
SkillMetadata defines model for SkillMetadata.
type SkillPermission ¶ added in v1.29.0
type SkillPermission struct {
Actions []CustomSkillAction `json:"actions"`
// DefaultEnabled Whether the skill is on for the users this grant matches who have not turned it on or off themselves. When omitted, an existing grant keeps its value, and a new grant is on unless a user shares it under author permissions, where recipients turn it on themselves. The author's own grant on a new skill is always on. A default can be set to false only in organizations where custom skills belong to their author; elsewhere that answers 400, and setting it to true restores a grant left off. Admins may set it on any grant; members only on a grant for a team they belong to or on their own user grant. Changing it on any other grant answers 403.
DefaultEnabled *bool `json:"defaultEnabled,omitempty"`
// Role An organization role: `admin` or `basic_member`.
Role *string `json:"role,omitempty"`
// TeamId ID of a team in the organization.
TeamId *string `json:"teamId,omitempty"`
// UserId ID of a user in the organization.
UserId *string `json:"userId,omitempty"`
}
SkillPermission A grant of actions on a skill to one user, team or organization role.
type SkillResponse ¶ added in v1.29.0
type SkillResponse = SkillDefinition
SkillResponse defines model for SkillResponse.
type SkillSource ¶ added in v1.29.0
type SkillSource struct {
// Name The skill's name in the repository, as its `SKILL.md` frontmatter read when the skill was last imported or refreshed. Differs from `metadata.name` when the skill was renamed in Dash0: a refresh keeps the Dash0 name and writes it into the refreshed `SKILL.md`, and only updates this field. Defaults to the frontmatter name on create when absent.
Name *string `json:"name,omitempty"`
// Path Path of the skill root within the repository, relative to the repository root (e.g. `skills/incident-response`).
Path string `json:"path"`
// Provider - `github`: The repository is hosted on GitHub.
// - `gitlab`: The repository is hosted on GitLab.
Provider SkillSourceProvider `json:"provider"`
// Ref The branch, tag or commit the skill was imported from (e.g. `v1.0.0`), as named by the imported URL. Absent when the skill was imported from the repository's default branch. A refresh re-reads the skill from this ref.
Ref *string `json:"ref,omitempty"`
// RepositoryUrl URL of the repository the skill was imported from (e.g. `https://github.com/dash0hq/agent-skills`).
RepositoryUrl string `json:"repositoryUrl"`
}
SkillSource The repository a skill was imported from.
type SkillSourceProvider ¶ added in v1.29.0
type SkillSourceProvider string
SkillSourceProvider - `github`: The repository is hosted on GitHub. - `gitlab`: The repository is hosted on GitLab.
const ( SkillSourceProviderGithub SkillSourceProvider = "github" SkillSourceProviderGitlab SkillSourceProvider = "gitlab" )
Defines values for SkillSourceProvider.
func (SkillSourceProvider) Valid ¶ added in v1.29.0
func (e SkillSourceProvider) Valid() bool
Valid indicates whether the value is a known member of the SkillSourceProvider enum.
type SkillSpec ¶ added in v1.29.0
type SkillSpec struct {
// Files The files that make up the skill, each keyed by its path relative to the skill root. Must include a `SKILL.md` in the OpenCode skill format; the server reads the skill's name from its frontmatter.
Files []SkillFile `json:"files"`
// Permissions Who may read, edit and delete the skill. Each entry grants actions to exactly one user, team or organization role. On create, the entries are added to the default grants. On update, a present list replaces the stored grants exactly as sent and an absent one leaves them unchanged. The `admin` role always holds read, edit and delete, except on skills with a `dash0.com/origin`, where it holds read and delete. An `admin` entry can set only its `defaultEnabled`. A skill managed by Terraform, the Dash0 operator or the Dash0 platform accepts no `custom_skill:write` grant. When a user sends the list for a skill with a `dash0.com/origin` that accepts write grants, at least one entry must hold read, edit and delete; on a skill without an origin, the `admin` grant already does.
Permissions *[]SkillPermission `json:"permissions,omitempty"`
// PermittedActions What the calling user may do with the skill. Set by the server; read-only. Absent for callers without a user identity.
PermittedActions *[]CustomSkillAction `json:"permittedActions,omitempty"`
// Source Where the skill was imported from. Set by the Dash0 repository import; absent for skills authored in Dash0 or managed as code. Only a skill with a source can be refreshed from its repository, and its files can then only change through a refresh.
Source *SkillSource `json:"source,omitempty"`
}
SkillSpec defines model for SkillSpec.
type SkillUpdateRequest ¶ added in v1.29.0
type SkillUpdateRequest = SkillDefinition
SkillUpdateRequest defines model for SkillUpdateRequest.
type SlackBotConfig ¶ added in v1.9.0
SlackBotConfig defines model for SlackBotConfig.
type SlackBotFailedCheckAgenticWorkflowTrigger ¶ added in v1.17.0
type SlackBotFailedCheckAgenticWorkflowTrigger struct {
Kind SlackBotFailedCheckAgenticWorkflowTriggerKind `json:"kind"`
Spec SlackBotFailedCheckAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
SlackBotFailedCheckAgenticWorkflowTrigger defines model for SlackBotFailedCheckAgenticWorkflowTrigger.
type SlackBotFailedCheckAgenticWorkflowTriggerKind ¶ added in v1.17.0
type SlackBotFailedCheckAgenticWorkflowTriggerKind string
SlackBotFailedCheckAgenticWorkflowTriggerKind defines model for SlackBotFailedCheckAgenticWorkflowTrigger.Kind.
const ( SlackBotFailedCheckAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation SlackBotFailedCheckAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" SlackBotFailedCheckAgenticWorkflowTriggerKindFailedCheckNew SlackBotFailedCheckAgenticWorkflowTriggerKind = "failed_check.new" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubCheckRun SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.check_run" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubCheckSuite SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.check_suite" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubDeployment SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.deployment" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubDeploymentStatus SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.deployment_status" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubIssueComment SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.issue_comment" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubPullRequest SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.pull_request" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubPullRequestReview SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.pull_request_review" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubPullRequestReviewComment SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.pull_request_review_comment" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubPush SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.push" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubRelease SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.release" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubWorkflowDispatch SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.workflow_dispatch" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubWorkflowJob SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.workflow_job" SlackBotFailedCheckAgenticWorkflowTriggerKindGithubWorkflowRun SlackBotFailedCheckAgenticWorkflowTriggerKind = "github.workflow_run" SlackBotFailedCheckAgenticWorkflowTriggerKindGitlabMergeRequest SlackBotFailedCheckAgenticWorkflowTriggerKind = "gitlab.merge_request" SlackBotFailedCheckAgenticWorkflowTriggerKindGitlabNote SlackBotFailedCheckAgenticWorkflowTriggerKind = "gitlab.note" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearComment SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.comment" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearCommentReaction SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.comment_reaction" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearInitiative SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.initiative" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearInitiativeUpdate SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.initiative_update" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearIssue SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.issue" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearIssueAttachment SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.issue_attachment" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearIssueComment SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.issue_comment" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearProject SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.project" SlackBotFailedCheckAgenticWorkflowTriggerKindLinearProjectUpdate SlackBotFailedCheckAgenticWorkflowTriggerKind = "linear.project_update" SlackBotFailedCheckAgenticWorkflowTriggerKindManual SlackBotFailedCheckAgenticWorkflowTriggerKind = "manual" SlackBotFailedCheckAgenticWorkflowTriggerKindSchedule SlackBotFailedCheckAgenticWorkflowTriggerKind = "schedule" SlackBotFailedCheckAgenticWorkflowTriggerKindSlackBotFailedCheckNew SlackBotFailedCheckAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" SlackBotFailedCheckAgenticWorkflowTriggerKindSlackBotMessage SlackBotFailedCheckAgenticWorkflowTriggerKind = "slack_bot.message" SlackBotFailedCheckAgenticWorkflowTriggerKindSlackBotReaction SlackBotFailedCheckAgenticWorkflowTriggerKind = "slack_bot.reaction" SlackBotFailedCheckAgenticWorkflowTriggerKindWebhook SlackBotFailedCheckAgenticWorkflowTriggerKind = "webhook" )
Defines values for SlackBotFailedCheckAgenticWorkflowTriggerKind.
func (SlackBotFailedCheckAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e SlackBotFailedCheckAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the SlackBotFailedCheckAgenticWorkflowTriggerKind enum.
type SlackBotFailedCheckAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type SlackBotFailedCheckAgenticWorkflowTriggerSpec struct {
// AnnotationFilters Optional filters applied to check annotations at dispatch time. When defined
// and not empty, only failed checks whose annotations satisfy all filter
// criteria trigger this automation (AND semantics). Each criterion specifies an
// annotation key and a matching operator (e.g., is, contains, starts_with, matches).
AnnotationFilters *FilterCriteria `json:"annotationFilters,omitempty"`
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available. The dispatch
// payload carries the Slack event's variables and the failed check's.
AvailableVariables *[]SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item `json:"availableVariables,omitempty"`
// ChannelNames Optional list of Slack channel names (e.g., `general`, `alerts`). When
// specified, only failed checks reported in these channels trigger the automation.
ChannelNames *[]string `json:"channelNames,omitempty"`
// CheckRuleIDs Optional list of check rule IDs. When specified, only failed checks
// whose rule ID matches one of the listed values trigger the automation.
CheckRuleIDs *[]string `json:"checkRuleIDs,omitempty"`
// LabelFilters Optional filters applied to check labels at dispatch time. When defined
// and not empty, only failed checks whose labels satisfy all filter criteria
// trigger this automation (AND semantics). Each criterion specifies a label key
// and a matching operator (e.g., is, contains, starts_with, matches).
LabelFilters *FilterCriteria `json:"labelFilters,omitempty"`
// Message A command or keyword that the Slack message must contain. Evaluated as a
// case-insensitive substring match (e.g., `investigate` matches any message
// containing "investigate").
Message *string `json:"message,omitempty"`
}
SlackBotFailedCheckAgenticWorkflowTriggerSpec defines model for SlackBotFailedCheckAgenticWorkflowTriggerSpec.
type SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item ¶ added in v1.21.0
type SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item struct {
// contains filtered or unexported fields
}
SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item defines model for SlackBotFailedCheckAgenticWorkflowTriggerSpec.availableVariables.Item.
func (SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName ¶ added in v1.21.0
func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsFailedCheckTriggerVariableName() (FailedCheckTriggerVariableName, error)
AsFailedCheckTriggerVariableName returns the union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as a FailedCheckTriggerVariableName
func (SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName ¶ added in v1.21.0
func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName() (SlackTriggerVariableName, error)
AsSlackTriggerVariableName returns the union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as a SlackTriggerVariableName
func (*SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName ¶ added in v1.21.0
func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
FromFailedCheckTriggerVariableName overwrites any union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided FailedCheckTriggerVariableName
func (*SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName ¶ added in v1.21.0
func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName(v SlackTriggerVariableName) error
FromSlackTriggerVariableName overwrites any union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided SlackTriggerVariableName
func (SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON ¶ added in v1.21.0
func (t SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
func (*SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName ¶ added in v1.21.0
func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeFailedCheckTriggerVariableName(v FailedCheckTriggerVariableName) error
MergeFailedCheckTriggerVariableName performs a merge with any union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided FailedCheckTriggerVariableName
func (*SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName ¶ added in v1.21.0
func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName(v SlackTriggerVariableName) error
MergeSlackTriggerVariableName performs a merge with any union data inside the SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided SlackTriggerVariableName
func (*SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON ¶ added in v1.21.0
func (t *SlackBotFailedCheckAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
type SlackBotMessageAgenticWorkflowTrigger ¶ added in v1.17.0
type SlackBotMessageAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the Slack
// thread (`slack.thread`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind SlackBotMessageAgenticWorkflowTriggerKind `json:"kind"`
Spec SlackBotMessageAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
SlackBotMessageAgenticWorkflowTrigger defines model for SlackBotMessageAgenticWorkflowTrigger.
type SlackBotMessageAgenticWorkflowTriggerKind ¶ added in v1.17.0
type SlackBotMessageAgenticWorkflowTriggerKind string
SlackBotMessageAgenticWorkflowTriggerKind defines model for SlackBotMessageAgenticWorkflowTrigger.Kind.
const ( SlackBotMessageAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation SlackBotMessageAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" SlackBotMessageAgenticWorkflowTriggerKindFailedCheckNew SlackBotMessageAgenticWorkflowTriggerKind = "failed_check.new" SlackBotMessageAgenticWorkflowTriggerKindGithubCheckRun SlackBotMessageAgenticWorkflowTriggerKind = "github.check_run" SlackBotMessageAgenticWorkflowTriggerKindGithubCheckSuite SlackBotMessageAgenticWorkflowTriggerKind = "github.check_suite" SlackBotMessageAgenticWorkflowTriggerKindGithubDeployment SlackBotMessageAgenticWorkflowTriggerKind = "github.deployment" SlackBotMessageAgenticWorkflowTriggerKindGithubDeploymentStatus SlackBotMessageAgenticWorkflowTriggerKind = "github.deployment_status" SlackBotMessageAgenticWorkflowTriggerKindGithubIssueComment SlackBotMessageAgenticWorkflowTriggerKind = "github.issue_comment" SlackBotMessageAgenticWorkflowTriggerKindGithubPullRequest SlackBotMessageAgenticWorkflowTriggerKind = "github.pull_request" SlackBotMessageAgenticWorkflowTriggerKindGithubPullRequestReview SlackBotMessageAgenticWorkflowTriggerKind = "github.pull_request_review" SlackBotMessageAgenticWorkflowTriggerKindGithubPullRequestReviewComment SlackBotMessageAgenticWorkflowTriggerKind = "github.pull_request_review_comment" SlackBotMessageAgenticWorkflowTriggerKindGithubPush SlackBotMessageAgenticWorkflowTriggerKind = "github.push" SlackBotMessageAgenticWorkflowTriggerKindGithubRelease SlackBotMessageAgenticWorkflowTriggerKind = "github.release" SlackBotMessageAgenticWorkflowTriggerKindGithubWorkflowDispatch SlackBotMessageAgenticWorkflowTriggerKind = "github.workflow_dispatch" SlackBotMessageAgenticWorkflowTriggerKindGithubWorkflowJob SlackBotMessageAgenticWorkflowTriggerKind = "github.workflow_job" SlackBotMessageAgenticWorkflowTriggerKindGithubWorkflowRun SlackBotMessageAgenticWorkflowTriggerKind = "github.workflow_run" SlackBotMessageAgenticWorkflowTriggerKindGitlabMergeRequest SlackBotMessageAgenticWorkflowTriggerKind = "gitlab.merge_request" SlackBotMessageAgenticWorkflowTriggerKindGitlabNote SlackBotMessageAgenticWorkflowTriggerKind = "gitlab.note" SlackBotMessageAgenticWorkflowTriggerKindLinearComment SlackBotMessageAgenticWorkflowTriggerKind = "linear.comment" SlackBotMessageAgenticWorkflowTriggerKindLinearCommentReaction SlackBotMessageAgenticWorkflowTriggerKind = "linear.comment_reaction" SlackBotMessageAgenticWorkflowTriggerKindLinearInitiative SlackBotMessageAgenticWorkflowTriggerKind = "linear.initiative" SlackBotMessageAgenticWorkflowTriggerKindLinearInitiativeUpdate SlackBotMessageAgenticWorkflowTriggerKind = "linear.initiative_update" SlackBotMessageAgenticWorkflowTriggerKindLinearIssue SlackBotMessageAgenticWorkflowTriggerKind = "linear.issue" SlackBotMessageAgenticWorkflowTriggerKindLinearIssueAttachment SlackBotMessageAgenticWorkflowTriggerKind = "linear.issue_attachment" SlackBotMessageAgenticWorkflowTriggerKindLinearIssueComment SlackBotMessageAgenticWorkflowTriggerKind = "linear.issue_comment" SlackBotMessageAgenticWorkflowTriggerKindLinearProject SlackBotMessageAgenticWorkflowTriggerKind = "linear.project" SlackBotMessageAgenticWorkflowTriggerKindLinearProjectUpdate SlackBotMessageAgenticWorkflowTriggerKind = "linear.project_update" SlackBotMessageAgenticWorkflowTriggerKindManual SlackBotMessageAgenticWorkflowTriggerKind = "manual" SlackBotMessageAgenticWorkflowTriggerKindSchedule SlackBotMessageAgenticWorkflowTriggerKind = "schedule" SlackBotMessageAgenticWorkflowTriggerKindSlackBotFailedCheckNew SlackBotMessageAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" SlackBotMessageAgenticWorkflowTriggerKindSlackBotMessage SlackBotMessageAgenticWorkflowTriggerKind = "slack_bot.message" SlackBotMessageAgenticWorkflowTriggerKindSlackBotReaction SlackBotMessageAgenticWorkflowTriggerKind = "slack_bot.reaction" SlackBotMessageAgenticWorkflowTriggerKindWebhook SlackBotMessageAgenticWorkflowTriggerKind = "webhook" )
Defines values for SlackBotMessageAgenticWorkflowTriggerKind.
func (SlackBotMessageAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e SlackBotMessageAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the SlackBotMessageAgenticWorkflowTriggerKind enum.
type SlackBotMessageAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type SlackBotMessageAgenticWorkflowTriggerSpec struct {
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]SlackTriggerVariableName `json:"availableVariables,omitempty"`
// ChannelNames Optional list of Slack channel names (e.g., `general`, `alerts`). When
// specified, only messages from these channels trigger the automation. When omitted,
// messages from any channel match.
ChannelNames *[]string `json:"channelNames,omitempty"`
// Message A command or keyword that the Slack message must contain. Evaluated as a
// case-insensitive substring match (e.g., `investigate` matches any message
// containing "investigate").
Message string `json:"message"`
// ThreadOnly When true, only messages within a thread trigger the automation. Defaults to false.
ThreadOnly *bool `json:"threadOnly,omitempty"`
// UserHandles Optional list of Slack user handles without the @ prefix (e.g., `jane.doe`).
// When specified, only messages from these users trigger the automation. When omitted,
// messages from any user match.
UserHandles *[]string `json:"userHandles,omitempty"`
}
SlackBotMessageAgenticWorkflowTriggerSpec defines model for SlackBotMessageAgenticWorkflowTriggerSpec.
type SlackBotReactionAgenticWorkflowTrigger ¶ added in v1.17.0
type SlackBotReactionAgenticWorkflowTrigger struct {
// Delivery Defaults to `spawn`. When `continue`, routes into the agent that owns the Slack
// thread (`slack.thread`).
Delivery *AgenticWorkflowTriggerDelivery `json:"delivery,omitempty"`
Kind SlackBotReactionAgenticWorkflowTriggerKind `json:"kind"`
Spec SlackBotReactionAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
SlackBotReactionAgenticWorkflowTrigger defines model for SlackBotReactionAgenticWorkflowTrigger.
type SlackBotReactionAgenticWorkflowTriggerKind ¶ added in v1.17.0
type SlackBotReactionAgenticWorkflowTriggerKind string
SlackBotReactionAgenticWorkflowTriggerKind defines model for SlackBotReactionAgenticWorkflowTrigger.Kind.
const ( SlackBotReactionAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation SlackBotReactionAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" SlackBotReactionAgenticWorkflowTriggerKindFailedCheckNew SlackBotReactionAgenticWorkflowTriggerKind = "failed_check.new" SlackBotReactionAgenticWorkflowTriggerKindGithubCheckRun SlackBotReactionAgenticWorkflowTriggerKind = "github.check_run" SlackBotReactionAgenticWorkflowTriggerKindGithubCheckSuite SlackBotReactionAgenticWorkflowTriggerKind = "github.check_suite" SlackBotReactionAgenticWorkflowTriggerKindGithubDeployment SlackBotReactionAgenticWorkflowTriggerKind = "github.deployment" SlackBotReactionAgenticWorkflowTriggerKindGithubDeploymentStatus SlackBotReactionAgenticWorkflowTriggerKind = "github.deployment_status" SlackBotReactionAgenticWorkflowTriggerKindGithubIssueComment SlackBotReactionAgenticWorkflowTriggerKind = "github.issue_comment" SlackBotReactionAgenticWorkflowTriggerKindGithubPullRequest SlackBotReactionAgenticWorkflowTriggerKind = "github.pull_request" SlackBotReactionAgenticWorkflowTriggerKindGithubPullRequestReview SlackBotReactionAgenticWorkflowTriggerKind = "github.pull_request_review" SlackBotReactionAgenticWorkflowTriggerKindGithubPullRequestReviewComment SlackBotReactionAgenticWorkflowTriggerKind = "github.pull_request_review_comment" SlackBotReactionAgenticWorkflowTriggerKindGithubPush SlackBotReactionAgenticWorkflowTriggerKind = "github.push" SlackBotReactionAgenticWorkflowTriggerKindGithubRelease SlackBotReactionAgenticWorkflowTriggerKind = "github.release" SlackBotReactionAgenticWorkflowTriggerKindGithubWorkflowDispatch SlackBotReactionAgenticWorkflowTriggerKind = "github.workflow_dispatch" SlackBotReactionAgenticWorkflowTriggerKindGithubWorkflowJob SlackBotReactionAgenticWorkflowTriggerKind = "github.workflow_job" SlackBotReactionAgenticWorkflowTriggerKindGithubWorkflowRun SlackBotReactionAgenticWorkflowTriggerKind = "github.workflow_run" SlackBotReactionAgenticWorkflowTriggerKindGitlabMergeRequest SlackBotReactionAgenticWorkflowTriggerKind = "gitlab.merge_request" SlackBotReactionAgenticWorkflowTriggerKindGitlabNote SlackBotReactionAgenticWorkflowTriggerKind = "gitlab.note" SlackBotReactionAgenticWorkflowTriggerKindLinearComment SlackBotReactionAgenticWorkflowTriggerKind = "linear.comment" SlackBotReactionAgenticWorkflowTriggerKindLinearCommentReaction SlackBotReactionAgenticWorkflowTriggerKind = "linear.comment_reaction" SlackBotReactionAgenticWorkflowTriggerKindLinearInitiative SlackBotReactionAgenticWorkflowTriggerKind = "linear.initiative" SlackBotReactionAgenticWorkflowTriggerKindLinearInitiativeUpdate SlackBotReactionAgenticWorkflowTriggerKind = "linear.initiative_update" SlackBotReactionAgenticWorkflowTriggerKindLinearIssue SlackBotReactionAgenticWorkflowTriggerKind = "linear.issue" SlackBotReactionAgenticWorkflowTriggerKindLinearIssueAttachment SlackBotReactionAgenticWorkflowTriggerKind = "linear.issue_attachment" SlackBotReactionAgenticWorkflowTriggerKindLinearIssueComment SlackBotReactionAgenticWorkflowTriggerKind = "linear.issue_comment" SlackBotReactionAgenticWorkflowTriggerKindLinearProject SlackBotReactionAgenticWorkflowTriggerKind = "linear.project" SlackBotReactionAgenticWorkflowTriggerKindLinearProjectUpdate SlackBotReactionAgenticWorkflowTriggerKind = "linear.project_update" SlackBotReactionAgenticWorkflowTriggerKindManual SlackBotReactionAgenticWorkflowTriggerKind = "manual" SlackBotReactionAgenticWorkflowTriggerKindSchedule SlackBotReactionAgenticWorkflowTriggerKind = "schedule" SlackBotReactionAgenticWorkflowTriggerKindSlackBotFailedCheckNew SlackBotReactionAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" SlackBotReactionAgenticWorkflowTriggerKindSlackBotMessage SlackBotReactionAgenticWorkflowTriggerKind = "slack_bot.message" SlackBotReactionAgenticWorkflowTriggerKindSlackBotReaction SlackBotReactionAgenticWorkflowTriggerKind = "slack_bot.reaction" SlackBotReactionAgenticWorkflowTriggerKindWebhook SlackBotReactionAgenticWorkflowTriggerKind = "webhook" )
Defines values for SlackBotReactionAgenticWorkflowTriggerKind.
func (SlackBotReactionAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e SlackBotReactionAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the SlackBotReactionAgenticWorkflowTriggerKind enum.
type SlackBotReactionAgenticWorkflowTriggerSpec ¶ added in v1.17.0
type SlackBotReactionAgenticWorkflowTriggerSpec struct {
// AvailableVariables The trigger-specific variables available as `{{variable.name}}` when this trigger fires.
// Includes both the common Slack variables and reaction-specific variables.
// This is in addition to the built-in variables that are always available.
AvailableVariables *[]SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item `json:"availableVariables,omitempty"`
// ChannelNames Optional list of Slack channel names (e.g., `general`, `alerts`). When
// specified, only reactions in these channels trigger the automation.
ChannelNames *[]string `json:"channelNames,omitempty"`
// Emojis List of emoji names (without colons) that trigger the automation. Each is evaluated
// as an exact match. The automation triggers when any of the listed emojis is used.
Emojis []string `json:"emojis"`
// UserHandles Optional list of Slack user handles without the @ prefix (e.g., `jane.doe`).
// When specified, only reactions from these users trigger the automation.
UserHandles *[]string `json:"userHandles,omitempty"`
}
SlackBotReactionAgenticWorkflowTriggerSpec defines model for SlackBotReactionAgenticWorkflowTriggerSpec.
type SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item ¶ added in v1.17.0
type SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item struct {
// contains filtered or unexported fields
}
SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item defines model for SlackBotReactionAgenticWorkflowTriggerSpec.availableVariables.Item.
func (SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackReactionTriggerVariableName ¶ added in v1.17.0
func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackReactionTriggerVariableName() (SlackReactionTriggerVariableName, error)
AsSlackReactionTriggerVariableName returns the union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item as a SlackReactionTriggerVariableName
func (SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName ¶ added in v1.17.0
func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) AsSlackTriggerVariableName() (SlackTriggerVariableName, error)
AsSlackTriggerVariableName returns the union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item as a SlackTriggerVariableName
func (*SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackReactionTriggerVariableName ¶ added in v1.17.0
func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackReactionTriggerVariableName(v SlackReactionTriggerVariableName) error
FromSlackReactionTriggerVariableName overwrites any union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided SlackReactionTriggerVariableName
func (*SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName ¶ added in v1.17.0
func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) FromSlackTriggerVariableName(v SlackTriggerVariableName) error
FromSlackTriggerVariableName overwrites any union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item as the provided SlackTriggerVariableName
func (SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON ¶ added in v1.17.0
func (t SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MarshalJSON() ([]byte, error)
func (*SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackReactionTriggerVariableName ¶ added in v1.17.0
func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackReactionTriggerVariableName(v SlackReactionTriggerVariableName) error
MergeSlackReactionTriggerVariableName performs a merge with any union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided SlackReactionTriggerVariableName
func (*SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName ¶ added in v1.17.0
func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) MergeSlackTriggerVariableName(v SlackTriggerVariableName) error
MergeSlackTriggerVariableName performs a merge with any union data inside the SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item, using the provided SlackTriggerVariableName
func (*SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON ¶ added in v1.17.0
func (t *SlackBotReactionAgenticWorkflowTriggerSpec_AvailableVariables_Item) UnmarshalJSON(b []byte) error
type SlackConfig ¶ added in v1.9.0
SlackConfig defines model for SlackConfig.
type SlackReactionTriggerVariableName ¶ added in v1.17.0
type SlackReactionTriggerVariableName string
SlackReactionTriggerVariableName Additional variable provided only by the `slack_bot.reaction` trigger.
- `slack.reaction.emoji`: The emoji name (without colons) that was added as a reaction.
const (
SlackReactionEmoji SlackReactionTriggerVariableName = "slack.reaction.emoji"
)
Defines values for SlackReactionTriggerVariableName.
func (SlackReactionTriggerVariableName) Valid ¶ added in v1.29.0
func (e SlackReactionTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the SlackReactionTriggerVariableName enum.
type SlackTriggerVariableName ¶ added in v1.17.0
type SlackTriggerVariableName string
SlackTriggerVariableName Variables provided by all Slack-based triggers (`slack_bot.message`, `slack_bot.reaction`, `slack_bot.failed_check.new`).
- `slack.channel.name`: Name of the Slack channel where the event occurred. - `slack.channel.id`: Slack channel ID. - `slack.user.handle`: Handle of the user who triggered the event. - `slack.user.id`: Slack user ID. - `slack.team.id`: Slack workspace (team) ID. - `slack.message.timestamp`: Timestamp of the message in Slack's format. - `slack.message.text`: Text content of the message. May be absent for some trigger types. - `slack.thread.timestamp`: Thread timestamp. Only present when the event occurred in a thread.
const ( SlackChannelId SlackTriggerVariableName = "slack.channel.id" SlackChannelName SlackTriggerVariableName = "slack.channel.name" SlackMessageText SlackTriggerVariableName = "slack.message.text" SlackMessageTimestamp SlackTriggerVariableName = "slack.message.timestamp" SlackTeamId SlackTriggerVariableName = "slack.team.id" SlackThreadTimestamp SlackTriggerVariableName = "slack.thread.timestamp" SlackUserHandle SlackTriggerVariableName = "slack.user.handle" SlackUserId SlackTriggerVariableName = "slack.user.id" )
Defines values for SlackTriggerVariableName.
func (SlackTriggerVariableName) Valid ¶ added in v1.29.0
func (e SlackTriggerVariableName) Valid() bool
Valid indicates whether the value is a known member of the SlackTriggerVariableName enum.
type SloAlertCondition ¶ added in v1.14.0
type SloAlertCondition struct {
// ConditionRef Reference to an external AlertCondition by name.
ConditionRef *string `json:"conditionRef,omitempty"`
Kind *string `json:"kind,omitempty"`
Metadata *SloAlertConditionMetadata `json:"metadata,omitempty"`
Spec *SloAlertConditionSpec `json:"spec,omitempty"`
}
SloAlertCondition An alert condition that defines when an alert should fire. Can be inline or a reference to an external AlertCondition.
type SloAlertConditionDetails ¶ added in v1.14.0
type SloAlertConditionDetails struct {
// AlertAfter Duration the condition must be valid before alerting. Defaults to 0m.
AlertAfter *Duration `json:"alertAfter,omitempty"`
// Kind Kind of alerting condition. Defaults to 'burnrate'.
Kind *string `json:"kind,omitempty"`
// LookbackWindow Time frame for calculating the threshold (e.g. '1h', '5m').
LookbackWindow Duration `json:"lookbackWindow"`
// Op Comparison operator used to compare against the threshold.
Op SloComparisonOperator `json:"op"`
// Threshold Threshold value for the condition.
Threshold float32 `json:"threshold"`
}
SloAlertConditionDetails Details of the alert condition. Defaults to burnrate kind.
type SloAlertConditionMetadata ¶ added in v1.14.0
type SloAlertConditionMetadata struct {
DisplayName *string `json:"displayName,omitempty"`
Name *string `json:"name,omitempty"`
}
SloAlertConditionMetadata defines model for SloAlertConditionMetadata.
type SloAlertConditionSpec ¶ added in v1.14.0
type SloAlertConditionSpec struct {
// Condition Details of the alert condition. Defaults to burnrate kind.
Condition SloAlertConditionDetails `json:"condition"`
// Description Description of the alert condition, up to 1050 characters.
Description *string `json:"description,omitempty"`
// Severity Severity level of the alert (e.g. 'page', 'warning', 'critical').
Severity string `json:"severity"`
}
SloAlertConditionSpec defines model for SloAlertConditionSpec.
type SloAlertNotificationTarget ¶ added in v1.14.0
type SloAlertNotificationTarget struct {
Kind *string `json:"kind,omitempty"`
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Spec *map[string]interface{} `json:"spec,omitempty"`
// TargetRef Reference to an external AlertNotificationTarget by name.
TargetRef *string `json:"targetRef,omitempty"`
}
SloAlertNotificationTarget An alert notification target. Can be inline or a reference to an external AlertNotificationTarget via targetRef.
type SloAlertPolicy ¶ added in v1.14.0
type SloAlertPolicy struct {
// AlertPolicyRef Reference to an external AlertPolicy by name.
AlertPolicyRef *string `json:"alertPolicyRef,omitempty"`
Kind *string `json:"kind,omitempty"`
Metadata *SloAlertPolicyMetadata `json:"metadata,omitempty"`
Spec *SloAlertPolicySpec `json:"spec,omitempty"`
}
SloAlertPolicy An alert policy following the OpenSLO AlertPolicy structure. Can contain inline conditions and notification targets, or reference an external policy via alertPolicyRef. Not supported by Dash0: alert policies on SLOs are accepted for OpenSLO compatibility but ignored. See the alertPolicies field on SloSpec.
type SloAlertPolicyMetadata ¶ added in v1.14.0
type SloAlertPolicyMetadata struct {
DisplayName *string `json:"displayName,omitempty"`
Name *string `json:"name,omitempty"`
}
SloAlertPolicyMetadata defines model for SloAlertPolicyMetadata.
type SloAlertPolicySpec ¶ added in v1.14.0
type SloAlertPolicySpec struct {
// AlertWhenBreaching Whether to trigger the alert when the condition is breaching.
AlertWhenBreaching bool `json:"alertWhenBreaching"`
// AlertWhenNoData Whether to trigger the alert when no data is available.
AlertWhenNoData bool `json:"alertWhenNoData"`
// AlertWhenResolved Whether to trigger the alert when the condition is resolved.
AlertWhenResolved bool `json:"alertWhenResolved"`
// Conditions Alert conditions (max one condition per OpenSLO v1).
Conditions []SloAlertCondition `json:"conditions"`
// Description Description of the alert policy, up to 1050 characters.
Description *string `json:"description,omitempty"`
// NotificationTargets Notification targets for this alert policy.
NotificationTargets []SloAlertNotificationTarget `json:"notificationTargets"`
}
SloAlertPolicySpec defines model for SloAlertPolicySpec.
type SloAnnotations ¶ added in v1.14.0
type SloAnnotations struct {
// Dash0ComcreatedAt Timestamp when the SLO was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComdeletedAt Soft-delete timestamp. Present when the SLO has been deleted but not yet purged. Set by the server; read-only.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0Comenabled Whether the SLO is actively tracked. Dash0 extension. Client-settable. Stored as a string; valid values are 'true' and 'false'. Defaults to 'true'.
Dash0Comenabled *string `json:"dash0.com/enabled,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising SLOs (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on assets that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on an asset that declares no dash0.com/origin is rejected with a 400 — manage that asset's access via the UI share dialog instead.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
AdditionalProperties map[string]string `json:"-"`
}
SloAnnotations Resource annotations. Keys prefixed with `dash0.com/` are reserved for Dash0-managed metadata. Some reserved keys are server-managed and ignored when supplied by the caller (e.g. the timestamp annotations); others, like `dash0.com/enabled` and `dash0.com/display-name`, are client-settable and honored on write — see the individual property descriptions. `dash0.com/display-name` holds an optional human-readable display name of the SLO, used instead of `metadata.name` when set (blank values are treated as unset). Blank keys are ignored. Use any other key for user-defined annotations, which are stored and returned on read. At most 50 user-defined annotations are allowed.
func (SloAnnotations) Get ¶ added in v1.14.0
func (a SloAnnotations) Get(fieldName string) (value string, found bool)
Getter for additional properties for SloAnnotations. Returns the specified element and whether it was found
func (SloAnnotations) MarshalJSON ¶ added in v1.14.0
func (a SloAnnotations) MarshalJSON() ([]byte, error)
Override default JSON handling for SloAnnotations to handle AdditionalProperties
func (*SloAnnotations) Set ¶ added in v1.14.0
func (a *SloAnnotations) Set(fieldName string, value string)
Setter for additional properties for SloAnnotations
func (*SloAnnotations) UnmarshalJSON ¶ added in v1.14.0
func (a *SloAnnotations) UnmarshalJSON(b []byte) error
Override default JSON handling for SloAnnotations to handle AdditionalProperties
type SloBudgetingMethod ¶ added in v1.14.0
type SloBudgetingMethod string
SloBudgetingMethod - `Occurrences`: Ratio of counts of good events to total events. - `Timeslices`: Ratio of good time slices to total time slices. - `RatioTimeslices`: Average of all time slices' success ratios.
const ( Occurrences SloBudgetingMethod = "Occurrences" RatioTimeslices SloBudgetingMethod = "RatioTimeslices" Timeslices SloBudgetingMethod = "Timeslices" )
Defines values for SloBudgetingMethod.
func (SloBudgetingMethod) Valid ¶ added in v1.29.0
func (e SloBudgetingMethod) Valid() bool
Valid indicates whether the value is a known member of the SloBudgetingMethod enum.
type SloCalendarWindow ¶ added in v1.14.0
type SloCalendarWindow struct {
// StartTime Start time in 24h format without time zone (e.g. '2020-01-21 12:30:00').
StartTime string `json:"startTime"`
// TimeZone IANA Time Zone Database name (e.g. 'America/New_York').
TimeZone string `json:"timeZone"`
}
SloCalendarWindow Calendar alignment configuration for a time window.
type SloComparisonOperator ¶ added in v1.14.0
type SloComparisonOperator string
SloComparisonOperator Conditional operator used to compare the SLI against a threshold value.
const ( SloComparisonOperatorGt SloComparisonOperator = "gt" SloComparisonOperatorGte SloComparisonOperator = "gte" SloComparisonOperatorLt SloComparisonOperator = "lt" SloComparisonOperatorLte SloComparisonOperator = "lte" )
Defines values for SloComparisonOperator.
func (SloComparisonOperator) Valid ¶ added in v1.29.0
func (e SloComparisonOperator) Valid() bool
Valid indicates whether the value is a known member of the SloComparisonOperator enum.
type SloDefinition ¶ added in v1.14.0
type SloDefinition struct {
ApiVersion SloDefinitionApiVersion `json:"apiVersion"`
Kind SloDefinitionKind `json:"kind"`
Metadata SloMetadata `json:"metadata"`
Spec SloSpec `json:"spec"`
}
SloDefinition A Service Level Objective (SLO) that defines a target value or range of values for a service level, described by a Service Level Indicator (SLI). Implements a subset of the OpenSLO v1 specification (https://openslo.com/) with Dash0-specific extensions for access control, dataset scoping, and UI organization.
The API group accepts both the bare `openslo/v1` (upstream OpenSLO v1) and the domain-qualified `openslo.com/v1` on write; reads always return the domain-qualified `openslo.com/v1`. The domain-qualified form (a Dash0 drift from upstream OpenSLO v1's `openslo/v1`) is required so the same document is installable as a Kubernetes CustomResourceDefinition, whose API group must contain a dot.
Currently supported: a single objective with an inline `ratioMetric` indicator, `Occurrences` budgeting, and a rolling `4w` (28d) time window.
Not currently supported — requests using any of these are rejected with a 400 (the one exception is `alertPolicies`, see below): `thresholdMetric` SLIs; `indicatorRef`; `metricSource.metricSourceRef`; multiple or composite objectives (`compositeWeight`, per-objective `indicator`/`indicatorRef`); threshold objective fields (`op`/`value`); time-slice objective fields (`timeSliceTarget`/`timeSliceWindow`); `Timeslices` and `RatioTimeslices` budgeting; and calendar-aligned time windows.
Alerting on SLOs (spec.alertPolicies) is not supported. Unlike the other unsupported fields, `alertPolicies` is accepted for OpenSLO compatibility but silently ignored — it is not stored, evaluated, or returned on read; see spec.alertPolicies for details.
SLOs evaluate with a fixed 5-minute settling delay applied automatically: at any moment, the SLI reflects telemetry that arrived at least 5 minutes ago. This ensures late-arriving signals are included in the SLI computation, at the cost of a small, fixed lag between live behavior and SLO state.
type SloDefinitionApiVersion ¶ added in v1.14.0
type SloDefinitionApiVersion string
SloDefinitionApiVersion defines model for SloDefinition.ApiVersion.
const ( OpensloComv1 SloDefinitionApiVersion = "openslo.com/v1" Openslov1 SloDefinitionApiVersion = "openslo/v1" )
Defines values for SloDefinitionApiVersion.
func (SloDefinitionApiVersion) Valid ¶ added in v1.29.0
func (e SloDefinitionApiVersion) Valid() bool
Valid indicates whether the value is a known member of the SloDefinitionApiVersion enum.
type SloDefinitionKind ¶ added in v1.14.0
type SloDefinitionKind string
SloDefinitionKind defines model for SloDefinition.Kind.
const (
SLO SloDefinitionKind = "SLO"
)
Defines values for SloDefinitionKind.
func (SloDefinitionKind) Valid ¶ added in v1.29.0
func (e SloDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SloDefinitionKind enum.
type SloIndicator ¶ added in v1.14.0
type SloIndicator struct {
// Metadata Metadata for the inline SLI.
Metadata *SloIndicatorMetadata `json:"metadata,omitempty"`
// Spec SLI specification. A ratioMetric must be provided; thresholdMetric is not currently supported.
Spec SloIndicatorSpec `json:"spec"`
}
SloIndicator Inline Service Level Indicator (SLI) following the OpenSLO SLI structure.
type SloIndicatorMetadata ¶ added in v1.14.0
type SloIndicatorMetadata struct {
// DisplayName Human-readable display name for the SLI.
DisplayName *string `json:"displayName,omitempty"`
// Name Name of the SLI.
Name *string `json:"name,omitempty"`
}
SloIndicatorMetadata Metadata for the inline SLI.
type SloIndicatorSpec ¶ added in v1.14.0
type SloIndicatorSpec struct {
// Description Optional description of the SLI, up to 1050 characters.
Description *string `json:"description,omitempty"`
// RatioMetric Ratio-based SLI metric. Provide either good+total, bad+total, or raw with rawType.
RatioMetric *SloRatioMetric `json:"ratioMetric,omitempty"`
// ThresholdMetric Not currently supported — use a ratioMetric instead. Requests with a thresholdMetric SLI are rejected with a 400.
ThresholdMetric *SloThresholdMetric `json:"thresholdMetric,omitempty"`
}
SloIndicatorSpec SLI specification. A ratioMetric must be provided; thresholdMetric is not currently supported.
type SloLabels ¶ added in v1.14.0
type SloLabels struct {
// Dash0Comdataset Dataset this SLO belongs to. Defaults to the default dataset when absent.
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
// Dash0Comid Unique internal ID of the SLO. Set by the server on creation; do not set manually.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for API-managed resources (e.g. the CRD name from an operator or Terraform resource ID). Empty for user-created SLOs; non-empty for SLOs created via the internal API. SLOs with a non-empty origin have write access controlled exclusively through explicit permission entries rather than by the admin role.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
// Dash0Comversion Current version of the SLO. Needs to be set when updating an SLO to prevent conflicting writes.
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
AdditionalProperties map[string]string `json:"-"`
}
SloLabels Resource labels. Keys prefixed with `dash0.com/` are reserved for Dash0-managed metadata (id, version, dataset, origin, source); reserved or blank keys supplied by the caller are ignored. Use any other key for user-defined labels, which are stored and returned on read. At most 50 user-defined labels are allowed.
func (SloLabels) Get ¶ added in v1.14.0
Getter for additional properties for SloLabels. Returns the specified element and whether it was found
func (SloLabels) MarshalJSON ¶ added in v1.14.0
Override default JSON handling for SloLabels to handle AdditionalProperties
func (*SloLabels) UnmarshalJSON ¶ added in v1.14.0
Override default JSON handling for SloLabels to handle AdditionalProperties
type SloMetadata ¶ added in v1.14.0
type SloMetadata struct {
// Annotations Resource annotations. Keys prefixed with `dash0.com/` are reserved for Dash0-managed
// metadata. Some reserved keys are server-managed and ignored when supplied by the
// caller (e.g. the timestamp annotations); others, like `dash0.com/enabled` and
// `dash0.com/display-name`, are client-settable and honored on write — see the
// individual property descriptions. `dash0.com/display-name` holds an optional
// human-readable display name of the SLO, used instead of `metadata.name` when set
// (blank values are treated as unset). Blank keys are ignored. Use any other key for
// user-defined annotations, which are stored and returned on read. At most 50
// user-defined annotations are allowed.
Annotations *SloAnnotations `json:"annotations,omitempty"`
// Labels Resource labels. Keys prefixed with `dash0.com/` are reserved for Dash0-managed
// metadata (id, version, dataset, origin, source); reserved or blank keys supplied by
// the caller are ignored. Use any other key for user-defined labels, which are stored
// and returned on read. At most 50 user-defined labels are allowed.
Labels *SloLabels `json:"labels,omitempty"`
// Name Name of the SLO: an RFC 1123 compatible Kubernetes object name. Used as the display name when the `dash0.com/display-name` annotation is not set.
Name string `json:"name"`
}
SloMetadata defines model for SloMetadata.
type SloMetricSource ¶ added in v1.14.0
type SloMetricSource struct {
// MetricSourceRef Reference to an existing DataSource object by name. Not currently supported — provide an inline `spec.query` instead. Requests that set metricSourceRef are rejected with a 400.
MetricSourceRef *string `json:"metricSourceRef,omitempty"`
// Spec Data-source-specific query parameters. For Prometheus this is `{ query: "<PromQL>" }`, in the shape this schema describes.
Spec map[string]interface{} `json:"spec"`
// Type Predefined data source type. Only 'Prometheus' is currently supported (the default when omitted); other types are rejected with a 400.
Type *string `json:"type,omitempty"`
}
SloMetricSource Connection and query details for a metric data source. Only the Prometheus data source is currently supported: provide the query under `spec.query`. With counter true or omitted, a good, bad or total query must be a bare PromQL vector selector (e.g. `http_requests_total{status="500"}`), because Dash0 wraps it in `sum(increase(...[5m]))`. With counter false, these queries accept any PromQL expression that evaluates to an instant vector, including histogram_count(increase(...[5m])). Raw queries also accept instant-vector expressions. Dash0 wraps counter-false and raw queries only in `sum(...)`.
type SloMetricSourceWrapper ¶ added in v1.14.0
type SloMetricSourceWrapper struct {
// MetricSource Connection and query details for a metric data source. Only the Prometheus data source is currently supported: provide the query under `spec.query`. With counter true or omitted, a good, bad or total query must be a bare PromQL vector selector (e.g. `http_requests_total{status="500"}`), because Dash0 wraps it in `sum(increase(...[5m]))`. With counter false, these queries accept any PromQL expression that evaluates to an instant vector, including histogram_count(increase(...[5m])). Raw queries also accept instant-vector expressions. Dash0 wraps counter-false and raw queries only in `sum(...)`.
MetricSource SloMetricSource `json:"metricSource"`
}
SloMetricSourceWrapper Wraps a metric source for use in ratio metric numerator/denominator/raw.
type SloObjective ¶ added in v1.14.0
type SloObjective struct {
// CompositeWeight Weight multiplier for composite SLOs. Composite SLOs are not currently supported — requests that set it are rejected with a 400.
CompositeWeight *float32 `json:"compositeWeight,omitempty"`
// DisplayName Human-readable name for this objective.
DisplayName *string `json:"displayName,omitempty"`
// Indicator Inline SLI for composite SLOs. Composite SLOs are not currently supported — requests that set a per-objective indicator are rejected with a 400. Use the SLO's top-level indicator.
Indicator *SloIndicator `json:"indicator,omitempty"`
// IndicatorRef Reference to an external SLI for composite SLOs. Composite SLOs are not currently supported — requests that set it are rejected with a 400.
IndicatorRef *string `json:"indicatorRef,omitempty"`
// Op Comparison operator used to compare the SLI against the value (for thresholdMetric SLIs). Not currently supported — requests that set it are rejected with a 400.
Op *SloComparisonOperator `json:"op,omitempty"`
// Target Budget target for this objective as a fraction [0.0, 1.0). Mutually exclusive with targetPercent; one of the two must be provided.
Target *float32 `json:"target,omitempty"`
// TargetPercent Budget target for this objective as a percentage [0.0, 100). Mutually exclusive with target; one of the two must be provided.
TargetPercent *float32 `json:"targetPercent,omitempty"`
// TimeSliceTarget Target for the ratio of good time slices to total time slices (0.0, 1.0] (for Timeslices budgeting). Not currently supported — requests that set it are rejected with a 400.
TimeSliceTarget *float32 `json:"timeSliceTarget,omitempty"`
// TimeSliceWindow Size of a time slice for evaluation (for Timeslices/RatioTimeslices budgeting). Not currently supported — requests that set it are rejected with a 400.
TimeSliceWindow *Duration `json:"timeSliceWindow,omitempty"`
// Value Threshold value to compare against (for thresholdMetric SLIs). Not currently supported — requests that set it are rejected with a 400.
Value *float32 `json:"value,omitempty"`
}
SloObjective An objective threshold for the SLO. Defines tolerance levels for the SLI metrics.
type SloRatioMetric ¶ added in v1.14.0
type SloRatioMetric struct {
// Bad The numerator representing bad events. Either good or bad must be provided when using total.
Bad *SloMetricSourceWrapper `json:"bad,omitempty"`
// Counter True (the default) for bare counter selectors, which Dash0 wraps in increase over five minutes. False for instant-vector expressions that already produce event counts, including histogram_count, or for gauge values. Ignored when using raw.
Counter *bool `json:"counter,omitempty"`
// Good The numerator representing good events. Either good or bad must be provided when using total.
Good *SloMetricSourceWrapper `json:"good,omitempty"`
// Raw A precomputed ratio, either a stored metric or any PromQL expression that evaluates to an instant vector. Cannot be used together with good/bad/total.
Raw *SloMetricSourceWrapper `json:"raw,omitempty"`
// RawType Required with raw. Indicates how the stored ratio was calculated:
// - `success`: good/total
// - `failure`: bad/total
RawType *SloRawType `json:"rawType,omitempty"`
// Total The denominator representing total events. Used with either good or bad.
Total *SloMetricSourceWrapper `json:"total,omitempty"`
}
SloRatioMetric Ratio-based SLI metric. Provide either good+total, bad+total, or raw with rawType.
type SloRawType ¶ added in v1.14.0
type SloRawType string
SloRawType Required with raw. Indicates how the stored ratio was calculated: - `success`: good/total - `failure`: bad/total
const ( SloRawTypeFailure SloRawType = "failure" SloRawTypeSuccess SloRawType = "success" )
Defines values for SloRawType.
func (SloRawType) Valid ¶ added in v1.29.0
func (e SloRawType) Valid() bool
Valid indicates whether the value is a known member of the SloRawType enum.
type SloSpec ¶ added in v1.14.0
type SloSpec struct {
// AlertPolicies Alert policies for this SLO, following the OpenSLO v1 specification.
// Not supported by Dash0. This field is accepted for OpenSLO compatibility, but any alert policies are ignored: they are not stored, not evaluated, and not returned when reading the SLO back.
AlertPolicies *[]SloAlertPolicy `json:"alertPolicies,omitempty"`
// BudgetingMethod Only `Occurrences` is currently supported. `Timeslices` and `RatioTimeslices` are not currently supported and requests using them are rejected with a 400.
BudgetingMethod SloBudgetingMethod `json:"budgetingMethod"`
// Description Optional description of the SLO, up to 1050 characters.
Description *string `json:"description,omitempty"`
// Indicator Inline Service Level Indicator (SLI). An inline indicator is required (indicatorRef is not currently supported).
Indicator *SloIndicator `json:"indicator,omitempty"`
// IndicatorRef Name of an external SLI. Not currently supported — provide an inline indicator instead. Requests that set indicatorRef are rejected with a 400.
IndicatorRef *string `json:"indicatorRef,omitempty"`
// Objectives Thresholds for the SLO. Exactly one objective is supported; multiple or composite objectives are not currently supported and requests declaring more than one objective are rejected with a 400.
Objectives []SloObjective `json:"objectives"`
// Service The service this SLO is associated with. A `/` separates the service namespace from the service name, so `payments/eu` resolves to namespace `payments` and name `eu`, and a value without a slash is just the service name. If a service name itself contains a `/`, prefix the value with a leading `/` to treat the rest as a literal name with no namespace; for example `/payments/eu` resolves to the name `payments/eu`. If nothing matches, the SLO is simply not linked to a service.
Service *string `json:"service,omitempty"`
// TimeWindow Optional. A single rolling time window with a `4w` (28d) duration. Only rolling `4w`/`28d` windows are currently supported; calendar-aligned windows and other durations are rejected with a 400. When omitted, a rolling 28d window is used. Note the evaluation window is currently fixed at 28d regardless of the value provided.
TimeWindow *[]SloTimeWindow `json:"timeWindow,omitempty"`
}
SloSpec defines model for SloSpec.
type SloThresholdMetric ¶ added in v1.14.0
type SloThresholdMetric struct {
// MetricSource Connection and query details for a metric data source. Only the Prometheus data source is currently supported: provide the query under `spec.query`. With counter true or omitted, a good, bad or total query must be a bare PromQL vector selector (e.g. `http_requests_total{status="500"}`), because Dash0 wraps it in `sum(increase(...[5m]))`. With counter false, these queries accept any PromQL expression that evaluates to an instant vector, including histogram_count(increase(...[5m])). Raw queries also accept instant-vector expressions. Dash0 wraps counter-false and raw queries only in `sum(...)`.
MetricSource SloMetricSource `json:"metricSource"`
}
SloThresholdMetric Threshold-based SLI metric. Raw data from the metric source is compared against objective thresholds (op and value on the objective, not here). Not currently supported — use a ratioMetric instead.
type SloTimeWindow ¶ added in v1.14.0
type SloTimeWindow struct {
// Calendar Calendar alignment details. Calendar-aligned windows are not currently supported and are rejected with a 400.
Calendar *SloCalendarWindow `json:"calendar,omitempty"`
// Duration Duration of the window. Only '4w' or '28d' is currently supported; other durations are rejected with a 400.
Duration Duration `json:"duration"`
// IsRolling Whether this is a rolling time window. Must be true — only rolling windows are currently supported.
IsRolling *bool `json:"isRolling,omitempty"`
}
SloTimeWindow A time window for the SLO. Only a rolling `4w`/`28d` window is currently supported.
type SourceMapIntegration ¶ added in v1.12.3
type SourceMapIntegration struct {
Kind SourceMapIntegrationKind `json:"kind"`
Spec SourceMapIntegrationSpec `json:"spec"`
}
SourceMapIntegration defines model for SourceMapIntegration.
type SourceMapIntegrationKind ¶ added in v1.12.3
type SourceMapIntegrationKind string
SourceMapIntegrationKind defines model for SourceMapIntegration.Kind.
const (
SourceMap SourceMapIntegrationKind = "source_map"
)
Defines values for SourceMapIntegrationKind.
func (SourceMapIntegrationKind) Valid ¶ added in v1.29.0
func (e SourceMapIntegrationKind) Valid() bool
Valid indicates whether the value is a known member of the SourceMapIntegrationKind enum.
type SourceMapIntegrationSecrets ¶ added in v1.12.3
type SourceMapIntegrationSecrets struct {
// BearerToken Bearer token for authorization
BearerToken *string `json:"bearerToken,omitempty"`
// Headers Secret header values keyed by header name
Headers *map[string]string `json:"headers,omitempty"`
// Password Basic auth password
Password *string `json:"password,omitempty"`
}
SourceMapIntegrationSecrets defines model for SourceMapIntegrationSecrets.
type SourceMapIntegrationSpec ¶ added in v1.12.3
type SourceMapIntegrationSpec struct {
// AuthType Which authentication scheme the stored secrets carry. secretsRef alone cannot express this, because the same secret blob also holds custom header values.
AuthType *SourceMapIntegrationSpecAuthType `json:"authType,omitempty"`
// Headers Custom HTTP headers to include in requests
Headers *map[string]string `json:"headers,omitempty"`
// Secrets Note, this field will be stripped out before the config is exposed via the API
Secrets *SourceMapIntegrationSecrets `json:"secrets,omitempty"`
SecretsRef *SecretRef `json:"secretsRef,omitempty"`
// UrlPrefixes URL prefixes for source map matching
UrlPrefixes []string `json:"urlPrefixes"`
// Username Basic auth username
Username *string `json:"username,omitempty"`
}
SourceMapIntegrationSpec defines model for SourceMapIntegrationSpec.
type SourceMapIntegrationSpecAuthType ¶ added in v1.23.0
type SourceMapIntegrationSpecAuthType string
SourceMapIntegrationSpecAuthType Which authentication scheme the stored secrets carry. secretsRef alone cannot express this, because the same secret blob also holds custom header values.
const ( SourceMapIntegrationSpecAuthTypeBasic SourceMapIntegrationSpecAuthType = "basic" SourceMapIntegrationSpecAuthTypeBearer SourceMapIntegrationSpecAuthType = "bearer" SourceMapIntegrationSpecAuthTypeNone SourceMapIntegrationSpecAuthType = "none" )
Defines values for SourceMapIntegrationSpecAuthType.
func (SourceMapIntegrationSpecAuthType) Valid ¶ added in v1.29.0
func (e SourceMapIntegrationSpecAuthType) Valid() bool
Valid indicates whether the value is a known member of the SourceMapIntegrationSpecAuthType enum.
type SpamFilter ¶ added in v1.12.0
type SpamFilter = SpamFilterDefinition
SpamFilter is a convenience alias for SpamFilterDefinition (v1alpha1).
type SpamFilterAnnotations ¶ added in v1.12.0
type SpamFilterAnnotations struct {
// Dash0Comenabled Whether this spam filter is active. Defaults to `"true"`.
// When set to `"false"`, the filter is skipped.
Dash0Comenabled *SpamFilterAnnotationsDash0Comenabled `json:"dash0.com/enabled,omitempty"`
}
SpamFilterAnnotations Spam filters use hard delete (removed from the dataset settings array), so there is no `dash0.com/deleted-at` annotation. Timestamps (`created-at`, `updated-at`) are not tracked because filters are stored as elements of a JSONB array inside the dataset settings, which has no per-element timestamp support.
type SpamFilterAnnotationsDash0Comenabled ¶ added in v1.12.0
type SpamFilterAnnotationsDash0Comenabled string
SpamFilterAnnotationsDash0Comenabled Whether this spam filter is active. Defaults to `"true"`. When set to `"false"`, the filter is skipped.
const ( False SpamFilterAnnotationsDash0Comenabled = "false" True SpamFilterAnnotationsDash0Comenabled = "true" )
Defines values for SpamFilterAnnotationsDash0Comenabled.
func (SpamFilterAnnotationsDash0Comenabled) Valid ¶ added in v1.29.0
func (e SpamFilterAnnotationsDash0Comenabled) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterAnnotationsDash0Comenabled enum.
type SpamFilterApiVersion ¶ added in v1.12.3
type SpamFilterApiVersion string
SpamFilterApiVersion API version of the spam filter CRD. - `v1alpha1`: spec uses `contexts` (array, single element). - `v1alpha2`: spec uses `context` (scalar).
const ( SpamFilterApiVersionV1alpha1 SpamFilterApiVersion = "v1alpha1" SpamFilterApiVersionV1alpha2 SpamFilterApiVersion = "v1alpha2" )
Defines values for SpamFilterApiVersion.
func (SpamFilterApiVersion) Valid ¶ added in v1.29.0
func (e SpamFilterApiVersion) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterApiVersion enum.
type SpamFilterApiVersionV1Alpha1 ¶ added in v1.12.1
type SpamFilterApiVersionV1Alpha1 string
SpamFilterApiVersionV1Alpha1 defines model for SpamFilterApiVersionV1Alpha1.
const (
SpamFilterApiVersionV1Alpha1V1alpha1 SpamFilterApiVersionV1Alpha1 = "v1alpha1"
)
Defines values for SpamFilterApiVersionV1Alpha1.
func (SpamFilterApiVersionV1Alpha1) Valid ¶ added in v1.29.0
func (e SpamFilterApiVersionV1Alpha1) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterApiVersionV1Alpha1 enum.
type SpamFilterApiVersionV1Alpha2 ¶ added in v1.12.1
type SpamFilterApiVersionV1Alpha2 string
SpamFilterApiVersionV1Alpha2 defines model for SpamFilterApiVersionV1Alpha2.
const (
SpamFilterApiVersionV1Alpha2V1alpha2 SpamFilterApiVersionV1Alpha2 = "v1alpha2"
)
Defines values for SpamFilterApiVersionV1Alpha2.
func (SpamFilterApiVersionV1Alpha2) Valid ¶ added in v1.29.0
func (e SpamFilterApiVersionV1Alpha2) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterApiVersionV1Alpha2 enum.
type SpamFilterCreateRequest ¶ added in v1.12.0
type SpamFilterCreateRequest struct {
// contains filtered or unexported fields
}
SpamFilterCreateRequest defines model for SpamFilterCreateRequest.
func (SpamFilterCreateRequest) AsSpamFilterDefinition ¶ added in v1.12.1
func (t SpamFilterCreateRequest) AsSpamFilterDefinition() (SpamFilterDefinition, error)
AsSpamFilterDefinition returns the union data inside the SpamFilterCreateRequest as a SpamFilterDefinition
func (SpamFilterCreateRequest) AsSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t SpamFilterCreateRequest) AsSpamFilterDefinitionV1Alpha2() (SpamFilterDefinitionV1Alpha2, error)
AsSpamFilterDefinitionV1Alpha2 returns the union data inside the SpamFilterCreateRequest as a SpamFilterDefinitionV1Alpha2
func (*SpamFilterCreateRequest) FromSpamFilterDefinition ¶ added in v1.12.1
func (t *SpamFilterCreateRequest) FromSpamFilterDefinition(v SpamFilterDefinition) error
FromSpamFilterDefinition overwrites any union data inside the SpamFilterCreateRequest as the provided SpamFilterDefinition
func (*SpamFilterCreateRequest) FromSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t *SpamFilterCreateRequest) FromSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
FromSpamFilterDefinitionV1Alpha2 overwrites any union data inside the SpamFilterCreateRequest as the provided SpamFilterDefinitionV1Alpha2
func (SpamFilterCreateRequest) MarshalJSON ¶ added in v1.12.1
func (t SpamFilterCreateRequest) MarshalJSON() ([]byte, error)
func (*SpamFilterCreateRequest) MergeSpamFilterDefinition ¶ added in v1.12.1
func (t *SpamFilterCreateRequest) MergeSpamFilterDefinition(v SpamFilterDefinition) error
MergeSpamFilterDefinition performs a merge with any union data inside the SpamFilterCreateRequest, using the provided SpamFilterDefinition
func (*SpamFilterCreateRequest) MergeSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t *SpamFilterCreateRequest) MergeSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
MergeSpamFilterDefinitionV1Alpha2 performs a merge with any union data inside the SpamFilterCreateRequest, using the provided SpamFilterDefinitionV1Alpha2
func (*SpamFilterCreateRequest) UnmarshalJSON ¶ added in v1.12.1
func (t *SpamFilterCreateRequest) UnmarshalJSON(b []byte) error
type SpamFilterDefinition ¶ added in v1.12.0
type SpamFilterDefinition struct {
ApiVersion *SpamFilterApiVersionV1Alpha1 `json:"apiVersion,omitempty"`
Kind SpamFilterDefinitionKind `json:"kind"`
Metadata SpamFilterMetadata `json:"metadata"`
// Spec v1alpha1 spam filter specification. The `filter` field defines structured
// criteria that the server compiles into an OTTL condition for evaluation.
Spec SpamFilterSpec `json:"spec"`
}
SpamFilterDefinition v1alpha1 spam filter definition. Uses `contexts` (array) in the spec.
type SpamFilterDefinitionKind ¶ added in v1.12.0
type SpamFilterDefinitionKind string
SpamFilterDefinitionKind defines model for SpamFilterDefinition.Kind.
const (
SpamFilterDefinitionKindDash0SpamFilter SpamFilterDefinitionKind = "Dash0SpamFilter"
)
Defines values for SpamFilterDefinitionKind.
func (SpamFilterDefinitionKind) Valid ¶ added in v1.29.0
func (e SpamFilterDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterDefinitionKind enum.
type SpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
type SpamFilterDefinitionV1Alpha2 struct {
ApiVersion SpamFilterApiVersionV1Alpha2 `json:"apiVersion"`
Kind SpamFilterDefinitionV1Alpha2Kind `json:"kind"`
Metadata SpamFilterMetadata `json:"metadata"`
// Spec v1alpha2 spam filter specification. The `filter` field defines structured
// criteria that the server compiles into an OTTL condition for evaluation.
Spec SpamFilterSpecV1Alpha2 `json:"spec"`
}
SpamFilterDefinitionV1Alpha2 v1alpha2 spam filter definition. Uses `context` (scalar) in the spec.
type SpamFilterDefinitionV1Alpha2Kind ¶ added in v1.12.1
type SpamFilterDefinitionV1Alpha2Kind string
SpamFilterDefinitionV1Alpha2Kind defines model for SpamFilterDefinitionV1Alpha2.Kind.
const (
SpamFilterDefinitionV1Alpha2KindDash0SpamFilter SpamFilterDefinitionV1Alpha2Kind = "Dash0SpamFilter"
)
Defines values for SpamFilterDefinitionV1Alpha2Kind.
func (SpamFilterDefinitionV1Alpha2Kind) Valid ¶ added in v1.29.0
func (e SpamFilterDefinitionV1Alpha2Kind) Valid() bool
Valid indicates whether the value is a known member of the SpamFilterDefinitionV1Alpha2Kind enum.
type SpamFilterLabels ¶ added in v1.12.0
type SpamFilterLabels struct {
Custom *map[string]string `json:"custom,omitempty"`
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for this spam filter. Must be unique per
// organization and dataset when set. Used by Infrastructure-as-Code
// tools (Terraform, Kubernetes operator). Auto-generated as
// `api-<uuid>` on POST if not provided.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
}
SpamFilterLabels defines model for SpamFilterLabels.
type SpamFilterMetadata ¶ added in v1.12.0
type SpamFilterMetadata struct {
// Annotations Spam filters use hard delete (removed from the dataset settings array),
// so there is no `dash0.com/deleted-at` annotation. Timestamps
// (`created-at`, `updated-at`) are not tracked because filters are stored
// as elements of a JSONB array inside the dataset settings, which has no
// per-element timestamp support.
Annotations *SpamFilterAnnotations `json:"annotations,omitempty"`
Labels *SpamFilterLabels `json:"labels,omitempty"`
// Name Human-readable name for the spam filter.
Name string `json:"name"`
}
SpamFilterMetadata defines model for SpamFilterMetadata.
type SpamFilterObject ¶ added in v1.12.1
type SpamFilterObject interface {
// contains filtered or unexported methods
}
SpamFilterObject is the marker interface for spam filter values returned by Client.GetSpamFilter. The upstream API models the response as a union over v1alpha1 and v1alpha2 shapes; this SDK does not convert between versions, so the caller type-switches on the concrete type:
switch v := got.(type) {
case *SpamFilter:
// v1alpha1: v.Spec.Contexts is a []TelemetryFilterContext
case *SpamFilterV1Alpha2:
// v1alpha2: v.Spec.Context is a single TelemetryFilterContext
}
This mirrors the Kubernetes runtime.Object pattern: decode into whichever concrete type the wire actually carried, expose it through a marker, and let the caller dispatch.
type SpamFilterResponse ¶ added in v1.12.0
type SpamFilterResponse struct {
// contains filtered or unexported fields
}
SpamFilterResponse defines model for SpamFilterResponse.
func (SpamFilterResponse) AsSpamFilterDefinition ¶ added in v1.12.1
func (t SpamFilterResponse) AsSpamFilterDefinition() (SpamFilterDefinition, error)
AsSpamFilterDefinition returns the union data inside the SpamFilterResponse as a SpamFilterDefinition
func (SpamFilterResponse) AsSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t SpamFilterResponse) AsSpamFilterDefinitionV1Alpha2() (SpamFilterDefinitionV1Alpha2, error)
AsSpamFilterDefinitionV1Alpha2 returns the union data inside the SpamFilterResponse as a SpamFilterDefinitionV1Alpha2
func (*SpamFilterResponse) FromSpamFilterDefinition ¶ added in v1.12.1
func (t *SpamFilterResponse) FromSpamFilterDefinition(v SpamFilterDefinition) error
FromSpamFilterDefinition overwrites any union data inside the SpamFilterResponse as the provided SpamFilterDefinition
func (*SpamFilterResponse) FromSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t *SpamFilterResponse) FromSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
FromSpamFilterDefinitionV1Alpha2 overwrites any union data inside the SpamFilterResponse as the provided SpamFilterDefinitionV1Alpha2
func (SpamFilterResponse) MarshalJSON ¶ added in v1.12.1
func (t SpamFilterResponse) MarshalJSON() ([]byte, error)
func (*SpamFilterResponse) MergeSpamFilterDefinition ¶ added in v1.12.1
func (t *SpamFilterResponse) MergeSpamFilterDefinition(v SpamFilterDefinition) error
MergeSpamFilterDefinition performs a merge with any union data inside the SpamFilterResponse, using the provided SpamFilterDefinition
func (*SpamFilterResponse) MergeSpamFilterDefinitionV1Alpha2 ¶ added in v1.12.1
func (t *SpamFilterResponse) MergeSpamFilterDefinitionV1Alpha2(v SpamFilterDefinitionV1Alpha2) error
MergeSpamFilterDefinitionV1Alpha2 performs a merge with any union data inside the SpamFilterResponse, using the provided SpamFilterDefinitionV1Alpha2
func (*SpamFilterResponse) UnmarshalJSON ¶ added in v1.12.1
func (t *SpamFilterResponse) UnmarshalJSON(b []byte) error
type SpamFilterSpec ¶ added in v1.12.0
type SpamFilterSpec struct {
// Contexts The signal types this spam filter applies to.
Contexts []TelemetryFilterContext `json:"contexts"`
// Filter Structured filter criteria. The server compiles this into an OTTL condition
// for evaluation.
Filter FilterCriteria `json:"filter"`
}
SpamFilterSpec v1alpha1 spam filter specification. The `filter` field defines structured criteria that the server compiles into an OTTL condition for evaluation.
type SpamFilterSpecV1Alpha2 ¶ added in v1.12.1
type SpamFilterSpecV1Alpha2 struct {
// Context The signal type this spam filter applies to.
Context TelemetryFilterContext `json:"context"`
// Filter Structured filter criteria. The server compiles this into an OTTL condition
// for evaluation.
Filter FilterCriteria `json:"filter"`
}
SpamFilterSpecV1Alpha2 v1alpha2 spam filter specification. The `filter` field defines structured criteria that the server compiles into an OTTL condition for evaluation.
type SpamFilterV1Alpha2 ¶ added in v1.12.1
type SpamFilterV1Alpha2 = SpamFilterDefinitionV1Alpha2
SpamFilterV1Alpha2 is a convenience alias for SpamFilterDefinitionV1Alpha2.
type Span ¶
type Span struct {
Attributes []KeyValue `json:"attributes"`
// Dash0ForwardLinks Forward links pointing to spans in other traces.
// The property is only included when `includeOTLPSchemaExtensions` is `true`.
Dash0ForwardLinks *[]SpanLink `json:"dash0ForwardLinks,omitempty"`
// Dash0Name The property is only included when `includeOTLPSchemaExtensions` is `true`.
Dash0Name *string `json:"dash0Name,omitempty"`
// Dash0TraceOriginParentSpanId The property is only included when `includeOTLPSchemaExtensions` is `true`.
Dash0TraceOriginParentSpanId *[]byte `json:"dash0TraceOriginParentSpanId,omitempty"`
// Dash0TraceOriginType The property is only included when `includeOTLPSchemaExtensions` is `true`.
Dash0TraceOriginType *string `json:"dash0TraceOriginType,omitempty"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
DroppedEventsCount *int64 `json:"droppedEventsCount,omitempty"`
DroppedLinksCount *int64 `json:"droppedLinksCount,omitempty"`
EndTimeUnixNano string `json:"endTimeUnixNano"`
Events []SpanEvent `json:"events"`
Flags *int64 `json:"flags,omitempty"`
// HasChildren The property is only included when `includeOTLPSchemaExtensions` is `true`.
HasChildren *bool `json:"hasChildren,omitempty"`
// Kind // Unspecified. Do NOT use as default.
// // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
// SPAN_KIND_UNSPECIFIED = 0;
//
// // Indicates that the span represents an internal operation within an application,
// // as opposed to an operation happening at the boundaries. Default value.
// SPAN_KIND_INTERNAL = 1;
//
// // Indicates that the span covers server-side handling of an RPC or other
// // remote network request.
// SPAN_KIND_SERVER = 2;
//
// // Indicates that the span describes a request to some remote service.
// SPAN_KIND_CLIENT = 3;
//
// // Indicates that the span describes a producer sending a message to a broker.
// // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
// // between producer and consumer spans. A PRODUCER span ends when the message was accepted
// // by the broker while the logical processing of the message might span a much longer time.
// SPAN_KIND_PRODUCER = 4;
//
// // Indicates that the span describes consumer receiving a message from a broker.
// // Like the PRODUCER kind, there is often no direct critical path latency relationship
// // between producer and consumer spans.
// SPAN_KIND_CONSUMER = 5;
Kind SpanKind `json:"kind"`
Links []SpanLink `json:"links"`
Name string `json:"name"`
ParentSpanId *[]byte `json:"parentSpanId,omitempty"`
SpanId []byte `json:"spanId"`
StartTimeUnixNano string `json:"startTimeUnixNano"`
Status SpanStatus `json:"status"`
TraceId []byte `json:"traceId"`
TraceState *string `json:"traceState,omitempty"`
}
Span defines model for Span.
type SpanEvent ¶
type SpanEvent struct {
Attributes []KeyValue `json:"attributes"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
Name string `json:"name"`
TimeUnixNano string `json:"timeUnixNano"`
}
SpanEvent defines model for SpanEvent.
type SpanExportFormat ¶ added in v1.18.1
type SpanExportFormat string
SpanExportFormat The serialization format of the exported file.
- `txt`: One rendered span line per record, carrying a fixed field set of start timestamp, service, span name, duration, kind, status code, trace ID and span ID. Ignores `columns`.
- `ndjson`: One OTLP JSON payload per line, each carrying a single span inside the same `resourceSpans` envelope `POST /api/spans` returns, so each line is independently parseable by any OTLP JSON consumer.
- `yaml`: The same per-span OTLP payloads as `ndjson`, as a multi-document YAML stream with documents separated by `---`.
- `csv`: A header row plus one row per span, flattened to the requested `columns`.
const ( SpanExportFormatCsv SpanExportFormat = "csv" SpanExportFormatNdjson SpanExportFormat = "ndjson" SpanExportFormatTxt SpanExportFormat = "txt" SpanExportFormatYaml SpanExportFormat = "yaml" )
Defines values for SpanExportFormat.
func (SpanExportFormat) Valid ¶ added in v1.29.0
func (e SpanExportFormat) Valid() bool
Valid indicates whether the value is a known member of the SpanExportFormat enum.
type SpanKind ¶
type SpanKind = int32
SpanKind // Unspecified. Do NOT use as default. // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED. SPAN_KIND_UNSPECIFIED = 0;
// Indicates that the span represents an internal operation within an application, // as opposed to an operation happening at the boundaries. Default value. SPAN_KIND_INTERNAL = 1;
// Indicates that the span covers server-side handling of an RPC or other // remote network request. SPAN_KIND_SERVER = 2;
// Indicates that the span describes a request to some remote service. SPAN_KIND_CLIENT = 3;
// Indicates that the span describes a producer sending a message to a broker. // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship // between producer and consumer spans. A PRODUCER span ends when the message was accepted // by the broker while the logical processing of the message might span a much longer time. SPAN_KIND_PRODUCER = 4;
// Indicates that the span describes consumer receiving a message from a broker. // Like the PRODUCER kind, there is often no direct critical path latency relationship // between producer and consumer spans. SPAN_KIND_CONSUMER = 5;
type SpanLink ¶
type SpanLink struct {
Attributes []KeyValue `json:"attributes"`
DroppedAttributesCount *int64 `json:"droppedAttributesCount,omitempty"`
Flags *int64 `json:"flags,omitempty"`
SpanId []byte `json:"spanId"`
TraceId []byte `json:"traceId"`
TraceState *string `json:"traceState,omitempty"`
}
SpanLink defines model for SpanLink.
type SpanStatus ¶
type SpanStatus struct {
// Code // The default status.
// STATUS_CODE_UNSET = 0;
// // The Span has been validated by an Application developer or Operator to
// // have completed successfully.
// STATUS_CODE_OK = 1;
// // The Span contains an error.
// STATUS_CODE_ERROR = 2;
Code SpanStatusCode `json:"code"`
// Message A developer-facing human readable error message.
Message *string `json:"message,omitempty"`
}
SpanStatus defines model for SpanStatus.
type SpanStatusCode ¶
type SpanStatusCode = int32
SpanStatusCode // The default status. STATUS_CODE_UNSET = 0; // The Span has been validated by an Application developer or Operator to // have completed successfully. STATUS_CODE_OK = 1; // The Span contains an error. STATUS_CODE_ERROR = 2;
type SpansDownloadRequest ¶ added in v1.18.1
type SpansDownloadRequest struct {
// Columns Attribute keys to emit as columns, in order, for the `csv` format — resource,
// scope, or span attributes (e.g. `service.name`, `otel.span.duration`). Ignored by
// the other formats, which have a fixed field set.
Columns *[]string `json:"columns,omitempty"`
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// Format The serialization format of the exported file.
// - `txt`: One rendered span line per record, carrying a fixed field set of start
// timestamp, service, span name, duration, kind, status code, trace ID and span ID.
// Ignores `columns`.
// - `ndjson`: One OTLP JSON payload per line, each carrying a single span inside the
// same `resourceSpans` envelope `POST /api/spans` returns, so each line is independently
// parseable by any OTLP JSON consumer.
// - `yaml`: The same per-span OTLP payloads as `ndjson`, as a multi-document YAML
// stream with documents separated by `---`.
// - `csv`: A header row plus one row per span, flattened to the requested `columns`.
Format SpanExportFormat `json:"format"`
// Limit The maximum number of spans to export. Defaults to, and is capped at, 5000.
// A larger value is rejected rather than silently clamped. Use the Dash0 CLI
// (`dash0 spans query`) to export volumes beyond this cap.
Limit *int64 `json:"limit,omitempty"`
// Ordering The ordering criteria for the exported spans. Spans are written to the file in
// this order.
// Supported ordering key: `otel.span.start_time` (span start timestamp, defaults to
// descending), optionally followed by `otel.trace.id` then `otel.span.id` ascending,
// which is the tiebreak span retrieval appends to keep its cursor stable.
Ordering *OrderingCriteria `json:"ordering,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
SpansDownloadRequest Request for `POST /api/spans/download`. Accepts the same query as `POST /api/spans` (`filter`, `timeRange`, `dataset`, `ordering`) and returns the matching spans serialized as a downloadable file rather than as a JSON page.
The response is streamed, so the export is not paginated: a single request returns up to `limit` spans, capped at 5000. Adaptive sampling is always disabled for exports, so an exported file is never a sample. Unlike `POST /api/spans` this request therefore takes no `sampling`, and one sent anyway is ignored: the sampling path can substitute a duration-percentile filter and quietly change which spans the file contains, so exports never take it.
type SslCertificateAssertion ¶
type SslCertificateAssertion struct {
Kind SslCertificateAssertionKind `json:"kind"`
Spec SslCertificateAssertionSpec `json:"spec"`
}
SslCertificateAssertion defines model for SslCertificateAssertion.
type SslCertificateAssertionKind ¶
type SslCertificateAssertionKind string
SslCertificateAssertionKind defines model for SslCertificateAssertion.Kind.
const (
SslCertificate SslCertificateAssertionKind = "ssl_certificate"
)
Defines values for SslCertificateAssertionKind.
func (SslCertificateAssertionKind) Valid ¶ added in v1.29.0
func (e SslCertificateAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the SslCertificateAssertionKind enum.
type SslCertificateAssertionSpec ¶
type SslCertificateAssertionSpec struct {
Value Duration `json:"value"`
}
SslCertificateAssertionSpec defines model for SslCertificateAssertionSpec.
type StatusCountStatistic ¶ added in v1.28.0
type StatusCountStatistic struct {
StatusCounts *StatusCounts `json:"statusCounts,omitempty"`
}
StatusCountStatistic Per-status breakdown of the records matching the entry. Signal-agnostic fragment — applies to any signal whose records carry an OTel status code, and to metric-derived request counts.
type StatusCounts ¶ added in v1.28.0
StatusCounts Per-status count breakdown. Field names match the OTel span status codes (`StatusCode`: 0 = unset, 1 = ok, 2 = error).
The status vocabulary is OTel's; the unit being counted is whatever the enclosing entry counts, which is not necessarily spans. Each composing schema documents its own unit.
type StringAssertionOperator ¶
type StringAssertionOperator string
StringAssertionOperator defines model for StringAssertionOperator.
const ( StringAssertionOperatorContains StringAssertionOperator = "contains" StringAssertionOperatorDoesNotContain StringAssertionOperator = "does_not_contain" StringAssertionOperatorDoesNotEndWith StringAssertionOperator = "does_not_end_with" StringAssertionOperatorDoesNotMatch StringAssertionOperator = "does_not_match" StringAssertionOperatorDoesNotStartWith StringAssertionOperator = "does_not_start_with" StringAssertionOperatorEndsWith StringAssertionOperator = "ends_with" StringAssertionOperatorIs StringAssertionOperator = "is" StringAssertionOperatorIsNot StringAssertionOperator = "is_not" StringAssertionOperatorIsNotOneOf StringAssertionOperator = "is_not_one_of" StringAssertionOperatorIsNotSet StringAssertionOperator = "is_not_set" StringAssertionOperatorIsOneOf StringAssertionOperator = "is_one_of" StringAssertionOperatorIsSet StringAssertionOperator = "is_set" StringAssertionOperatorMatches StringAssertionOperator = "matches" StringAssertionOperatorStartsWith StringAssertionOperator = "starts_with" )
Defines values for StringAssertionOperator.
func (StringAssertionOperator) Valid ¶ added in v1.29.0
func (e StringAssertionOperator) Valid() bool
Valid indicates whether the value is a known member of the StringAssertionOperator enum.
type SyntheticCheckAction ¶
type SyntheticCheckAction string
SyntheticCheckAction defines model for SyntheticCheckAction.
const ( SyntheticCheckDelete SyntheticCheckAction = "synthetic_check:delete" SyntheticCheckRead SyntheticCheckAction = "synthetic_check:read" SyntheticCheckWrite SyntheticCheckAction = "synthetic_check:write" )
Defines values for SyntheticCheckAction.
func (SyntheticCheckAction) Valid ¶ added in v1.29.0
func (e SyntheticCheckAction) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckAction enum.
type SyntheticCheckAnnotations ¶
type SyntheticCheckAnnotations struct {
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on assets that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on an asset that declares no dash0.com/origin is rejected with a 400 — manage that asset's access via the UI share dialog instead.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
}
SyntheticCheckAnnotations defines model for SyntheticCheckAnnotations.
type SyntheticCheckAttempt ¶ added in v1.4.0
type SyntheticCheckAttempt struct {
// AttemptId (Internal) Unique identifier for the attempt
AttemptId string `json:"attemptId"`
// Duration duration in nanoseconds
Duration int64 `json:"duration"`
// ErrorMessage Error message of the synthetic check attempt, if any
ErrorMessage *string `json:"errorMessage,omitempty"`
// ErrorType Error type of the synthetic check attempt, if any
ErrorType *SyntheticHttpErrorType `json:"errorType,omitempty"`
// FailedCriticalAssertions List of critical assertions that failed
FailedCriticalAssertions []FailedHttpCheckAssertion `json:"failedCriticalAssertions"`
// FailedDegradedAssertions List of degraded assertions that failed
FailedDegradedAssertions []FailedHttpCheckAssertion `json:"failedDegradedAssertions"`
// IsTestRun (Internal) Whether this attempt was triggered as a test run
IsTestRun bool `json:"isTestRun"`
// Location The geographic location from which the check was executed.
Location SyntheticCheckLocation `json:"location"`
// PassedCriticalAssertions List of critical assertions that passed
PassedCriticalAssertions []HttpCheckAssertion `json:"passedCriticalAssertions"`
// PassedDegradedAssertions List of degraded assertions that passed
PassedDegradedAssertions []HttpCheckAssertion `json:"passedDegradedAssertions"`
// RunId (Internal) Run ID this attempt belongs to
RunId string `json:"runId"`
// SpanId (Internal) Span ID associated with this attempt
SpanId []byte `json:"spanId"`
// StartTime A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
StartTime FixedTime `json:"startTime"`
// StatusCode HTTP status code
StatusCode int `json:"statusCode"`
// SyntheticCheckId ID of the synthetic check
SyntheticCheckId string `json:"syntheticCheckId"`
// SyntheticCheckVersion Version of the synthetic check
SyntheticCheckVersion string `json:"syntheticCheckVersion"`
// TraceId (Internal) Trace ID associated with this attempt
TraceId []byte `json:"traceId"`
}
SyntheticCheckAttempt defines model for SyntheticCheckAttempt.
type SyntheticCheckAttemptDetails ¶ added in v1.4.0
type SyntheticCheckAttemptDetails struct {
// AttemptId (Internal) Unique identifier for the attempt
AttemptId string `json:"attemptId"`
// Duration duration in nanoseconds
Duration int64 `json:"duration"`
// ErrorMessage Error message of the synthetic check attempt, if any
ErrorMessage *string `json:"errorMessage,omitempty"`
// ErrorType Error type of the synthetic check attempt, if any
ErrorType *SyntheticHttpErrorType `json:"errorType,omitempty"`
// Events Span events using OTLP SpanEvent format
Events []SpanEvent `json:"events"`
// FailedCriticalAssertions List of critical assertions that failed
FailedCriticalAssertions []FailedHttpCheckAssertion `json:"failedCriticalAssertions"`
// FailedDegradedAssertions List of degraded assertions that failed
FailedDegradedAssertions []FailedHttpCheckAssertion `json:"failedDegradedAssertions"`
// IsTestRun (Internal) Whether this attempt was triggered as a test run
IsTestRun bool `json:"isTestRun"`
// Location The geographic location from which the check was executed.
Location SyntheticCheckLocation `json:"location"`
// PassedCriticalAssertions List of critical assertions that passed
PassedCriticalAssertions []HttpCheckAssertion `json:"passedCriticalAssertions"`
// PassedDegradedAssertions List of degraded assertions that passed
PassedDegradedAssertions []HttpCheckAssertion `json:"passedDegradedAssertions"`
// RunId (Internal) Run ID this attempt belongs to
RunId string `json:"runId"`
// SpanAttributes Span attributes using OTLP KeyValue format
SpanAttributes []KeyValue `json:"spanAttributes"`
// SpanId (Internal) Span ID associated with this attempt
SpanId []byte `json:"spanId"`
// StartTime A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
StartTime FixedTime `json:"startTime"`
// StatusCode HTTP status code
StatusCode int `json:"statusCode"`
// SyntheticCheckId ID of the synthetic check
SyntheticCheckId string `json:"syntheticCheckId"`
// SyntheticCheckVersion Version of the synthetic check
SyntheticCheckVersion string `json:"syntheticCheckVersion"`
// TraceId (Internal) Trace ID associated with this attempt
TraceId []byte `json:"traceId"`
}
SyntheticCheckAttemptDetails defines model for SyntheticCheckAttemptDetails.
type SyntheticCheckDefinition ¶
type SyntheticCheckDefinition struct {
Kind SyntheticCheckDefinitionKind `json:"kind"`
Metadata SyntheticCheckMetadata `json:"metadata"`
Spec SyntheticCheckSpec `json:"spec"`
}
SyntheticCheckDefinition defines model for SyntheticCheckDefinition.
type SyntheticCheckDefinitionKind ¶
type SyntheticCheckDefinitionKind string
SyntheticCheckDefinitionKind defines model for SyntheticCheckDefinition.Kind.
const (
Dash0SyntheticCheck SyntheticCheckDefinitionKind = "Dash0SyntheticCheck"
)
Defines values for SyntheticCheckDefinitionKind.
func (SyntheticCheckDefinitionKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckDefinitionKind enum.
type SyntheticCheckDisplay ¶
type SyntheticCheckDisplay struct {
// Name Short-form name for the view to be shown prominently within the view list and atop
// the screen when the view is selected.
Name string `json:"name"`
}
SyntheticCheckDisplay defines model for SyntheticCheckDisplay.
type SyntheticCheckLabels ¶
type SyntheticCheckLabels struct {
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Custom *map[string]string `json:"custom,omitempty"`
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
SyntheticCheckLabels defines model for SyntheticCheckLabels.
type SyntheticCheckLocation ¶ added in v1.6.0
type SyntheticCheckLocation = string
SyntheticCheckLocation Where a synthetic check runs from: a public region identifier, or a private location's Dash0-assigned id or its `locationId`. Stored as written.
type SyntheticCheckLocationEntry ¶ added in v1.23.0
type SyntheticCheckLocationEntry struct {
// CreatedAt Private locations only. When Dash0 first registered the location.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Health Private locations only. Public regions are operated by Dash0 and report no per-location
// health here.
Health *SyntheticPrivateLocationHealth `json:"health,omitempty"`
// Id The value a synthetic check definition stores to target this location: the region
// identifier for a public region, and the Dash0-assigned opaque id for a private
// location.
Id string `json:"id"`
// Kind - `public`: A Dash0-operated region, available to every organization.
// - `private`: A location the organization runs itself, visible only to that organization.
Kind SyntheticCheckLocationKind `json:"kind"`
// LocationId Private locations only. The customer-chosen name the location's workers register
// under. It is unique within the organization and never reused, so a check may target the
// location by it in place of `id`.
LocationId *SyntheticPrivateLocationLocationId `json:"locationId,omitempty"`
}
SyntheticCheckLocationEntry defines model for SyntheticCheckLocationEntry.
type SyntheticCheckLocationKind ¶ added in v1.23.0
type SyntheticCheckLocationKind string
SyntheticCheckLocationKind - `public`: A Dash0-operated region, available to every organization. - `private`: A location the organization runs itself, visible only to that organization.
const ( Private SyntheticCheckLocationKind = "private" Public SyntheticCheckLocationKind = "public" )
Defines values for SyntheticCheckLocationKind.
func (SyntheticCheckLocationKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckLocationKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckLocationKind enum.
type SyntheticCheckMetadata ¶
type SyntheticCheckMetadata struct {
Annotations *SyntheticCheckAnnotations `json:"annotations,omitempty"`
Description *string `json:"description,omitempty"`
Labels *SyntheticCheckLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
SyntheticCheckMetadata defines model for SyntheticCheckMetadata.
type SyntheticCheckNotifications ¶
type SyntheticCheckNotifications struct {
// Channels The channel IDs that notifications should be sent to in case the check is critical or degraded after
// executing all the retries.
Channels []openapi_types.UUID `json:"channels"`
// OnlyCriticalChannels The channel IDs that should only trigger in case synthetic check status reaches critical state.
OnlyCriticalChannels *[]openapi_types.UUID `json:"onlyCriticalChannels,omitempty"`
}
SyntheticCheckNotifications defines model for SyntheticCheckNotifications.
type SyntheticCheckPermission ¶
type SyntheticCheckPermission struct {
Actions []SyntheticCheckAction `json:"actions"`
Role *string `json:"role,omitempty"`
TeamId *string `json:"teamId,omitempty"`
UserId *string `json:"userId,omitempty"`
}
SyntheticCheckPermission defines model for SyntheticCheckPermission.
type SyntheticCheckPlugin ¶
type SyntheticCheckPlugin struct {
// contains filtered or unexported fields
}
SyntheticCheckPlugin defines model for SyntheticCheckPlugin.
func (SyntheticCheckPlugin) AsSyntheticHttpCheckPlugin ¶
func (t SyntheticCheckPlugin) AsSyntheticHttpCheckPlugin() (SyntheticHttpCheckPlugin, error)
AsSyntheticHttpCheckPlugin returns the union data inside the SyntheticCheckPlugin as a SyntheticHttpCheckPlugin
func (*SyntheticCheckPlugin) FromSyntheticHttpCheckPlugin ¶
func (t *SyntheticCheckPlugin) FromSyntheticHttpCheckPlugin(v SyntheticHttpCheckPlugin) error
FromSyntheticHttpCheckPlugin overwrites any union data inside the SyntheticCheckPlugin as the provided SyntheticHttpCheckPlugin
func (SyntheticCheckPlugin) MarshalJSON ¶
func (t SyntheticCheckPlugin) MarshalJSON() ([]byte, error)
func (*SyntheticCheckPlugin) MergeSyntheticHttpCheckPlugin ¶
func (t *SyntheticCheckPlugin) MergeSyntheticHttpCheckPlugin(v SyntheticHttpCheckPlugin) error
MergeSyntheticHttpCheckPlugin performs a merge with any union data inside the SyntheticCheckPlugin, using the provided SyntheticHttpCheckPlugin
func (*SyntheticCheckPlugin) UnmarshalJSON ¶
func (t *SyntheticCheckPlugin) UnmarshalJSON(b []byte) error
type SyntheticCheckRetries ¶
type SyntheticCheckRetries struct {
// contains filtered or unexported fields
}
SyntheticCheckRetries defines model for SyntheticCheckRetries.
func (SyntheticCheckRetries) AsSyntheticCheckRetriesExponential ¶
func (t SyntheticCheckRetries) AsSyntheticCheckRetriesExponential() (SyntheticCheckRetriesExponential, error)
AsSyntheticCheckRetriesExponential returns the union data inside the SyntheticCheckRetries as a SyntheticCheckRetriesExponential
func (SyntheticCheckRetries) AsSyntheticCheckRetriesFixed ¶
func (t SyntheticCheckRetries) AsSyntheticCheckRetriesFixed() (SyntheticCheckRetriesFixed, error)
AsSyntheticCheckRetriesFixed returns the union data inside the SyntheticCheckRetries as a SyntheticCheckRetriesFixed
func (SyntheticCheckRetries) AsSyntheticCheckRetriesLinear ¶
func (t SyntheticCheckRetries) AsSyntheticCheckRetriesLinear() (SyntheticCheckRetriesLinear, error)
AsSyntheticCheckRetriesLinear returns the union data inside the SyntheticCheckRetries as a SyntheticCheckRetriesLinear
func (SyntheticCheckRetries) AsSyntheticCheckRetriesOff ¶
func (t SyntheticCheckRetries) AsSyntheticCheckRetriesOff() (SyntheticCheckRetriesOff, error)
AsSyntheticCheckRetriesOff returns the union data inside the SyntheticCheckRetries as a SyntheticCheckRetriesOff
func (*SyntheticCheckRetries) FromSyntheticCheckRetriesExponential ¶
func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesExponential(v SyntheticCheckRetriesExponential) error
FromSyntheticCheckRetriesExponential overwrites any union data inside the SyntheticCheckRetries as the provided SyntheticCheckRetriesExponential
func (*SyntheticCheckRetries) FromSyntheticCheckRetriesFixed ¶
func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesFixed(v SyntheticCheckRetriesFixed) error
FromSyntheticCheckRetriesFixed overwrites any union data inside the SyntheticCheckRetries as the provided SyntheticCheckRetriesFixed
func (*SyntheticCheckRetries) FromSyntheticCheckRetriesLinear ¶
func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesLinear(v SyntheticCheckRetriesLinear) error
FromSyntheticCheckRetriesLinear overwrites any union data inside the SyntheticCheckRetries as the provided SyntheticCheckRetriesLinear
func (*SyntheticCheckRetries) FromSyntheticCheckRetriesOff ¶
func (t *SyntheticCheckRetries) FromSyntheticCheckRetriesOff(v SyntheticCheckRetriesOff) error
FromSyntheticCheckRetriesOff overwrites any union data inside the SyntheticCheckRetries as the provided SyntheticCheckRetriesOff
func (SyntheticCheckRetries) MarshalJSON ¶
func (t SyntheticCheckRetries) MarshalJSON() ([]byte, error)
func (*SyntheticCheckRetries) MergeSyntheticCheckRetriesExponential ¶
func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesExponential(v SyntheticCheckRetriesExponential) error
MergeSyntheticCheckRetriesExponential performs a merge with any union data inside the SyntheticCheckRetries, using the provided SyntheticCheckRetriesExponential
func (*SyntheticCheckRetries) MergeSyntheticCheckRetriesFixed ¶
func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesFixed(v SyntheticCheckRetriesFixed) error
MergeSyntheticCheckRetriesFixed performs a merge with any union data inside the SyntheticCheckRetries, using the provided SyntheticCheckRetriesFixed
func (*SyntheticCheckRetries) MergeSyntheticCheckRetriesLinear ¶
func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesLinear(v SyntheticCheckRetriesLinear) error
MergeSyntheticCheckRetriesLinear performs a merge with any union data inside the SyntheticCheckRetries, using the provided SyntheticCheckRetriesLinear
func (*SyntheticCheckRetries) MergeSyntheticCheckRetriesOff ¶
func (t *SyntheticCheckRetries) MergeSyntheticCheckRetriesOff(v SyntheticCheckRetriesOff) error
MergeSyntheticCheckRetriesOff performs a merge with any union data inside the SyntheticCheckRetries, using the provided SyntheticCheckRetriesOff
func (*SyntheticCheckRetries) UnmarshalJSON ¶
func (t *SyntheticCheckRetries) UnmarshalJSON(b []byte) error
type SyntheticCheckRetriesExponential ¶
type SyntheticCheckRetriesExponential struct {
Kind SyntheticCheckRetriesExponentialKind `json:"kind"`
Spec SyntheticCheckRetriesExponentialSpec `json:"spec"`
}
SyntheticCheckRetriesExponential defines model for SyntheticCheckRetriesExponential.
type SyntheticCheckRetriesExponentialKind ¶
type SyntheticCheckRetriesExponentialKind string
SyntheticCheckRetriesExponentialKind defines model for SyntheticCheckRetriesExponential.Kind.
const (
Exponential SyntheticCheckRetriesExponentialKind = "exponential"
)
Defines values for SyntheticCheckRetriesExponentialKind.
func (SyntheticCheckRetriesExponentialKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckRetriesExponentialKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckRetriesExponentialKind enum.
type SyntheticCheckRetriesExponentialSpec ¶
type SyntheticCheckRetriesExponentialSpec struct {
Attempts int `json:"attempts"`
Delay Duration `json:"delay"`
MaximumDelay Duration `json:"maximumDelay"`
}
SyntheticCheckRetriesExponentialSpec defines model for SyntheticCheckRetriesExponentialSpec.
type SyntheticCheckRetriesFixed ¶
type SyntheticCheckRetriesFixed struct {
Kind SyntheticCheckRetriesFixedKind `json:"kind"`
Spec SyntheticCheckRetriesFixedSpec `json:"spec"`
}
SyntheticCheckRetriesFixed defines model for SyntheticCheckRetriesFixed.
type SyntheticCheckRetriesFixedKind ¶
type SyntheticCheckRetriesFixedKind string
SyntheticCheckRetriesFixedKind defines model for SyntheticCheckRetriesFixed.Kind.
const (
Fixed SyntheticCheckRetriesFixedKind = "fixed"
)
Defines values for SyntheticCheckRetriesFixedKind.
func (SyntheticCheckRetriesFixedKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckRetriesFixedKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckRetriesFixedKind enum.
type SyntheticCheckRetriesFixedSpec ¶
type SyntheticCheckRetriesFixedSpec struct {
Attempts int `json:"attempts"`
Delay Duration `json:"delay"`
}
SyntheticCheckRetriesFixedSpec defines model for SyntheticCheckRetriesFixedSpec.
type SyntheticCheckRetriesLinear ¶
type SyntheticCheckRetriesLinear struct {
Kind SyntheticCheckRetriesLinearKind `json:"kind"`
Spec SyntheticCheckRetriesLinearSpec `json:"spec"`
}
SyntheticCheckRetriesLinear defines model for SyntheticCheckRetriesLinear.
type SyntheticCheckRetriesLinearKind ¶
type SyntheticCheckRetriesLinearKind string
SyntheticCheckRetriesLinearKind defines model for SyntheticCheckRetriesLinear.Kind.
const (
SyntheticCheckRetriesLinearKindLinear SyntheticCheckRetriesLinearKind = "linear"
)
Defines values for SyntheticCheckRetriesLinearKind.
func (SyntheticCheckRetriesLinearKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckRetriesLinearKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckRetriesLinearKind enum.
type SyntheticCheckRetriesLinearSpec ¶
type SyntheticCheckRetriesLinearSpec struct {
Attempts int `json:"attempts"`
Delay Duration `json:"delay"`
MaximumDelay Duration `json:"maximumDelay"`
}
SyntheticCheckRetriesLinearSpec defines model for SyntheticCheckRetriesLinearSpec.
type SyntheticCheckRetriesOff ¶
type SyntheticCheckRetriesOff struct {
Kind SyntheticCheckRetriesOffKind `json:"kind"`
Spec SyntheticCheckRetriesOffSpec `json:"spec"`
}
SyntheticCheckRetriesOff defines model for SyntheticCheckRetriesOff.
type SyntheticCheckRetriesOffKind ¶
type SyntheticCheckRetriesOffKind string
SyntheticCheckRetriesOffKind defines model for SyntheticCheckRetriesOff.Kind.
const (
Off SyntheticCheckRetriesOffKind = "off"
)
Defines values for SyntheticCheckRetriesOffKind.
func (SyntheticCheckRetriesOffKind) Valid ¶ added in v1.29.0
func (e SyntheticCheckRetriesOffKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckRetriesOffKind enum.
type SyntheticCheckRetriesOffSpec ¶
type SyntheticCheckRetriesOffSpec = interface{}
SyntheticCheckRetriesOffSpec defines model for SyntheticCheckRetriesOffSpec.
type SyntheticCheckSchedule ¶
type SyntheticCheckSchedule struct {
// Interval Specifies a check evaluation frequency.
Interval Duration `json:"interval"`
Locations []SyntheticCheckLocation `json:"locations"`
// Strategy Whether to run checks against all specified locations for every run, or just a single location per run.
Strategy SyntheticCheckSchedulingStrategy `json:"strategy"`
}
SyntheticCheckSchedule defines model for SyntheticCheckSchedule.
type SyntheticCheckSchedulingStrategy ¶
type SyntheticCheckSchedulingStrategy string
SyntheticCheckSchedulingStrategy Whether to run checks against all specified locations for every run, or just a single location per run.
const ( AllLocations SyntheticCheckSchedulingStrategy = "all_locations" RandomLocation SyntheticCheckSchedulingStrategy = "random_location" )
Defines values for SyntheticCheckSchedulingStrategy.
func (SyntheticCheckSchedulingStrategy) Valid ¶ added in v1.29.0
func (e SyntheticCheckSchedulingStrategy) Valid() bool
Valid indicates whether the value is a known member of the SyntheticCheckSchedulingStrategy enum.
type SyntheticCheckSpec ¶
type SyntheticCheckSpec struct {
// Annotations Custom annotations attached to every alert this check raises, alongside the
// annotations Dash0 derives from the check itself. The keys `name`, `summary`,
// `description`, `type`, `interval` and `locations` are reserved: setting one to
// a non-empty value is rejected with a 400. An empty value is accepted and
// behaves the same as omitting the key.
Annotations *map[string]string `json:"annotations,omitempty"`
Display *SyntheticCheckDisplay `json:"display,omitempty"`
Enabled bool `json:"enabled"`
Labels *map[string]string `json:"labels,omitempty"`
Notifications SyntheticCheckNotifications `json:"notifications"`
Permissions *[]SyntheticCheckPermission `json:"permissions,omitempty"`
Plugin SyntheticCheckPlugin `json:"plugin"`
Retries SyntheticCheckRetries `json:"retries"`
Schedule SyntheticCheckSchedule `json:"schedule"`
}
SyntheticCheckSpec defines model for SyntheticCheckSpec.
type SyntheticChecksApiListItem ¶
type SyntheticChecksApiListItem struct {
Dataset string `json:"dataset"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
Origin *string `json:"origin,omitempty"`
// Source Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Source *CrdSource `json:"source,omitempty"`
}
SyntheticChecksApiListItem defines model for SyntheticChecksApiListItem.
type SyntheticHttpCheckAssertions ¶
type SyntheticHttpCheckAssertions struct {
CriticalAssertions HttpCheckAssertions `json:"criticalAssertions"`
DegradedAssertions HttpCheckAssertions `json:"degradedAssertions"`
}
SyntheticHttpCheckAssertions defines model for SyntheticHttpCheckAssertions.
type SyntheticHttpCheckPlugin ¶
type SyntheticHttpCheckPlugin struct {
Kind SyntheticHttpCheckPluginKind `json:"kind"`
Spec SyntheticHttpCheckPluginSpec `json:"spec"`
}
SyntheticHttpCheckPlugin defines model for SyntheticHttpCheckPlugin.
type SyntheticHttpCheckPluginKind ¶
type SyntheticHttpCheckPluginKind string
SyntheticHttpCheckPluginKind defines model for SyntheticHttpCheckPlugin.Kind.
const (
Http SyntheticHttpCheckPluginKind = "http"
)
Defines values for SyntheticHttpCheckPluginKind.
func (SyntheticHttpCheckPluginKind) Valid ¶ added in v1.29.0
func (e SyntheticHttpCheckPluginKind) Valid() bool
Valid indicates whether the value is a known member of the SyntheticHttpCheckPluginKind enum.
type SyntheticHttpCheckPluginSpec ¶
type SyntheticHttpCheckPluginSpec struct {
Assertions SyntheticHttpCheckAssertions `json:"assertions"`
Request HttpRequestSpec `json:"request"`
}
SyntheticHttpCheckPluginSpec defines model for SyntheticHttpCheckPluginSpec.
type SyntheticHttpErrorType ¶
type SyntheticHttpErrorType string
SyntheticHttpErrorType `location_unavailable` marks a run that was never dispatched because its location could not run it. It is reported on results only and is rejected in error assertions.
const ( SyntheticHttpErrorTypeDns SyntheticHttpErrorType = "dns" SyntheticHttpErrorTypeTcp SyntheticHttpErrorType = "tcp" SyntheticHttpErrorTypeTimeout SyntheticHttpErrorType = "timeout" SyntheticHttpErrorTypeTls SyntheticHttpErrorType = "tls" SyntheticHttpErrorTypeUnknown SyntheticHttpErrorType = "unknown" )
Defines values for SyntheticHttpErrorType.
func (SyntheticHttpErrorType) Valid ¶ added in v1.29.0
func (e SyntheticHttpErrorType) Valid() bool
Valid indicates whether the value is a known member of the SyntheticHttpErrorType enum.
type SyntheticPrivateLocationHealth ¶ added in v1.23.0
type SyntheticPrivateLocationHealth struct {
// LastSeenAt When one of the location's workers was last seen. Absent when no worker has ever
// connected, and absent while `status` is `unknown`.
LastSeenAt *time.Time `json:"lastSeenAt,omitempty"`
// Status - `online`: At least one of the location's workers is connected and within the liveness window.
// - `offline`: No worker is connected, so the location executes no checks.
// - `unknown`: Dash0 cannot currently determine the location's connection state. This is not a
// claim that the location is down, and it must not be presented as one.
Status SyntheticPrivateLocationHealthStatus `json:"status"`
}
SyntheticPrivateLocationHealth defines model for SyntheticPrivateLocationHealth.
type SyntheticPrivateLocationHealthStatus ¶ added in v1.23.0
type SyntheticPrivateLocationHealthStatus string
SyntheticPrivateLocationHealthStatus - `online`: At least one of the location's workers is connected and within the liveness window.
- `offline`: No worker is connected, so the location executes no checks.
- `unknown`: Dash0 cannot currently determine the location's connection state. This is not a claim that the location is down, and it must not be presented as one.
const ( SyntheticPrivateLocationHealthStatusOffline SyntheticPrivateLocationHealthStatus = "offline" SyntheticPrivateLocationHealthStatusOnline SyntheticPrivateLocationHealthStatus = "online" SyntheticPrivateLocationHealthStatusUnknown SyntheticPrivateLocationHealthStatus = "unknown" )
Defines values for SyntheticPrivateLocationHealthStatus.
func (SyntheticPrivateLocationHealthStatus) Valid ¶ added in v1.29.0
func (e SyntheticPrivateLocationHealthStatus) Valid() bool
Valid indicates whether the value is a known member of the SyntheticPrivateLocationHealthStatus enum.
type SyntheticPrivateLocationLocationId ¶ added in v1.23.0
type SyntheticPrivateLocationLocationId = string
SyntheticPrivateLocationLocationId Customer-chosen identifier for the location, unique within the owning organization only. Two organizations may both use the same value for unrelated locations. Within one organization it names one location for good, deleted or not.
type TeamAnnotations ¶ added in v1.17.0
type TeamAnnotations struct {
// Dash0ComcreatedAt Timestamp when the team was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update to the team. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
AdditionalProperties map[string]string `json:"-"`
}
TeamAnnotations Key/value annotations on the team. Arbitrary keys are accepted on write (the request is not rejected), but the server only interprets and persists the reserved `dash0.com/*` keys documented below. Any other key supplied by the client is silently dropped and will not appear on the response or on subsequent reads.
func (TeamAnnotations) Get ¶ added in v1.17.0
func (a TeamAnnotations) Get(fieldName string) (value string, found bool)
Getter for additional properties for TeamAnnotations. Returns the specified element and whether it was found
func (TeamAnnotations) MarshalJSON ¶ added in v1.17.0
func (a TeamAnnotations) MarshalJSON() ([]byte, error)
Override default JSON handling for TeamAnnotations to handle AdditionalProperties
func (*TeamAnnotations) Set ¶ added in v1.17.0
func (a *TeamAnnotations) Set(fieldName string, value string)
Setter for additional properties for TeamAnnotations
func (*TeamAnnotations) UnmarshalJSON ¶ added in v1.17.0
func (a *TeamAnnotations) UnmarshalJSON(b []byte) error
Override default JSON handling for TeamAnnotations to handle AdditionalProperties
type TeamApiVersion ¶ added in v1.17.0
type TeamApiVersion string
TeamApiVersion API version of the team CRD. Currently only `dash0.com/v1alpha1` is supported.
const (
TeamApiVersionDash0Comv1alpha1 TeamApiVersion = "dash0.com/v1alpha1"
)
Defines values for TeamApiVersion.
func (TeamApiVersion) Valid ¶ added in v1.29.0
func (e TeamApiVersion) Valid() bool
Valid indicates whether the value is a known member of the TeamApiVersion enum.
type TeamDefinition
deprecated
added in
v1.4.0
type TeamDefinition = TeamDefinitionV1Alpha1
TeamDefinition is a deprecated alias for TeamDefinitionV1Alpha1.
Deprecated: since v1.17.0. Use TeamDefinitionV1Alpha1 instead. The alias is kept as a soft-rename shim so v1.x consumers can migrate without touching every call site in one go.
type TeamDefinitionV1Alpha1 ¶ added in v1.17.0
type TeamDefinitionV1Alpha1 struct {
// ApiVersion Optional on write requests for backwards compatibility: defaults to
// `dash0.com/v1alpha1` when omitted. Always populated on read responses.
ApiVersion *TeamApiVersion `json:"apiVersion,omitempty"`
Kind TeamDefinitionV1Alpha1Kind `json:"kind"`
Metadata TeamMetadata `json:"metadata"`
Spec TeamSpec `json:"spec"`
}
TeamDefinitionV1Alpha1 v1alpha1 team definition. `metadata.name` is the team's technical name (used e.g. as the CRD name in an operator manifest or a Terraform resource ID), `spec.display` carries the human-facing attributes (name, description, color) and `spec.members` is the declarative list of member IDs that make up the team. `metadata.name` and `spec.display.name` are persisted independently.
type TeamDefinitionV1Alpha1Kind ¶ added in v1.17.0
type TeamDefinitionV1Alpha1Kind string
TeamDefinitionV1Alpha1Kind defines model for TeamDefinitionV1Alpha1.Kind.
const (
Dash0Team TeamDefinitionV1Alpha1Kind = "Dash0Team"
)
Defines values for TeamDefinitionV1Alpha1Kind.
func (TeamDefinitionV1Alpha1Kind) Valid ¶ added in v1.29.0
func (e TeamDefinitionV1Alpha1Kind) Valid() bool
Valid indicates whether the value is a known member of the TeamDefinitionV1Alpha1Kind enum.
type TeamDisplay ¶ added in v1.4.0
type TeamDisplay struct {
// Color A color gradient from one color to another.
Color Gradient `json:"color"`
Description *string `json:"description,omitempty"`
// Name Human-facing name of the team, used in the UI.
Name string `json:"name"`
}
TeamDisplay defines model for TeamDisplay.
type TeamLabels ¶ added in v1.4.0
type TeamLabels struct {
// Dash0Comid Unique internal ID of the team. Server-set on creation and
// stable for the lifetime of the team; ignored if supplied on
// POST and PUT request bodies.
Dash0Comid *string `json:"dash0.com/id,omitempty"`
// Dash0Comorigin External identifier for API-managed teams (e.g. the CRD name
// from an operator manifest or a Terraform resource ID).
// Client-settable on create only — a team's origin cannot be
// changed once it exists. Empty for teams created via the UI;
// non-empty for teams created via the internal API or reconciled
// by an operator. Uniquely identifies a team within its
// organization when present.
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin source derived by the server from the request context.
// Read-only.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
AdditionalProperties map[string]string `json:"-"`
}
TeamLabels Key/value labels on the team. Arbitrary keys are accepted on write (the request is not rejected), but the server only interprets and persists the reserved `dash0.com/*` keys documented below. Any other key supplied by the client is silently dropped and will not appear on the response or on subsequent reads.
func (TeamLabels) Get ¶ added in v1.17.0
func (a TeamLabels) Get(fieldName string) (value string, found bool)
Getter for additional properties for TeamLabels. Returns the specified element and whether it was found
func (TeamLabels) MarshalJSON ¶ added in v1.17.0
func (a TeamLabels) MarshalJSON() ([]byte, error)
Override default JSON handling for TeamLabels to handle AdditionalProperties
func (*TeamLabels) Set ¶ added in v1.17.0
func (a *TeamLabels) Set(fieldName string, value string)
Setter for additional properties for TeamLabels
func (*TeamLabels) UnmarshalJSON ¶ added in v1.17.0
func (a *TeamLabels) UnmarshalJSON(b []byte) error
Override default JSON handling for TeamLabels to handle AdditionalProperties
type TeamMetadata ¶ added in v1.4.0
type TeamMetadata struct {
// Annotations Key/value annotations on the team. Arbitrary keys are accepted on
// write (the request is not rejected), but the server only interprets
// and persists the reserved `dash0.com/*` keys documented below. Any
// other key supplied by the client is silently dropped and will not
// appear on the response or on subsequent reads.
Annotations *TeamAnnotations `json:"annotations,omitempty"`
// Labels Key/value labels on the team. Arbitrary keys are accepted on write
// (the request is not rejected), but the server only interprets and
// persists the reserved `dash0.com/*` keys documented below. Any
// other key supplied by the client is silently dropped and will not
// appear on the response or on subsequent reads.
Labels *TeamLabels `json:"labels,omitempty"`
// Name Technical name of the team (e.g. `platform-team`). Distinct from
// `spec.display.name`, which carries the human-facing name. Persisted
// verbatim and echoed on read responses.
Name string `json:"name"`
}
TeamMetadata defines model for TeamMetadata.
type TeamSpec ¶ added in v1.4.0
type TeamSpec struct {
Display TeamDisplay `json:"display"`
// Members The declarative membership of the team. Each entry is either a
// member's internal ID (the `dash0.com/id` label value returned
// for the member, e.g. `user_01ABC...`) or an email address.
// Emails are matched case-insensitively against the
// organization's members and translated to internal IDs during
// reconciliation, so callers can author teams with
// human-readable references. An empty array clears the team's
// membership; a `null`/missing value is rejected with 400.
// Unresolvable email addresses cause the entire request to fail
// with 400 listing every offender. Responses always echo the
// resolved internal IDs.
Members []string `json:"members"`
}
TeamSpec defines model for TeamSpec.
type TeamsListItem ¶ added in v1.4.0
type TeamsListItem struct {
// Color A color gradient from one color to another.
Color Gradient `json:"color"`
Id string `json:"id"`
// Members A sample of five members. You can inspect the total member count via `totalMemberCount`. This array
// is restricted to at most five members, because this could otherwise be too much data.
Members []MemberDefinition `json:"members"`
Name string `json:"name"`
Origin *string `json:"origin,omitempty"`
// Source Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Source *CrdSource `json:"source,omitempty"`
TotalMemberCount int `json:"totalMemberCount"`
}
TeamsListItem defines model for TeamsListItem.
type TeamsWebhookConfig ¶ added in v1.9.0
type TeamsWebhookConfig struct {
Url string `json:"url"`
}
TeamsWebhookConfig defines model for TeamsWebhookConfig.
type TelemetryFilter ¶ added in v1.12.3
type TelemetryFilter struct {
// ApiVersion The CRD API version used when this filter was created or last updated.
// Determines which spec shape the server returns on read.
// Defaults to `v1alpha1` when absent.
ApiVersion *SpamFilterApiVersion `json:"apiVersion,omitempty"`
// Condition Raw OTTL condition expression. Mutually exclusive with `filter`. Use this
// for advanced filtering that cannot be expressed via structured
// `FilterCriteria`. If the condition resolves to true, the data will be
// dropped. Supports `and`, `or`, and `()`.
Condition OTTLCondition `json:"condition"`
// Context The signal type this telemetry filter applies to.
Context TelemetryFilterContext `json:"context"`
// Enabled Whether this telemetry filter is active. When absent or true, the filter
// is applied. When explicitly set to false, the filter is skipped.
Enabled *bool `json:"enabled,omitempty"`
// Filter Structured filter criteria in human-readable form. When provided, the
// server compiles this into an OTTL condition. Mutually exclusive with
// `condition`.
Filter *FilterCriteria `json:"filter,omitempty"`
// Id Unique identifier for this spam filter. Server-generated on creation.
// For existing filters without an ID, a deterministic UUID is derived
// from a hash of the filter specification or of the condition.
Id *openapi_types.UUID `json:"id,omitempty"`
// Name An optional human-readable name for this telemetry filter.
Name *string `json:"name,omitempty"`
// Origin Immutable external identifier for this spam filter, used by
// Infrastructure-as-Code tools (Terraform, Kubernetes operator).
// When set, the filter is read-only in the UI.
Origin *string `json:"origin,omitempty"`
// Source Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Source *CrdSource `json:"source,omitempty"`
}
TelemetryFilter defines model for TelemetryFilter.
type TelemetryFilterContext ¶ added in v1.12.0
type TelemetryFilterContext string
TelemetryFilterContext The telemetry unit a filter rule is evaluated against, and that a matching rule drops. `profile_sample` evaluates each sample of a profile and drops matching samples individually.
const ( TelemetryFilterContextDatapoint TelemetryFilterContext = "datapoint" TelemetryFilterContextLog TelemetryFilterContext = "log" TelemetryFilterContextProfileSample TelemetryFilterContext = "profile_sample" TelemetryFilterContextSpan TelemetryFilterContext = "span" TelemetryFilterContextWebEvent TelemetryFilterContext = "web_event" )
Defines values for TelemetryFilterContext.
func (TelemetryFilterContext) Valid ¶ added in v1.29.0
func (e TelemetryFilterContext) Valid() bool
Valid indicates whether the value is a known member of the TelemetryFilterContext enum.
type TestSyntheticCheckRequest ¶ added in v1.4.0
type TestSyntheticCheckRequest struct {
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
Definition SyntheticCheckDefinition `json:"definition"`
}
TestSyntheticCheckRequest defines model for TestSyntheticCheckRequest.
type TestSyntheticCheckResponse ¶ added in v1.4.0
type TestSyntheticCheckResponse struct {
SyntheticCheckAttempt SyntheticCheckAttemptDetails `json:"syntheticCheckAttempt"`
}
TestSyntheticCheckResponse defines model for TestSyntheticCheckResponse.
type TimeRange ¶
type TimeRange struct {
// From A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
From FixedTime `json:"from"`
// To A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
To FixedTime `json:"to"`
}
TimeRange defines model for TimeRange.
type TimeReference ¶
type TimeReference struct {
// contains filtered or unexported fields
}
TimeReference defines model for TimeReference.
func TimeReferenceFromString ¶ added in v1.29.0
func TimeReferenceFromString(v string) TimeReference
TimeReferenceFromString returns a TimeReference holding v as a JSON string, such as "now-30m", "now" or an RFC 3339 timestamp.
func (TimeReference) AsFixedTime ¶ added in v1.29.0
func (t TimeReference) AsFixedTime() (FixedTime, error)
AsFixedTime returns the union data inside the TimeReference as a FixedTime
func (TimeReference) AsFixedTimeUnix ¶ added in v1.29.0
func (t TimeReference) AsFixedTimeUnix() (FixedTimeUnix, error)
AsFixedTimeUnix returns the union data inside the TimeReference as a FixedTimeUnix
func (TimeReference) AsRelativeTime ¶ added in v1.29.0
func (t TimeReference) AsRelativeTime() (RelativeTime, error)
AsRelativeTime returns the union data inside the TimeReference as a RelativeTime
func (*TimeReference) FromFixedTime ¶ added in v1.29.0
func (t *TimeReference) FromFixedTime(v FixedTime) error
FromFixedTime overwrites any union data inside the TimeReference as the provided FixedTime
func (*TimeReference) FromFixedTimeUnix ¶ added in v1.29.0
func (t *TimeReference) FromFixedTimeUnix(v FixedTimeUnix) error
FromFixedTimeUnix overwrites any union data inside the TimeReference as the provided FixedTimeUnix
func (*TimeReference) FromRelativeTime ¶ added in v1.29.0
func (t *TimeReference) FromRelativeTime(v RelativeTime) error
FromRelativeTime overwrites any union data inside the TimeReference as the provided RelativeTime
func (TimeReference) MarshalJSON ¶ added in v1.29.0
func (t TimeReference) MarshalJSON() ([]byte, error)
func (*TimeReference) MergeFixedTime ¶ added in v1.29.0
func (t *TimeReference) MergeFixedTime(v FixedTime) error
MergeFixedTime performs a merge with any union data inside the TimeReference, using the provided FixedTime
func (*TimeReference) MergeFixedTimeUnix ¶ added in v1.29.0
func (t *TimeReference) MergeFixedTimeUnix(v FixedTimeUnix) error
MergeFixedTimeUnix performs a merge with any union data inside the TimeReference, using the provided FixedTimeUnix
func (*TimeReference) MergeRelativeTime ¶ added in v1.29.0
func (t *TimeReference) MergeRelativeTime(v RelativeTime) error
MergeRelativeTime performs a merge with any union data inside the TimeReference, using the provided RelativeTime
func (*TimeReference) UnmarshalJSON ¶ added in v1.29.0
func (t *TimeReference) UnmarshalJSON(b []byte) error
type TimeReferenceRange ¶
type TimeReferenceRange struct {
From TimeReference `json:"from"`
To TimeReference `json:"to"`
}
TimeReferenceRange A range of time between two time references.
type TimeSeriesAggregationAnnotations ¶ added in v1.17.0
type TimeSeriesAggregationAnnotations struct {
// Dash0ComcreatedAt Timestamp when the aggregation was created. Set by the server; read-only.
Dash0ComcreatedAt *time.Time `json:"dash0.com/created-at,omitempty"`
// Dash0ComdeletedAt Timestamp when the aggregation was soft-deleted. Set by the server; read-only. Absent unless the aggregation is deleted.
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComupdatedAt Timestamp of the last update. Set by the server; read-only.
Dash0ComupdatedAt *time.Time `json:"dash0.com/updated-at,omitempty"`
}
TimeSeriesAggregationAnnotations defines model for TimeSeriesAggregationAnnotations.
type TimeSeriesAggregationAttributeModification ¶ added in v1.12.3
type TimeSeriesAggregationAttributeModification struct {
Kind TimeSeriesAggregationAttributeModificationKind `json:"kind"`
Spec TimeSeriesAggregationAttributeModificationSpec `json:"spec"`
}
TimeSeriesAggregationAttributeModification defines model for TimeSeriesAggregationAttributeModification.
type TimeSeriesAggregationAttributeModificationContext ¶ added in v1.12.3
type TimeSeriesAggregationAttributeModificationContext string
TimeSeriesAggregationAttributeModificationContext defines model for TimeSeriesAggregationAttributeModificationContext.
const ( TimeSeriesAggregationAttributeModificationContextDatapoint TimeSeriesAggregationAttributeModificationContext = "datapoint" TimeSeriesAggregationAttributeModificationContextResource TimeSeriesAggregationAttributeModificationContext = "resource" TimeSeriesAggregationAttributeModificationContextScope TimeSeriesAggregationAttributeModificationContext = "scope" )
Defines values for TimeSeriesAggregationAttributeModificationContext.
func (TimeSeriesAggregationAttributeModificationContext) Valid ¶ added in v1.29.0
func (e TimeSeriesAggregationAttributeModificationContext) Valid() bool
Valid indicates whether the value is a known member of the TimeSeriesAggregationAttributeModificationContext enum.
type TimeSeriesAggregationAttributeModificationKind ¶ added in v1.12.3
type TimeSeriesAggregationAttributeModificationKind string
TimeSeriesAggregationAttributeModificationKind defines model for TimeSeriesAggregationAttributeModification.Kind.
const ( DropAttributes TimeSeriesAggregationAttributeModificationKind = "drop_attributes" KeepAttributes TimeSeriesAggregationAttributeModificationKind = "keep_attributes" )
Defines values for TimeSeriesAggregationAttributeModificationKind.
func (TimeSeriesAggregationAttributeModificationKind) Valid ¶ added in v1.29.0
func (e TimeSeriesAggregationAttributeModificationKind) Valid() bool
Valid indicates whether the value is a known member of the TimeSeriesAggregationAttributeModificationKind enum.
type TimeSeriesAggregationAttributeModificationSpec ¶ added in v1.12.3
type TimeSeriesAggregationAttributeModificationSpec struct {
Context *TimeSeriesAggregationAttributeModificationContext `json:"context,omitempty"`
KeyMatcher Matcher `json:"keyMatcher"`
}
TimeSeriesAggregationAttributeModificationSpec defines model for TimeSeriesAggregationAttributeModificationSpec.
type TimeSeriesAggregationDefinition ¶ added in v1.12.3
type TimeSeriesAggregationDefinition struct {
Kind TimeSeriesAggregationDefinitionKind `json:"kind"`
Metadata TimeSeriesAggregationMetadata `json:"metadata"`
Spec TimeSeriesAggregationSpec `json:"spec"`
}
TimeSeriesAggregationDefinition defines model for TimeSeriesAggregationDefinition.
type TimeSeriesAggregationDefinitionKind ¶ added in v1.12.3
type TimeSeriesAggregationDefinitionKind string
TimeSeriesAggregationDefinitionKind defines model for TimeSeriesAggregationDefinition.Kind.
const (
Dash0TimeSeriesAggregation TimeSeriesAggregationDefinitionKind = "Dash0TimeSeriesAggregation"
)
Defines values for TimeSeriesAggregationDefinitionKind.
func (TimeSeriesAggregationDefinitionKind) Valid ¶ added in v1.29.0
func (e TimeSeriesAggregationDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the TimeSeriesAggregationDefinitionKind enum.
type TimeSeriesAggregationDisplay ¶ added in v1.12.3
type TimeSeriesAggregationDisplay struct {
// Name Short-form name for the view to be shown prominently within the view list and atop
// the screen when the view is selected.
Name string `json:"name"`
}
TimeSeriesAggregationDisplay defines model for TimeSeriesAggregationDisplay.
type TimeSeriesAggregationLabels ¶ added in v1.12.3
type TimeSeriesAggregationLabels struct {
Custom *map[string]string `json:"custom,omitempty"`
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
TimeSeriesAggregationLabels defines model for TimeSeriesAggregationLabels.
type TimeSeriesAggregationListResponse ¶ added in v1.17.0
type TimeSeriesAggregationListResponse struct {
TimeSeriesAggregations []TimeSeriesAggregationDefinition `json:"timeSeriesAggregations"`
}
TimeSeriesAggregationListResponse defines model for TimeSeriesAggregationListResponse.
type TimeSeriesAggregationMetadata ¶ added in v1.12.3
type TimeSeriesAggregationMetadata struct {
Annotations *TimeSeriesAggregationAnnotations `json:"annotations,omitempty"`
Labels *TimeSeriesAggregationLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
TimeSeriesAggregationMetadata defines model for TimeSeriesAggregationMetadata.
type TimeSeriesAggregationMetricNameMatch ¶ added in v1.12.3
type TimeSeriesAggregationMetricNameMatch struct {
MetricNameMatcher Matcher `json:"metricNameMatcher"`
OtherFilters *FilterCriteria `json:"otherFilters,omitempty"`
}
TimeSeriesAggregationMetricNameMatch defines model for TimeSeriesAggregationMetricNameMatch.
type TimeSeriesAggregationSample ¶ added in v1.12.3
type TimeSeriesAggregationSample struct {
// Delay The amount of time to account for delays in scraping, exporting, and data arrival. We suggest to always
// add a little bit of a delay to account for this. But you can increase it in case you have larger delays in
// your scrape and export processes.
Delay *Duration `json:"delay,omitempty"`
// Interval The frequency at which metric data points are aggregated via these rules. This is a required parameter.
// If you don't which to downsample your metrics, then set this to the scrape/export interval of your
// metrics. Otherwise, use a larger number to reduce the granularity of your metrics.
Interval Duration `json:"interval"`
// StaleAfter Duration after which a source time series with no new data is dropped from memory. This is a
// retention bound, and not a guarantee about exported values.
//
// When a source time series is dropped and new data arrives later, that source series starts
// over: its first new reading becomes a subtraction base rather than an increment, so no
// increment is derived across the gap. The aggregated output series itself continues, and its
// cumulative total is not reset, because resetting it would be read downstream as a counter
// reset.
//
// A source time series may be held slightly beyond this duration while an aggregation window
// that has not been exported yet still needs its last reading as a subtraction base. That is
// bounded by one export cycle, so it shifts when a series is dropped rather than whether.
//
// Must be at least delay plus interval, and is raised to that when a smaller value is
// configured: a window is not exported until delay after it closes, so a series declared dead
// sooner could never contribute to one.
//
// That minimum is necessary but not sufficient. This must also be longer than the reporting
// period of the sources the rule matches, or each reading is dropped before the next one
// arrives and the aggregated series exports nothing at all. Only the rule's own widths can be
// validated, so this one is on you: for a source scraped every 5 minutes, a staleAfter of a
// few seconds over delay plus interval is legal and useless.
//
// Default is 5 times the interval, subject to that same minimum.
StaleAfter *Duration `json:"staleAfter,omitempty"`
}
TimeSeriesAggregationSample defines model for TimeSeriesAggregationSample.
type TimeSeriesAggregationSpec ¶ added in v1.12.3
type TimeSeriesAggregationSpec struct {
AttributeModifications *[]TimeSeriesAggregationAttributeModification `json:"attributeModifications,omitempty"`
Display *TimeSeriesAggregationDisplay `json:"display,omitempty"`
Enabled bool `json:"enabled"`
Match TimeSeriesAggregationMetricNameMatch `json:"match"`
// Priority Precedence when more than one rule matches a metric. Lower values are evaluated first
// (higher precedence). Defaults to 2, the middle of the range, so a rule can be ranked
// both above and below the default without renumbering the others. Rules with equal
// priority are ordered deterministically by creation time, then by id.
Priority *int `json:"priority,omitempty"`
Sample TimeSeriesAggregationSample `json:"sample"`
}
TimeSeriesAggregationSpec defines model for TimeSeriesAggregationSpec.
type TimingAssertion ¶
type TimingAssertion struct {
Kind TimingAssertionKind `json:"kind"`
Spec TimingAssertionSpec `json:"spec"`
}
TimingAssertion defines model for TimingAssertion.
type TimingAssertionKind ¶
type TimingAssertionKind string
TimingAssertionKind defines model for TimingAssertion.Kind.
const (
Timing TimingAssertionKind = "timing"
)
Defines values for TimingAssertionKind.
func (TimingAssertionKind) Valid ¶ added in v1.29.0
func (e TimingAssertionKind) Valid() bool
Valid indicates whether the value is a known member of the TimingAssertionKind enum.
type TimingAssertionSpec ¶
type TimingAssertionSpec struct {
Operator NumericAssertionOperator `json:"operator"`
Type TimingType `json:"type"`
Value Duration `json:"value"`
}
TimingAssertionSpec defines model for TimingAssertionSpec.
type TimingType ¶
type TimingType string
TimingType defines model for TimingType.
const ( TimingTypeConnection TimingType = "connection" TimingTypeDns TimingType = "dns" TimingTypeRequest TimingType = "request" TimingTypeResponse TimingType = "response" TimingTypeSsl TimingType = "ssl" TimingTypeTotal TimingType = "total" )
Defines values for TimingType.
func (TimingType) Valid ¶ added in v1.29.0
func (e TimingType) Valid() bool
Valid indicates whether the value is a known member of the TimingType enum.
type TlsSettings ¶
type TlsSettings struct {
AllowInsecure bool `json:"allowInsecure"`
}
TlsSettings defines model for TlsSettings.
type TopologyEdge ¶ added in v1.28.0
type TopologyEdge struct {
// Source Identifies a service: an OpenTelemetry resource grouped by
// `service.namespace` + `service.name`.
//
// Field names are unprefixed because the property carrying this object
// already qualifies them (`service.name`, not `service.serviceName`).
// That is a deliberate divergence from `StarredServiceRef`, whose
// prefixed names are already shipped to clients and cannot be renamed
// without a breaking change, so the two stay separate rather than being
// consolidated.
Source ServiceRef `json:"source"`
// Statistics RED statistics for one edge: total `count`, the per-status breakdown
// (`statusCounts`), and the duration distribution (`duration`). A field
// the server declined to compute is absent: the key is omitted rather
// than sent as `null`, so a strict client should test for presence.
//
// The error rate is not included: derive it as
// `statusCounts.error / count`. `count` may be `0`, in which case there
// is no rate to show.
//
// **These numbers are not comparable to the target node's.** Two
// independent reasons, both expected rather than defects:
//
// 1. *Different histograms.* An edge's `duration` is read from an
// explicit-bucket histogram and interpolated within a bucket, while a
// node's comes from an exponential histogram and is near-exact. The
// same service's node `duration.p50` and its inbound edges'
// `duration.p50` will differ, sometimes substantially.
// 2. *Different populations.* A node's `count` is every request the
// service served. An edge's `count` is only the calls whose caller
// could be identified, and is scaled by the sampling compensation
// factor. Inbound edge counts therefore do not sum to the node count,
// and are usually lower.
//
// Measured from the server side of each call.
Statistics TopologyEdgeStatistics `json:"statistics"`
// Target Identifies a service: an OpenTelemetry resource grouped by
// `service.namespace` + `service.name`.
//
// Field names are unprefixed because the property carrying this object
// already qualifies them (`service.name`, not `service.serviceName`).
// That is a deliberate divergence from `StarredServiceRef`, whose
// prefixed names are already shipped to clients and cannot be renamed
// without a breaking change, so the two stay separate rather than being
// consolidated.
Target ServiceRef `json:"target"`
}
TopologyEdge One direction of calls between two nodes, aggregated over the whole time range. `source` and `target` are service identities that each match exactly one `nodes[].service`; join on `(namespace, name)`.
There is no opaque edge or node identifier: the identity is the key. A pair of services calling each other both ways appears as two edges.
type TopologyEdgeDurationStatistic ¶ added in v1.28.0
type TopologyEdgeDurationStatistic struct {
Duration *TopologyEdgeDurationSummary `json:"duration,omitempty"`
}
TopologyEdgeDurationStatistic Duration distribution of the calls on the edge. `duration` is absent — the key is omitted, not sent as `null` — when the server computed no duration statistic, or when no call on the edge carried duration data.
type TopologyEdgeDurationSummary ¶ added in v1.28.0
type TopologyEdgeDurationSummary struct {
Avg *float64 `json:"avg,omitempty"`
P50 *float64 `json:"p50,omitempty"`
P75 *float64 `json:"p75,omitempty"`
P90 *float64 `json:"p90,omitempty"`
}
TopologyEdgeDurationSummary Duration distribution over the calls on one edge. All fields are in seconds.
Every field is optional because `TopologyEdgeStatistic` selects duration fields individually, so any subset of the four can be absent. An absent field was not requested or could not be computed; it is never a zero or a sentinel.
type TopologyEdgeStatistic ¶ added in v1.28.0
type TopologyEdgeStatistic string
TopologyEdgeStatistic Selects which statistics the server computes per edge.
A subset of `ServiceStatistic`. `duration.min`, `duration.max`, `duration.sum`, `duration.p95` and `duration.p99` are absent because the connection metric is an explicit-bucket histogram whose boundaries reach 1200s in a handful of steps; a p99 read off it is a bucket boundary rather than a measurement.
- `count`: total request count on the edge.
- `statusCounts`: the per-status request breakdown, as a whole. It has no leaf members, matching `ServiceStatistic`: the three counts are a closed partition produced by a single aggregate.
- `duration`: prefix alias for all four duration fields.
- `duration.avg`, `duration.p50`, `duration.p75`, `duration.p90`: individually selectable.
The same three rules as `ServiceStatistic` govern the vocabulary: the list is a set, so duplicates and overlaps collapse rather than erroring; no member implies any other, and the server never widens a request to a superset; and cost is documented, never encoded.
Cost here is steeper than on the node side. `count` and `statusCounts` are one query together. `duration.avg` is one more. **Each named percentile is one more query on top of that**, and each reads the full bucket set for every connection in the time range. Naming all three percentiles costs four more queries than naming none.
const ( TopologyEdgeStatisticCount TopologyEdgeStatistic = "count" TopologyEdgeStatisticDuration TopologyEdgeStatistic = "duration" TopologyEdgeStatisticDurationAvg TopologyEdgeStatistic = "duration.avg" TopologyEdgeStatisticDurationP50 TopologyEdgeStatistic = "duration.p50" TopologyEdgeStatisticDurationP75 TopologyEdgeStatistic = "duration.p75" TopologyEdgeStatisticDurationP90 TopologyEdgeStatistic = "duration.p90" TopologyEdgeStatisticStatusCounts TopologyEdgeStatistic = "statusCounts" )
Defines values for TopologyEdgeStatistic.
func (TopologyEdgeStatistic) Valid ¶ added in v1.29.0
func (e TopologyEdgeStatistic) Valid() bool
Valid indicates whether the value is a known member of the TopologyEdgeStatistic enum.
type TopologyEdgeStatistics ¶ added in v1.28.0
type TopologyEdgeStatistics struct {
Count *int `json:"count,omitempty"`
Duration *TopologyEdgeDurationSummary `json:"duration,omitempty"`
StatusCounts *StatusCounts `json:"statusCounts,omitempty"`
}
TopologyEdgeStatistics RED statistics for one edge: total `count`, the per-status breakdown (`statusCounts`), and the duration distribution (`duration`). A field the server declined to compute is absent: the key is omitted rather than sent as `null`, so a strict client should test for presence.
The error rate is not included: derive it as `statusCounts.error / count`. `count` may be `0`, in which case there is no rate to show.
**These numbers are not comparable to the target node's.** Two independent reasons, both expected rather than defects:
- *Different histograms.* An edge's `duration` is read from an explicit-bucket histogram and interpolated within a bucket, while a node's comes from an exponential histogram and is near-exact. The same service's node `duration.p50` and its inbound edges' `duration.p50` will differ, sometimes substantially.
- *Different populations.* A node's `count` is every request the service served. An edge's `count` is only the calls whose caller could be identified, and is scaled by the sampling compensation factor. Inbound edge counts therefore do not sum to the node count, and are usually lower.
Measured from the server side of each call.
type TopologyNode ¶ added in v1.28.0
type TopologyNode struct {
// Kind - `service`: a service that reported telemetry of its own. Its
// `statistics` are read from its own RED metrics.
// - `inferred`: a peer named only by an edge, so it has no RED metrics
// here and `statistics` is absent; read its edges instead. Four causes,
// and the response does not distinguish them: a peer that reports no
// telemetry at all, such as a database, a broker or a third-party API;
// a service whose own telemetry did not arrive; a service past
// `nodeLimit`; and a service excluded by `filter` but still calling one
// that matched. The last two are ordinary services — `inferred` here
// means "not in this response's service list", not "not a service".
// - `unknown`: the placeholder for calls that arrived with no
// identifiable caller, such as a root `SERVER` span or a request whose
// trace context was broken in transit. At most one per response, and
// not a real peer. It exists so the traffic it carries is visible
// rather than silently dropped.
Kind TopologyNodeKind `json:"kind"`
// Service Identifies a service: an OpenTelemetry resource grouped by
// `service.namespace` + `service.name`.
//
// Field names are unprefixed because the property carrying this object
// already qualifies them (`service.name`, not `service.serviceName`).
// That is a deliberate divergence from `StarredServiceRef`, whose
// prefixed names are already shipped to clients and cannot be renamed
// without a breaking change, so the two stay separate rather than being
// consolidated.
Service ServiceRef `json:"service"`
// Statistics Absent — the key is omitted, not sent as `null` — when the node has
// no RED metrics of its own. Always so for `inferred` and `unknown`
// nodes, and for a `service` node whose statistics could not be
// computed.
Statistics *ServiceRedStatistics `json:"statistics,omitempty"`
}
TopologyNode One service in the topology. `service` is the identity; join edges to nodes on `(namespace, name)`.
type TopologyNodeKind ¶ added in v1.28.0
type TopologyNodeKind string
TopologyNodeKind - `service`: a service that reported telemetry of its own. Its
`statistics` are read from its own RED metrics.
- `inferred`: a peer named only by an edge, so it has no RED metrics
here and `statistics` is absent; read its edges instead. Four causes,
and the response does not distinguish them: a peer that reports no
telemetry at all, such as a database, a broker or a third-party API;
a service whose own telemetry did not arrive; a service past
`nodeLimit`; and a service excluded by `filter` but still calling one
that matched. The last two are ordinary services — `inferred` here
means "not in this response's service list", not "not a service".
- `unknown`: the placeholder for calls that arrived with no
identifiable caller, such as a root `SERVER` span or a request whose
trace context was broken in transit. At most one per response, and
not a real peer. It exists so the traffic it carries is visible
rather than silently dropped.
const ( TopologyNodeKindInferred TopologyNodeKind = "inferred" TopologyNodeKindService TopologyNodeKind = "service" TopologyNodeKindUnknown TopologyNodeKind = "unknown" )
Defines values for TopologyNodeKind.
func (TopologyNodeKind) Valid ¶ added in v1.29.0
func (e TopologyNodeKind) Valid() bool
Valid indicates whether the value is a known member of the TopologyNodeKind enum.
type TopologyResponse ¶ added in v1.28.0
type TopologyResponse struct {
Edges []TopologyEdge `json:"edges"`
// ExecutionTime A fixed point in time represented as an RFC 3339 date-time string.
//
// **Format**: `YYYY-MM-DDTHH:MM:SSZ` (UTC) or `YYYY-MM-DDTHH:MM:SS±HH:MM` (with timezone offset)
//
// **Examples**:
// - `2024-01-15T14:30:00Z`
// - `2024-01-15T14:30:00+08:00`
ExecutionTime FixedTime `json:"executionTime"`
Nodes []TopologyNode `json:"nodes"`
TimeRange TimeRange `json:"timeRange"`
// Warnings Conditions that left the graph incomplete but did not fail the
// request: node truncation at `nodeLimit`, series-limit truncation on
// the edge queries, edges dropped because an endpoint could not be
// resolved, and statistics skipped because their query failed.
//
// An empty or absent array means the graph is complete for the
// requested time range. A non-empty one means it is not, and the
// entries say why.
Warnings *[]string `json:"warnings,omitempty"`
}
TopologyResponse The service topology for the requested time range.
Not paginated. A page of a graph is not a graph: an edge whose endpoint fell on another page cannot be rendered, and neither half can be ordered in a way that keeps the other half whole. Coverage is bounded by `nodeLimit` and by the server's series limit instead, and both report through `warnings`.
type TotalCountStatistic ¶ added in v1.28.0
type TotalCountStatistic struct {
Count *int `json:"count,omitempty"`
}
TotalCountStatistic Total number of signal records matching the entry. Signal-agnostic fragment — applies to logs, spans, metrics, and any other signal type.
type TracingSettings ¶
type TracingSettings struct {
AddTracingHeaders bool `json:"addTracingHeaders"`
}
TracingSettings defines model for TracingSettings.
type Transport ¶ added in v1.8.0
type Transport struct {
// contains filtered or unexported fields
}
Transport is a reusable HTTP transport stack that provides rate limiting and retry with exponential backoff. Build one with NewTransport and share it between raw http.Client usage and a typed Client via WithTransport.
A Transport is safe for concurrent use.
func NewTransport ¶ added in v1.8.0
func NewTransport(opts ...TransportOption) *Transport
NewTransport creates a configured Transport with rate limiting and retry. Values outside valid ranges are clamped silently.
Example:
t := dash0.NewTransport(
dash0.WithTransportMaxRetries(3),
dash0.WithTransportTimeout(10 * time.Second),
)
httpClient := t.HTTPClient()
Example ¶
package main
import (
"fmt"
"time"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
t := dash0.NewTransport(
dash0.WithTransportMaxRetries(3),
dash0.WithTransportTimeout(10*time.Second),
)
fmt.Println(t.HTTPClient() != nil)
}
Output: true
func (*Transport) HTTPClient ¶ added in v1.8.0
HTTPClient returns a new http.Client that uses this transport's rate limiting and retry stack. Each call returns a new http.Client, but all returned clients share the same underlying transport so rate-limit budgets and concurrency limits are shared.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
t := dash0.NewTransport()
httpClient := t.HTTPClient()
fmt.Println(httpClient != nil)
}
Output: true
func (*Transport) RoundTripper ¶ added in v1.8.0
func (t *Transport) RoundTripper() http.RoundTripper
RoundTripper returns the underlying http.RoundTripper with the full transport stack (rate limiting and retry) applied. Use this to plug the transport into an existing http.Client or other HTTP infrastructure.
type TransportOption ¶ added in v1.8.0
type TransportOption func(*transportConfig)
TransportOption configures a Transport.
func WithBaseTransport ¶ added in v1.8.0
func WithBaseTransport(rt http.RoundTripper) TransportOption
WithBaseTransport sets the underlying http.RoundTripper that the transport stack wraps. If not set, http.DefaultTransport is used.
func WithTransportMaxConcurrentRequests ¶ added in v1.8.0
func WithTransportMaxConcurrentRequests(n int64) TransportOption
WithTransportMaxConcurrentRequests sets the maximum number of concurrent API calls. The value must be between 1 and 10 (inclusive). Values outside this range will be clamped. Default is 3.
func WithTransportMaxRetries ¶ added in v1.8.0
func WithTransportMaxRetries(n int) TransportOption
WithTransportMaxRetries sets the maximum number of retries for failed requests. Only idempotent requests (GET, PUT, DELETE) and requests marked with withIdempotent context are retried. Default is 1. Maximum is 5. Set to 0 to disable retries.
func WithTransportRetryOnConflict ¶ added in v1.21.1
func WithTransportRetryOnConflict() TransportOption
WithTransportRetryOnConflict enables retrying requests that fail with 409 Conflict. Retrying a conflict is off unless this option is passed, so the option takes no argument.
See WithRetryOnConflict for what the 409 means and why replaying the request is safe.
Example ¶
package main
import (
"fmt"
dash0 "github.com/dash0hq/dash0-api-client-go"
)
func main() {
t := dash0.NewTransport(
dash0.WithTransportMaxRetries(3),
dash0.WithTransportRetryOnConflict(),
)
fmt.Println(t.RoundTripper() != nil)
}
Output: true
func WithTransportRetryWaitMax ¶ added in v1.8.0
func WithTransportRetryWaitMax(d time.Duration) TransportOption
WithTransportRetryWaitMax sets the maximum wait time between retries. Default is 30s. The backoff will not exceed this value.
func WithTransportRetryWaitMin ¶ added in v1.8.0
func WithTransportRetryWaitMin(d time.Duration) TransportOption
WithTransportRetryWaitMin sets the minimum wait time between retries. Default is 500ms. The actual wait time uses exponential backoff starting from this value.
func WithTransportTimeout ¶ added in v1.8.0
func WithTransportTimeout(d time.Duration) TransportOption
WithTransportTimeout sets the HTTP request timeout applied to clients returned by Transport.HTTPClient. Default is 30 seconds.
type UpdateMemberRoleRequest ¶ added in v1.23.0
type UpdateMemberRoleRequest struct {
// Role The member's role in the organization
Role string `json:"role"`
}
UpdateMemberRoleRequest defines model for UpdateMemberRoleRequest.
type ViewAction ¶
type ViewAction string
ViewAction defines model for ViewAction.
const ( ViewsDelete ViewAction = "views:delete" ViewsRead ViewAction = "views:read" ViewsWrite ViewAction = "views:write" )
Defines values for ViewAction.
func (ViewAction) Valid ¶ added in v1.29.0
func (e ViewAction) Valid() bool
Valid indicates whether the value is a known member of the ViewAction enum.
type ViewAnnotations ¶
type ViewAnnotations struct {
Dash0ComdeletedAt *time.Time `json:"dash0.com/deleted-at,omitempty"`
// Dash0ComfolderPath Optional UI folder path for organising groups (e.g. '/infrastructure/hosts'). Nesting is expressed with '/' separators.
Dash0ComfolderPath *string `json:"dash0.com/folder-path,omitempty"`
// Dash0Comsharing Comma-separated list of principals to grant read access to. Supported formats: 'team:<team_id>' and 'user:<email>'. Example: 'team:team_01abc,user:alice@example.com'. Sharing is honored only on assets that declare a dash0.com/origin (for example those managed by Terraform, the operator, the CLI, or the API). Setting it on an asset that declares no dash0.com/origin is rejected with a 400 — manage that asset's access via the UI share dialog instead.
Dash0Comsharing *string `json:"dash0.com/sharing,omitempty"`
}
ViewAnnotations defines model for ViewAnnotations.
type ViewApiListItem ¶
type ViewApiListItem struct {
Dataset string `json:"dataset"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
Origin *string `json:"origin,omitempty"`
// Type The view type describes where this view configuration is intended to be applied in the UI.
Type ViewType `json:"type"`
}
ViewApiListItem defines model for ViewApiListItem.
type ViewDefinition ¶
type ViewDefinition struct {
Kind ViewDefinitionKind `json:"kind"`
Metadata ViewMetadata `json:"metadata"`
Spec ViewSpec `json:"spec"`
}
ViewDefinition defines model for ViewDefinition.
type ViewDefinitionKind ¶
type ViewDefinitionKind string
ViewDefinitionKind defines model for ViewDefinition.Kind.
const (
Dash0View ViewDefinitionKind = "Dash0View"
)
Defines values for ViewDefinitionKind.
func (ViewDefinitionKind) Valid ¶ added in v1.29.0
func (e ViewDefinitionKind) Valid() bool
Valid indicates whether the value is a known member of the ViewDefinitionKind enum.
type ViewDisplay ¶
type ViewDisplay struct {
// Description Long-form explanation what the view is doing. Shown within the list of views to help
// team members understand the purpose of the view.
Description *string `json:"description,omitempty"`
// Name Short-form name for the view to be shown prominently within the view list and atop
// the screen when the view is selected.
Name string `json:"name"`
}
ViewDisplay defines model for ViewDisplay.
type ViewLabels ¶
type ViewLabels struct {
Dash0Comdataset *string `json:"dash0.com/dataset,omitempty"`
Dash0Comid *string `json:"dash0.com/id,omitempty"`
Dash0Comorigin *string `json:"dash0.com/origin,omitempty"`
// Dash0Comsource Origin of a Dash0 resource, derived from `dash0.com/origin` on read.
// - `ui`: created interactively in the Dash0 UI.
// - `terraform`: managed via the Dash0 Terraform provider.
// - `operator`: managed via the Dash0 Kubernetes operator.
// - `dash0-cli`: managed via the Dash0 CLI.
// - `platform`: owned by Dash0 rather than by anyone in your organization. Covers both
// resources Dash0 generates from another resource you own (the recording rules an SLO
// produces) and resources Dash0 ships with the product (the built-in views).
// - `identity-provider`: a team whose membership Dash0 keeps in sync with a directory
// group from the organization's identity provider. Membership edits made by hand
// revert on the next reconcile.
// - `api`: created directly through the API, and the fallback for any origin whose
// prefix is not recognized.
//
// New values may be added over time. Treat an unrecognized value as `api`
// rather than rejecting the response.
Dash0Comsource *CrdSource `json:"dash0.com/source,omitempty"`
Dash0Comversion *string `json:"dash0.com/version,omitempty"`
}
ViewLabels defines model for ViewLabels.
type ViewMetadata ¶
type ViewMetadata struct {
Annotations *ViewAnnotations `json:"annotations,omitempty"`
Labels *ViewLabels `json:"labels,omitempty"`
Name string `json:"name"`
}
ViewMetadata defines model for ViewMetadata.
type ViewPermission ¶
type ViewPermission struct {
// Actions Outlines possible actions that matching views can take with this view.
Actions []ViewAction `json:"actions"`
// Role Use role identifiers such as `admin` and `basic_member` to reference user groups.
Role *string `json:"role,omitempty"`
TeamId *string `json:"teamId,omitempty"`
UserId *string `json:"userId,omitempty"`
}
ViewPermission defines model for ViewPermission.
type ViewSpec ¶
type ViewSpec struct {
Display ViewDisplay `json:"display"`
// Filter The filter for the whole view.
Filter *FilterCriteria `json:"filter,omitempty"`
// GroupBy A set of attribute keys to group the view by. This property may be missing to indicate that
// no configuration was historically made for this view, i.e., the view was saved before the
// grouping capability was added. In that case, you can assume a default grouping should be used.
GroupBy *[]string `json:"groupBy,omitempty"`
// ImplicitFilter An implicit filter the user cannot change that will always be applied to the view. It will not
// be shown in the UI.
ImplicitFilter *FilterCriteria `json:"implicitFilter,omitempty"`
// Permissions The explicit grants on this view.
//
// On `PUT /api/views/{originOrId}`, three cases are distinguished:
//
// - **Omitted**: the stored grants are left untouched. Use this when the request carries
// no opinion about access, for example a content-only update.
// - **Empty array**: the grants are reset to the ones a newly created view receives.
// This is how a declarative caller removes grants it previously declared — omitting
// the field would be a silent no-op.
// - **Non-empty array**: the stored grants are replaced by exactly this set.
//
// The other write endpoints require a set carrying both write and delete, so an empty
// array is rejected there.
Permissions *[]ViewPermission `json:"permissions,omitempty"`
// Query The SQL query associated with this view. Only applicable when type is "sql".
// When the view is loaded, this query is used to populate the editor and auto-executed.
Query *string `json:"query,omitempty"`
ServiceMapProperties *ViewSpecServiceMapProperties `json:"serviceMapProperties,omitempty"`
// ServiceName The selected service name for this view. Only applicable when type is "profiles".
// When the view is loaded, this service is pre-selected in the filter bar.
ServiceName *string `json:"serviceName,omitempty"`
Table *ViewTable `json:"table,omitempty"`
// Type Views can exist in a variety of locations within the Dash0. The type defines
// where the view can be used, and consequently where it would appear as a selectable
// option.
Type ViewType `json:"type"`
// Visualizations A visualization configuration for the view. We only support a single visualization for now per view.
Visualizations *[]ViewVisualization `json:"visualizations,omitempty"`
}
ViewSpec defines model for ViewSpec.
type ViewSpecServiceMapProperties ¶ added in v1.2.0
type ViewSpecServiceMapProperties struct {
// ExpandedGroups A list of expanded group identifiers in the service map. When external services are grouped,
// individual groups can be expanded to show all services within. This list stores which groups
// are currently expanded.
ExpandedGroups *[]string `json:"expandedGroups,omitempty"`
ExternalServices ViewSpecServiceMapPropertiesExternalServices `json:"externalServices"`
Layout ViewSpecServiceMapPropertiesLayout `json:"layout"`
NodeSizing bool `json:"nodeSizing"`
Particles bool `json:"particles"`
SelectedMetric string `json:"selectedMetric"`
// ShowIndirectServices Whether services that do not match the filter, but communicate with services that do, are
// shown in the service map. Treated as `true` when omitted.
ShowIndirectServices *bool `json:"showIndirectServices,omitempty"`
// ShowSyntheticServices Whether the services that Dash0 synthetic checks report as are shown in the service map.
// Treated as `true` when omitted.
ShowSyntheticServices *bool `json:"showSyntheticServices,omitempty"`
}
ViewSpecServiceMapProperties defines model for ViewSpecServiceMapProperties.
type ViewSpecServiceMapPropertiesExternalServices ¶ added in v1.2.0
type ViewSpecServiceMapPropertiesExternalServices string
ViewSpecServiceMapPropertiesExternalServices defines model for ViewSpecServiceMapProperties.ExternalServices.
const ( All ViewSpecServiceMapPropertiesExternalServices = "all" Group ViewSpecServiceMapPropertiesExternalServices = "group" Hide ViewSpecServiceMapPropertiesExternalServices = "hide" )
Defines values for ViewSpecServiceMapPropertiesExternalServices.
func (ViewSpecServiceMapPropertiesExternalServices) Valid ¶ added in v1.29.0
func (e ViewSpecServiceMapPropertiesExternalServices) Valid() bool
Valid indicates whether the value is a known member of the ViewSpecServiceMapPropertiesExternalServices enum.
type ViewSpecServiceMapPropertiesLayout ¶ added in v1.2.0
type ViewSpecServiceMapPropertiesLayout string
ViewSpecServiceMapPropertiesLayout defines model for ViewSpecServiceMapProperties.Layout.
const ( Flow ViewSpecServiceMapPropertiesLayout = "flow" Force ViewSpecServiceMapPropertiesLayout = "force" )
Defines values for ViewSpecServiceMapPropertiesLayout.
func (ViewSpecServiceMapPropertiesLayout) Valid ¶ added in v1.29.0
func (e ViewSpecServiceMapPropertiesLayout) Valid() bool
Valid indicates whether the value is a known member of the ViewSpecServiceMapPropertiesLayout enum.
type ViewTable ¶
type ViewTable struct {
Columns []ViewTableColumn `json:"columns"`
// Sort Any supported attribute keys to order by.
Sort OrderingCriteria `json:"sort"`
}
ViewTable defines model for ViewTable.
type ViewTableColumn ¶
type ViewTableColumn struct {
// ColSize A CSS grid layout sizing instruction. Supports hard-coded sizing such as `7rem`, but also `min-content`
// and similar variants.
ColSize *string `json:"colSize,omitempty"`
// Key The key of the attribute to be displayed in this column. This can also be a built-in column name.
Key string `json:"key"`
Label *string `json:"label,omitempty"`
}
ViewTableColumn defines model for ViewTableColumn.
type ViewType ¶
type ViewType string
ViewType The view type describes where this view configuration is intended to be applied in the UI.
const ( ViewTypeAwsLambda ViewType = "aws_lambda" ViewTypeFailedChecks ViewType = "failed_checks" ViewTypeGcpCloudRunJobs ViewType = "gcp_cloud_run_jobs" ViewTypeGcpCloudRunServices ViewType = "gcp_cloud_run_services" ViewTypeGcpCloudSqlInstances ViewType = "gcp_cloud_sql_instances" ViewTypeGcpCloudStorage ViewType = "gcp_cloud_storage" ViewTypeGcpPubsub ViewType = "gcp_pubsub" ViewTypeLogs ViewType = "logs" ViewTypeMetrics ViewType = "metrics" ViewTypeProfiles ViewType = "profiles" ViewTypeResources ViewType = "resources" ViewTypeServices ViewType = "services" ViewTypeSlos ViewType = "slos" ViewTypeSpans ViewType = "spans" ViewTypeSql ViewType = "sql" ViewTypeWebEvents ViewType = "web_events" )
Defines values for ViewType.
type ViewVisualization ¶
type ViewVisualization struct {
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Metric *ViewVisualizationMetric `json:"metric,omitempty"`
// Renderer The renderer type for the visualization. The pattern matching is inspired by glob, where `*` can be used as a wildcard.
// The matching prioritizes precise matches before wildcard matches.
// If there are multiple renderers, select buttons will be added to allow toggling between the renderers.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Renderer *ViewVisualizationRenderer `json:"renderer,omitempty"`
// Renderers A set of visualizations (charts) to render as part of this view. We currently only expect
// to render a single
Renderers []ViewVisualizationRenderer `json:"renderers"`
// YAxisScale The Y axis scale for the visualization.
YAxisScale *AxisScale `json:"yAxisScale,omitempty"`
}
ViewVisualization defines model for ViewVisualization.
type ViewVisualizationMetric ¶
type ViewVisualizationMetric string
ViewVisualizationMetric defines model for ViewVisualizationMetric.
const ( LogsRate ViewVisualizationMetric = "logs_rate" LogsTotal ViewVisualizationMetric = "logs_total" SpansDurationAvg ViewVisualizationMetric = "spans_duration_avg" SpansDurationP50 ViewVisualizationMetric = "spans_duration_p50" SpansDurationP75 ViewVisualizationMetric = "spans_duration_p75" SpansDurationP90 ViewVisualizationMetric = "spans_duration_p90" SpansDurationP95 ViewVisualizationMetric = "spans_duration_p95" SpansDurationP99 ViewVisualizationMetric = "spans_duration_p99" SpansErrorsPercentage ViewVisualizationMetric = "spans_errors_percentage" SpansErrorsRate ViewVisualizationMetric = "spans_errors_rate" SpansErrorsTotal ViewVisualizationMetric = "spans_errors_total" SpansRate ViewVisualizationMetric = "spans_rate" SpansTotal ViewVisualizationMetric = "spans_total" )
Defines values for ViewVisualizationMetric.
func (ViewVisualizationMetric) Valid ¶ added in v1.29.0
func (e ViewVisualizationMetric) Valid() bool
Valid indicates whether the value is a known member of the ViewVisualizationMetric enum.
type ViewVisualizationRenderer ¶
type ViewVisualizationRenderer string
ViewVisualizationRenderer The renderer type for the visualization. The pattern matching is inspired by glob, where `*` can be used as a wildcard. The matching prioritizes precise matches before wildcard matches. If there are multiple renderers, select buttons will be added to allow toggling between the renderers.
const ( LoggingstackedBar ViewVisualizationRenderer = "logging/*/stacked_bar" Resourcesfaasred ViewVisualizationRenderer = "resources/faas/red" Resourcesk8sCronJobsexecutions ViewVisualizationRenderer = "resources/k8s-cron-jobs/executions" Resourcesk8sCronJobsred ViewVisualizationRenderer = "resources/k8s-cron-jobs/red" Resourcesk8sDaemonSetsred ViewVisualizationRenderer = "resources/k8s-daemon-sets/red" Resourcesk8sDaemonSetsscheduledNodes ViewVisualizationRenderer = "resources/k8s-daemon-sets/scheduled-nodes" Resourcesk8sDeploymentsred ViewVisualizationRenderer = "resources/k8s-deployments/red" Resourcesk8sDeploymentsreplicas ViewVisualizationRenderer = "resources/k8s-deployments/replicas" Resourcesk8sJobsexecutions ViewVisualizationRenderer = "resources/k8s-jobs/executions" Resourcesk8sJobsred ViewVisualizationRenderer = "resources/k8s-jobs/red" Resourcesk8sNamespacesred ViewVisualizationRenderer = "resources/k8s-namespaces/red" Resourcesk8sNodescpuMemoryDisk ViewVisualizationRenderer = "resources/k8s-nodes/cpu-memory-disk" Resourcesk8sNodesstatus ViewVisualizationRenderer = "resources/k8s-nodes/status" Resourcesk8sPodscpuMemory ViewVisualizationRenderer = "resources/k8s-pods/cpu-memory" Resourcesk8sPodsred ViewVisualizationRenderer = "resources/k8s-pods/red" Resourcesk8sPodsstatus ViewVisualizationRenderer = "resources/k8s-pods/status" Resourcesk8sReplicaSetsred ViewVisualizationRenderer = "resources/k8s-replica-sets/red" Resourcesk8sReplicaSetsreplicas ViewVisualizationRenderer = "resources/k8s-replica-sets/replicas" Resourcesk8sStatefulSetsred ViewVisualizationRenderer = "resources/k8s-stateful-sets/red" Resourcesk8sStatefulSetsreplicas ViewVisualizationRenderer = "resources/k8s-stateful-sets/replicas" Resourcesnamesred ViewVisualizationRenderer = "resources/names/red" Resourcesoperationsred ViewVisualizationRenderer = "resources/operations/red" Resourcesoverviewoverview ViewVisualizationRenderer = "resources/overview/overview" Resourcesservicesred ViewVisualizationRenderer = "resources/services/red" ResourcestableTree ViewVisualizationRenderer = "resources/*/table-tree" TracesExploreroutliers ViewVisualizationRenderer = "traces-explorer/*/outliers" TracesExplorerred ViewVisualizationRenderer = "traces-explorer/*/red" )
Defines values for ViewVisualizationRenderer.
func (ViewVisualizationRenderer) Valid ¶ added in v1.29.0
func (e ViewVisualizationRenderer) Valid() bool
Valid indicates whether the value is a known member of the ViewVisualizationRenderer enum.
type WebEventExportFormat ¶ added in v1.18.1
type WebEventExportFormat string
WebEventExportFormat The serialization format of the exported file.
- `txt`: One rendered line per web event, carrying a fixed field set of timestamp, service, event name, title, duration and trace ID. Ignores `columns`.
- `ndjson`: One OTLP JSON payload per line, each carrying a single web event inside an OTLP `resourceLogs` envelope — web events are stored as OTLP log records — so each line is independently parseable by any OTLP JSON consumer.
- `yaml`: The same per-event OTLP payloads as `ndjson`, as a multi-document YAML stream with documents separated by `---`.
- `csv`: A header row plus one row per web event, flattened to the requested `columns`.
const ( WebEventExportFormatCsv WebEventExportFormat = "csv" WebEventExportFormatNdjson WebEventExportFormat = "ndjson" WebEventExportFormatTxt WebEventExportFormat = "txt" WebEventExportFormatYaml WebEventExportFormat = "yaml" )
Defines values for WebEventExportFormat.
func (WebEventExportFormat) Valid ¶ added in v1.29.0
func (e WebEventExportFormat) Valid() bool
Valid indicates whether the value is a known member of the WebEventExportFormat enum.
type WebEventsDownloadRequest ¶ added in v1.18.1
type WebEventsDownloadRequest struct {
// Columns Attribute keys to emit as columns, in order, for the `csv` format — resource,
// scope, or event attributes (e.g. `service.name`, `event.name`,
// `dash0.web.event.duration`). Ignored by the other formats, which have a fixed
// field set.
Columns *[]string `json:"columns,omitempty"`
// Dataset The slug of a dataset, such as `default`. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.
Dataset *Dataset `json:"dataset,omitempty"`
EventNames *[]string `json:"eventNames,omitempty"`
Filter *FilterCriteria `json:"filter,omitempty"`
// Format The serialization format of the exported file.
// - `txt`: One rendered line per web event, carrying a fixed field set of timestamp,
// service, event name, title, duration and trace ID. Ignores `columns`.
// - `ndjson`: One OTLP JSON payload per line, each carrying a single web event inside
// an OTLP `resourceLogs` envelope — web events are stored as OTLP log records — so
// each line is independently parseable by any OTLP JSON
// consumer.
// - `yaml`: The same per-event OTLP payloads as `ndjson`, as a multi-document YAML
// stream with documents separated by `---`.
// - `csv`: A header row plus one row per web event, flattened to the requested `columns`.
Format WebEventExportFormat `json:"format"`
// Limit The maximum number of web events to export. Defaults to, and is capped at, 5000.
// A larger value is rejected rather than silently clamped.
Limit *int64 `json:"limit,omitempty"`
// Ordering The ordering criteria for the exported web events. Events are written to the file
// in this order.
// Supported ordering key: `otel.log.time` (event timestamp, defaults to descending),
// optionally followed by `dash0.web.event.id` ascending, which is the tiebreak
// web-event retrieval appends to keep its cursor stable.
Ordering *OrderingCriteria `json:"ordering,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
// TimeRange A range of time between two time references.
TimeRange TimeReferenceRange `json:"timeRange"`
}
WebEventsDownloadRequest Request for `POST /api/web-events/download`. Takes a query (`serviceName`, `eventNames`, `filter`, `timeRange`, `dataset`, `ordering`) and returns the matching web events serialized as a downloadable file rather than as a JSON page.
The response is streamed, so the export is not paginated: a single request returns up to `limit` events, capped at 5000. Unlike the log and span exports there is no adaptive sampling to disable — web-event retrieval does not sample — so an exported file is the query's whole result set up to the cap.
There is no Dash0 CLI command for web events, so the cap is the only limit; a query matching more than 5000 events has to be narrowed to be exported in full.
type WebhookAgenticWorkflowTrigger ¶ added in v1.17.0
type WebhookAgenticWorkflowTrigger struct {
Kind WebhookAgenticWorkflowTriggerKind `json:"kind"`
Spec EmptyAgenticWorkflowTriggerSpec `json:"spec"`
// Task Optional per-trigger task/instruction prompt. When set, it is rendered with the same
// `{{variable.name}}` substitution as `spec.prompt.user` and used as the task turn for
// invocations from this trigger: the kickoff framing when the trigger spawns a new agent,
// or the event framing when it continues an existing one. When omitted, the
// automation-level `spec.prompt.user` (on spawn) or a connector-default event summary (on
// continue) is used instead. The automation-level standing prompt is injected only once,
// on spawn, and is not re-sent on continue.
Task *AgenticWorkflowTriggerTask `json:"task,omitempty"`
}
WebhookAgenticWorkflowTrigger defines model for WebhookAgenticWorkflowTrigger.
type WebhookAgenticWorkflowTriggerKind ¶ added in v1.17.0
type WebhookAgenticWorkflowTriggerKind string
WebhookAgenticWorkflowTriggerKind defines model for WebhookAgenticWorkflowTrigger.Kind.
const ( WebhookAgenticWorkflowTriggerKindDarkplanePullRequestEvaluation WebhookAgenticWorkflowTriggerKind = "darkplane.pull_request.evaluation" WebhookAgenticWorkflowTriggerKindFailedCheckNew WebhookAgenticWorkflowTriggerKind = "failed_check.new" WebhookAgenticWorkflowTriggerKindGithubCheckRun WebhookAgenticWorkflowTriggerKind = "github.check_run" WebhookAgenticWorkflowTriggerKindGithubCheckSuite WebhookAgenticWorkflowTriggerKind = "github.check_suite" WebhookAgenticWorkflowTriggerKindGithubDeployment WebhookAgenticWorkflowTriggerKind = "github.deployment" WebhookAgenticWorkflowTriggerKindGithubDeploymentStatus WebhookAgenticWorkflowTriggerKind = "github.deployment_status" WebhookAgenticWorkflowTriggerKindGithubIssueComment WebhookAgenticWorkflowTriggerKind = "github.issue_comment" WebhookAgenticWorkflowTriggerKindGithubPullRequest WebhookAgenticWorkflowTriggerKind = "github.pull_request" WebhookAgenticWorkflowTriggerKindGithubPullRequestReview WebhookAgenticWorkflowTriggerKind = "github.pull_request_review" WebhookAgenticWorkflowTriggerKindGithubPullRequestReviewComment WebhookAgenticWorkflowTriggerKind = "github.pull_request_review_comment" WebhookAgenticWorkflowTriggerKindGithubPush WebhookAgenticWorkflowTriggerKind = "github.push" WebhookAgenticWorkflowTriggerKindGithubRelease WebhookAgenticWorkflowTriggerKind = "github.release" WebhookAgenticWorkflowTriggerKindGithubWorkflowDispatch WebhookAgenticWorkflowTriggerKind = "github.workflow_dispatch" WebhookAgenticWorkflowTriggerKindGithubWorkflowJob WebhookAgenticWorkflowTriggerKind = "github.workflow_job" WebhookAgenticWorkflowTriggerKindGithubWorkflowRun WebhookAgenticWorkflowTriggerKind = "github.workflow_run" WebhookAgenticWorkflowTriggerKindGitlabMergeRequest WebhookAgenticWorkflowTriggerKind = "gitlab.merge_request" WebhookAgenticWorkflowTriggerKindGitlabNote WebhookAgenticWorkflowTriggerKind = "gitlab.note" WebhookAgenticWorkflowTriggerKindLinearComment WebhookAgenticWorkflowTriggerKind = "linear.comment" WebhookAgenticWorkflowTriggerKindLinearCommentReaction WebhookAgenticWorkflowTriggerKind = "linear.comment_reaction" WebhookAgenticWorkflowTriggerKindLinearInitiative WebhookAgenticWorkflowTriggerKind = "linear.initiative" WebhookAgenticWorkflowTriggerKindLinearInitiativeUpdate WebhookAgenticWorkflowTriggerKind = "linear.initiative_update" WebhookAgenticWorkflowTriggerKindLinearIssue WebhookAgenticWorkflowTriggerKind = "linear.issue" WebhookAgenticWorkflowTriggerKindLinearIssueAttachment WebhookAgenticWorkflowTriggerKind = "linear.issue_attachment" WebhookAgenticWorkflowTriggerKindLinearIssueComment WebhookAgenticWorkflowTriggerKind = "linear.issue_comment" WebhookAgenticWorkflowTriggerKindLinearProject WebhookAgenticWorkflowTriggerKind = "linear.project" WebhookAgenticWorkflowTriggerKindLinearProjectUpdate WebhookAgenticWorkflowTriggerKind = "linear.project_update" WebhookAgenticWorkflowTriggerKindManual WebhookAgenticWorkflowTriggerKind = "manual" WebhookAgenticWorkflowTriggerKindSchedule WebhookAgenticWorkflowTriggerKind = "schedule" WebhookAgenticWorkflowTriggerKindSlackBotFailedCheckNew WebhookAgenticWorkflowTriggerKind = "slack_bot.failed_check.new" WebhookAgenticWorkflowTriggerKindSlackBotMessage WebhookAgenticWorkflowTriggerKind = "slack_bot.message" WebhookAgenticWorkflowTriggerKindSlackBotReaction WebhookAgenticWorkflowTriggerKind = "slack_bot.reaction" WebhookAgenticWorkflowTriggerKindWebhook WebhookAgenticWorkflowTriggerKind = "webhook" )
Defines values for WebhookAgenticWorkflowTriggerKind.
func (WebhookAgenticWorkflowTriggerKind) Valid ¶ added in v1.29.0
func (e WebhookAgenticWorkflowTriggerKind) Valid() bool
Valid indicates whether the value is a known member of the WebhookAgenticWorkflowTriggerKind enum.
type WebhookConfig ¶ added in v1.9.0
type WebhookConfig struct {
AllowInsecure *bool `json:"allowInsecure,omitempty"`
FollowRedirects *bool `json:"followRedirects,omitempty"`
Headers *map[string]string `json:"headers,omitempty"`
Url string `json:"url"`
}
WebhookConfig defines model for WebhookConfig.
Source Files
¶
- annotations.go
- apiversion.go
- auth_token_provider.go
- auth_transport.go
- client.go
- client_auth_tokens.go
- client_aws_metric_scrape_configs.go
- client_check_rules.go
- client_custom_skills.go
- client_dashboards.go
- client_datasets.go
- client_failed_checks.go
- client_import.go
- client_logs.go
- client_members.go
- client_notification_channels.go
- client_oauth.go
- client_options.go
- client_otlp.go
- client_recording_rules.go
- client_sampling_rules.go
- client_signal_to_metrics.go
- client_slos.go
- client_spam_filters.go
- client_spans.go
- client_synthetic_checks.go
- client_teams.go
- client_time_series_aggregations.go
- client_views.go
- compat.go
- context.go
- dataset.go
- deeplinks.go
- error_response.go
- errors.go
- generated.go
- iterator.go
- labels.go
- list_options.go
- perses_dashboards.go
- perses_types.go
- pkce.go
- prometheus_alert_rules.go
- prometheus_types.go
- transport.go
- util.go
- version.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dash0test provides testing utilities for the Dash0 API client.
|
Package dash0test provides testing utilities for the Dash0 API client. |
|
Package profiles manages named Dash0 configuration profiles.
|
Package profiles manages named Dash0 configuration profiles. |
|
tools
|
|
|
postprocess
command
Command postprocess applies transformations to generated.go to fix conflicts introduced by oapi-codegen that cannot be resolved via configuration alone.
|
Command postprocess applies transformations to generated.go to fix conflicts introduced by oapi-codegen that cannot be resolved via configuration alone. |
|
preprocess
command
Command preprocess fetches the OpenAPI spec and removes every operation's operationId before oapi-codegen runs.
|
Command preprocess fetches the OpenAPI spec and removes every operation's operationId before oapi-codegen runs. |
