Documentation
¶
Index ¶
- func Bool(value bool) param.Field[bool]
- func DefaultClientOptions() []option.RequestOption
- func F[T any](value T) param.Field[T]
- func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader]
- func Float(value float64) param.Field[float64]
- func Int(value int64) param.Field[int64]
- func Null[T any]() param.Field[T]
- func Raw[T any](value any) param.Field[T]
- func String(value string) param.Field[string]
- type BackgroundTaskGetResponse
- type BackgroundTaskService
- type Client
- func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, ...) error
- func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Put(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- type CommitGetResponse
- type CommitGetResponseCommit
- type CommitGetResponseLinks
- type CommitGetResponseStatus
- type CommitService
- type CommitTestResultListParams
- type CommitTestResultListParamsStatus
- type CommitTestResultListParamsType
- type CommitTestResultListResponse
- type CommitTestResultListResponseItem
- type CommitTestResultListResponseItemsExpectedValue
- type CommitTestResultListResponseItemsGoal
- type CommitTestResultListResponseItemsGoalSubtype
- type CommitTestResultListResponseItemsGoalThreshold
- type CommitTestResultListResponseItemsGoalThresholdsInsightName
- type CommitTestResultListResponseItemsGoalThresholdsInsightParameter
- type CommitTestResultListResponseItemsGoalThresholdsOperator
- type CommitTestResultListResponseItemsGoalThresholdsThresholdMode
- type CommitTestResultListResponseItemsGoalThresholdsValueArray
- type CommitTestResultListResponseItemsGoalThresholdsValueUnion
- type CommitTestResultListResponseItemsGoalType
- type CommitTestResultListResponseItemsRowsBody
- type CommitTestResultListResponseItemsRowsBodyColumnFilter
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion
- type CommitTestResultListResponseItemsRowsBodyColumnFiltersUnion
- type CommitTestResultListResponseItemsStatus
- type CommitTestResultService
- type Error
- type GovernanceFrameworkDocumentGetResponse
- type GovernanceFrameworkDocumentGetResponseSection
- type GovernanceFrameworkDocumentGetResponseSectionsRule
- type GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType
- type GovernanceFrameworkDocumentGetResponseSectionsRulesScope
- type GovernanceFrameworkDocumentGetResponseSectionsRulesType
- type GovernanceFrameworkDocumentGetResponseSectionsSubsection
- type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule
- type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType
- type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope
- type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType
- type GovernanceFrameworkDocumentListParams
- type GovernanceFrameworkDocumentListResponse
- type GovernanceFrameworkDocumentListResponseItem
- type GovernanceFrameworkDocumentListResponseItemsSection
- type GovernanceFrameworkDocumentListResponseItemsSectionsRule
- type GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType
- type GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope
- type GovernanceFrameworkDocumentListResponseItemsSectionsRulesType
- type GovernanceFrameworkDocumentListResponseItemsSectionsSubsection
- type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule
- type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType
- type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope
- type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType
- type GovernanceFrameworkDocumentService
- func (r *GovernanceFrameworkDocumentService) Get(ctx context.Context, frameworkID string, documentID string, ...) (res *GovernanceFrameworkDocumentGetResponse, err error)
- func (r *GovernanceFrameworkDocumentService) List(ctx context.Context, frameworkID string, ...) (res *GovernanceFrameworkDocumentListResponse, err error)
- type GovernanceFrameworkExportParams
- type GovernanceFrameworkExportResponse
- type GovernanceFrameworkGetResponse
- type GovernanceFrameworkGetResponseAvatar
- type GovernanceFrameworkGetResponseAvatarType
- type GovernanceFrameworkGetResponseProjectSelector
- type GovernanceFrameworkGetResponseProjectSelectorMatch
- type GovernanceFrameworkGetResponseProjectSelectorMatchProperty
- type GovernanceFrameworkGetResponseRuleStats
- type GovernanceFrameworkGetResponseRuleStatsProjectCompletion
- type GovernanceFrameworkGetResponseRuleStatsRuleResults
- type GovernanceFrameworkListParams
- type GovernanceFrameworkListParamsCompletionOperator
- type GovernanceFrameworkListParamsSortColumn
- type GovernanceFrameworkListProjectRuleStatsParams
- type GovernanceFrameworkListProjectRuleStatsParamsSortColumn
- type GovernanceFrameworkListProjectRuleStatsResponse
- type GovernanceFrameworkListProjectRuleStatsResponseItem
- type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType
- type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence
- type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform
- type GovernanceFrameworkListProjectsParams
- type GovernanceFrameworkListProjectsResponse
- type GovernanceFrameworkListProjectsResponseItem
- type GovernanceFrameworkListProjectsResponseItemsGitRepo
- type GovernanceFrameworkListProjectsResponseItemsLinks
- type GovernanceFrameworkListProjectsResponseItemsSource
- type GovernanceFrameworkListProjectsResponseItemsTaskType
- type GovernanceFrameworkListResponse
- type GovernanceFrameworkListResponseItem
- type GovernanceFrameworkListResponseItemsAvatar
- type GovernanceFrameworkListResponseItemsAvatarType
- type GovernanceFrameworkListResponseItemsProjectSelector
- type GovernanceFrameworkListResponseItemsProjectSelectorMatch
- type GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty
- type GovernanceFrameworkListResponseItemsRuleStats
- type GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion
- type GovernanceFrameworkListResponseItemsRuleStatsRuleResults
- type GovernanceFrameworkListRulesParams
- type GovernanceFrameworkListRulesResponse
- type GovernanceFrameworkListRulesResponseItem
- type GovernanceFrameworkListRulesResponseItemsEvidenceType
- type GovernanceFrameworkListRulesResponseItemsFramework
- type GovernanceFrameworkListRulesResponseItemsFrameworksAvatar
- type GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType
- type GovernanceFrameworkListRulesResponseItemsResult
- type GovernanceFrameworkListRulesResponseItemsResultsBlockedBy
- type GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus
- type GovernanceFrameworkListRulesResponseItemsResultsBlocking
- type GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus
- type GovernanceFrameworkListRulesResponseItemsResultsStatus
- type GovernanceFrameworkListRulesResponseItemsResultsSummary
- type GovernanceFrameworkListRulesResponseItemsScope
- type GovernanceFrameworkListRulesResponseItemsTag
- type GovernanceFrameworkListRulesResponseItemsType
- type GovernanceFrameworkNewParams
- type GovernanceFrameworkNewParamsProjectSelector
- type GovernanceFrameworkNewParamsProjectSelectorMatch
- type GovernanceFrameworkNewParamsProjectSelectorMatchProperty
- type GovernanceFrameworkNewResponse
- type GovernanceFrameworkNewResponseAvatar
- type GovernanceFrameworkNewResponseAvatarType
- type GovernanceFrameworkNewResponseProjectSelector
- type GovernanceFrameworkNewResponseProjectSelectorMatch
- type GovernanceFrameworkNewResponseProjectSelectorMatchProperty
- type GovernanceFrameworkNewResponseRuleStats
- type GovernanceFrameworkNewResponseRuleStatsProjectCompletion
- type GovernanceFrameworkNewResponseRuleStatsRuleResults
- type GovernanceFrameworkSectionListRulesParams
- type GovernanceFrameworkSectionListRulesParamsStatus
- type GovernanceFrameworkSectionListRulesResponse
- type GovernanceFrameworkSectionListRulesResponseItem
- type GovernanceFrameworkSectionListRulesResponseItemsEvidenceType
- type GovernanceFrameworkSectionListRulesResponseItemsFramework
- type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar
- type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType
- type GovernanceFrameworkSectionListRulesResponseItemsResult
- type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy
- type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus
- type GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking
- type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus
- type GovernanceFrameworkSectionListRulesResponseItemsResultsStatus
- type GovernanceFrameworkSectionListRulesResponseItemsResultsSummary
- type GovernanceFrameworkSectionListRulesResponseItemsScope
- type GovernanceFrameworkSectionListRulesResponseItemsTag
- type GovernanceFrameworkSectionListRulesResponseItemsType
- type GovernanceFrameworkSectionService
- type GovernanceFrameworkService
- func (r *GovernanceFrameworkService) Export(ctx context.Context, frameworkID string, body GovernanceFrameworkExportParams, ...) (res *GovernanceFrameworkExportResponse, err error)
- func (r *GovernanceFrameworkService) Get(ctx context.Context, frameworkID string, opts ...option.RequestOption) (res *GovernanceFrameworkGetResponse, err error)
- func (r *GovernanceFrameworkService) List(ctx context.Context, workspaceID string, query GovernanceFrameworkListParams, ...) (res *GovernanceFrameworkListResponse, err error)
- func (r *GovernanceFrameworkService) ListProjectRuleStats(ctx context.Context, frameworkID string, ...) (res *GovernanceFrameworkListProjectRuleStatsResponse, err error)
- func (r *GovernanceFrameworkService) ListProjects(ctx context.Context, frameworkID string, ...) (res *GovernanceFrameworkListProjectsResponse, err error)
- func (r *GovernanceFrameworkService) ListRules(ctx context.Context, frameworkID string, ...) (res *GovernanceFrameworkListRulesResponse, err error)
- func (r *GovernanceFrameworkService) New(ctx context.Context, workspaceID string, body GovernanceFrameworkNewParams, ...) (res *GovernanceFrameworkNewResponse, err error)
- func (r *GovernanceFrameworkService) Update(ctx context.Context, frameworkID string, body GovernanceFrameworkUpdateParams, ...) (res *GovernanceFrameworkUpdateResponse, err error)
- type GovernanceFrameworkSubsectionListRulesParams
- type GovernanceFrameworkSubsectionListRulesParamsStatus
- type GovernanceFrameworkSubsectionListRulesResponse
- type GovernanceFrameworkSubsectionListRulesResponseItem
- type GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType
- type GovernanceFrameworkSubsectionListRulesResponseItemsFramework
- type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar
- type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType
- type GovernanceFrameworkSubsectionListRulesResponseItemsResult
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus
- type GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary
- type GovernanceFrameworkSubsectionListRulesResponseItemsScope
- type GovernanceFrameworkSubsectionListRulesResponseItemsTag
- type GovernanceFrameworkSubsectionListRulesResponseItemsType
- type GovernanceFrameworkSubsectionService
- type GovernanceFrameworkUpdateParams
- type GovernanceFrameworkUpdateParamsAvatar
- type GovernanceFrameworkUpdateParamsAvatarType
- type GovernanceFrameworkUpdateParamsProjectSelector
- type GovernanceFrameworkUpdateParamsProjectSelectorMatch
- type GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty
- type GovernanceFrameworkUpdateResponse
- type GovernanceFrameworkUpdateResponseAvatar
- type GovernanceFrameworkUpdateResponseAvatarType
- type GovernanceFrameworkUpdateResponseProjectSelector
- type GovernanceFrameworkUpdateResponseProjectSelectorMatch
- type GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty
- type GovernanceFrameworkUpdateResponseRuleStats
- type GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion
- type GovernanceFrameworkUpdateResponseRuleStatsRuleResults
- type GovernanceRuleGetResponse
- type GovernanceRuleGetResponseEvidenceType
- type GovernanceRuleGetResponseFramework
- type GovernanceRuleGetResponseFrameworksAvatar
- type GovernanceRuleGetResponseFrameworksAvatarType
- type GovernanceRuleGetResponseResult
- type GovernanceRuleGetResponseResultsBlockedBy
- type GovernanceRuleGetResponseResultsBlockedByStatus
- type GovernanceRuleGetResponseResultsBlocking
- type GovernanceRuleGetResponseResultsBlockingStatus
- type GovernanceRuleGetResponseResultsStatus
- type GovernanceRuleGetResponseResultsSummary
- type GovernanceRuleGetResponseScope
- type GovernanceRuleGetResponseTag
- type GovernanceRuleGetResponseType
- type GovernanceRuleListParams
- type GovernanceRuleListParamsGroup
- type GovernanceRuleListParamsScope
- type GovernanceRuleListParamsSortBy
- type GovernanceRuleListParamsStatus
- type GovernanceRuleListParamsType
- type GovernanceRuleListResponse
- type GovernanceRuleListResponseItem
- type GovernanceRuleListResponseItemsEvidenceType
- type GovernanceRuleListResponseItemsFramework
- type GovernanceRuleListResponseItemsFrameworksAvatar
- type GovernanceRuleListResponseItemsFrameworksAvatarType
- type GovernanceRuleListResponseItemsResult
- type GovernanceRuleListResponseItemsResultsBlockedBy
- type GovernanceRuleListResponseItemsResultsBlockedByStatus
- type GovernanceRuleListResponseItemsResultsBlocking
- type GovernanceRuleListResponseItemsResultsBlockingStatus
- type GovernanceRuleListResponseItemsResultsStatus
- type GovernanceRuleListResponseItemsResultsSummary
- type GovernanceRuleListResponseItemsScope
- type GovernanceRuleListResponseItemsTag
- type GovernanceRuleListResponseItemsType
- type GovernanceRuleNewParams
- type GovernanceRuleNewParamsEvidenceType
- type GovernanceRuleNewParamsScope
- type GovernanceRuleNewParamsType
- type GovernanceRuleNewResponse
- type GovernanceRuleNewResponseEvidenceType
- type GovernanceRuleNewResponseFramework
- type GovernanceRuleNewResponseFrameworksAvatar
- type GovernanceRuleNewResponseFrameworksAvatarType
- type GovernanceRuleNewResponseResult
- type GovernanceRuleNewResponseResultsBlockedBy
- type GovernanceRuleNewResponseResultsBlockedByStatus
- type GovernanceRuleNewResponseResultsBlocking
- type GovernanceRuleNewResponseResultsBlockingStatus
- type GovernanceRuleNewResponseResultsStatus
- type GovernanceRuleNewResponseResultsSummary
- type GovernanceRuleNewResponseScope
- type GovernanceRuleNewResponseTag
- type GovernanceRuleNewResponseType
- type GovernanceRuleResultGetResponse
- type GovernanceRuleResultGetResponseBlockedBy
- type GovernanceRuleResultGetResponseBlockedByStatus
- type GovernanceRuleResultGetResponseBlocking
- type GovernanceRuleResultGetResponseBlockingStatus
- type GovernanceRuleResultGetResponseStatus
- type GovernanceRuleResultListEvidenceParams
- type GovernanceRuleResultListEvidenceResponse
- type GovernanceRuleResultListEvidenceResponseItem
- type GovernanceRuleResultListParams
- type GovernanceRuleResultListParamsScope
- type GovernanceRuleResultListParamsStatus
- type GovernanceRuleResultListParamsType
- type GovernanceRuleResultListResponse
- type GovernanceRuleResultListResponseItem
- type GovernanceRuleResultListResponseItemsBlockedBy
- type GovernanceRuleResultListResponseItemsBlockedByStatus
- type GovernanceRuleResultListResponseItemsBlocking
- type GovernanceRuleResultListResponseItemsBlockingStatus
- type GovernanceRuleResultListResponseItemsStatus
- type GovernanceRuleResultNewEvidenceParams
- type GovernanceRuleResultNewEvidenceResponse
- type GovernanceRuleResultService
- func (r *GovernanceRuleResultService) Get(ctx context.Context, ruleResultID string, opts ...option.RequestOption) (res *GovernanceRuleResultGetResponse, err error)
- func (r *GovernanceRuleResultService) List(ctx context.Context, workspaceID string, query GovernanceRuleResultListParams, ...) (res *GovernanceRuleResultListResponse, err error)
- func (r *GovernanceRuleResultService) ListEvidence(ctx context.Context, ruleResultID string, ...) (res *GovernanceRuleResultListEvidenceResponse, err error)
- func (r *GovernanceRuleResultService) NewEvidence(ctx context.Context, ruleResultID string, ...) (res *GovernanceRuleResultNewEvidenceResponse, err error)
- func (r *GovernanceRuleResultService) Update(ctx context.Context, ruleResultID string, ...) (res *GovernanceRuleResultUpdateResponse, err error)
- type GovernanceRuleResultUpdateParams
- type GovernanceRuleResultUpdateParamsBlockedBy
- type GovernanceRuleResultUpdateParamsBlockedByStatus
- type GovernanceRuleResultUpdateParamsBlocking
- type GovernanceRuleResultUpdateParamsBlockingStatus
- type GovernanceRuleResultUpdateResponse
- type GovernanceRuleResultUpdateResponseBlockedBy
- type GovernanceRuleResultUpdateResponseBlockedByStatus
- type GovernanceRuleResultUpdateResponseBlocking
- type GovernanceRuleResultUpdateResponseBlockingStatus
- type GovernanceRuleResultUpdateResponseStatus
- type GovernanceRuleService
- func (r *GovernanceRuleService) Delete(ctx context.Context, ruleID string, opts ...option.RequestOption) (err error)
- func (r *GovernanceRuleService) Get(ctx context.Context, ruleID string, opts ...option.RequestOption) (res *GovernanceRuleGetResponse, err error)
- func (r *GovernanceRuleService) List(ctx context.Context, workspaceID string, query GovernanceRuleListParams, ...) (res *GovernanceRuleListResponse, err error)
- func (r *GovernanceRuleService) New(ctx context.Context, workspaceID string, body GovernanceRuleNewParams, ...) (res *GovernanceRuleNewResponse, err error)
- func (r *GovernanceRuleService) Update(ctx context.Context, ruleID string, body GovernanceRuleUpdateParams, ...) (res *GovernanceRuleUpdateResponse, err error)
- type GovernanceRuleStatGetParams
- type GovernanceRuleStatGetResponse
- type GovernanceRuleStatGetResponseRuleResults
- type GovernanceRuleStatGetResponseRuleResultsByRuleScope
- type GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject
- type GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace
- type GovernanceRuleStatGetResponseRuleResultsByRuleType
- type GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence
- type GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform
- type GovernanceRuleStatGetResponseRules
- type GovernanceRuleStatGetResponseRulesByScope
- type GovernanceRuleStatGetResponseRulesByType
- type GovernanceRuleStatService
- type GovernanceRuleTagListParams
- type GovernanceRuleTagListResponse
- type GovernanceRuleTagListResponseItem
- type GovernanceRuleTagService
- type GovernanceRuleUpdateParams
- type GovernanceRuleUpdateResponse
- type GovernanceRuleUpdateResponseEvidenceType
- type GovernanceRuleUpdateResponseFramework
- type GovernanceRuleUpdateResponseFrameworksAvatar
- type GovernanceRuleUpdateResponseFrameworksAvatarType
- type GovernanceRuleUpdateResponseResult
- type GovernanceRuleUpdateResponseResultsBlockedBy
- type GovernanceRuleUpdateResponseResultsBlockedByStatus
- type GovernanceRuleUpdateResponseResultsBlocking
- type GovernanceRuleUpdateResponseResultsBlockingStatus
- type GovernanceRuleUpdateResponseResultsStatus
- type GovernanceRuleUpdateResponseResultsSummary
- type GovernanceRuleUpdateResponseScope
- type GovernanceRuleUpdateResponseTag
- type GovernanceRuleUpdateResponseType
- type GovernanceService
- type InferencePipelineDataService
- type InferencePipelineDataStreamParams
- type InferencePipelineDataStreamParamsConfig
- type InferencePipelineDataStreamParamsConfigLlmData
- type InferencePipelineDataStreamParamsConfigLlmDataPrompt
- type InferencePipelineDataStreamParamsConfigTabularClassificationData
- type InferencePipelineDataStreamParamsConfigTabularRegressionData
- type InferencePipelineDataStreamParamsConfigTextClassificationData
- type InferencePipelineDataStreamParamsConfigUnion
- type InferencePipelineDataStreamResponse
- type InferencePipelineDataStreamResponseSuccess
- type InferencePipelineGetParams
- type InferencePipelineGetParamsExpand
- type InferencePipelineGetResponse
- type InferencePipelineGetResponseDataBackend
- type InferencePipelineGetResponseDataBackendBackendType
- type InferencePipelineGetResponseDataBackendBigQueryDataBackend
- type InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType
- type InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig
- type InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType
- type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend
- type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType
- type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig
- type InferencePipelineGetResponseDataBackendDefaultDataBackend
- type InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType
- type InferencePipelineGetResponseDataBackendPartitionType
- type InferencePipelineGetResponseDataBackendPostgresDataBackend
- type InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType
- type InferencePipelineGetResponseDataBackendPostgresDataBackendConfig
- type InferencePipelineGetResponseDataBackendRedshiftDataBackend
- type InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType
- type InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig
- type InferencePipelineGetResponseDataBackendSnowflakeDataBackend
- type InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType
- type InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig
- type InferencePipelineGetResponseDataBackendUnion
- type InferencePipelineGetResponseLinks
- type InferencePipelineGetResponseProject
- type InferencePipelineGetResponseProjectGitRepo
- type InferencePipelineGetResponseProjectLinks
- type InferencePipelineGetResponseProjectSource
- type InferencePipelineGetResponseProjectTaskType
- type InferencePipelineGetResponseStatus
- type InferencePipelineGetResponseWorkspace
- type InferencePipelineGetResponseWorkspaceMonthlyUsage
- type InferencePipelineGetResponseWorkspaceStatus
- type InferencePipelineGetSessionsParams
- type InferencePipelineGetSessionsParamsColumnFilter
- type InferencePipelineGetSessionsParamsColumnFilterUnion
- type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter
- type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator
- type InferencePipelineGetSessionsParamsColumnFiltersOperator
- type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter
- type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator
- type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterValueUnion
- type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter
- type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator
- type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterValueUnion
- type InferencePipelineGetSessionsResponse
- type InferencePipelineGetSessionsResponseItem
- type InferencePipelineGetUsersParams
- type InferencePipelineGetUsersParamsColumnFilter
- type InferencePipelineGetUsersParamsColumnFilterUnion
- type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter
- type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator
- type InferencePipelineGetUsersParamsColumnFiltersOperator
- type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter
- type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator
- type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterValueUnion
- type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter
- type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator
- type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterValueUnion
- type InferencePipelineGetUsersResponse
- type InferencePipelineGetUsersResponseItem
- type InferencePipelineRowGetResponse
- type InferencePipelineRowListParams
- type InferencePipelineRowListParamsColumnFilter
- type InferencePipelineRowListParamsColumnFilterUnion
- type InferencePipelineRowListParamsColumnFiltersNumericColumnFilter
- type InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator
- type InferencePipelineRowListParamsColumnFiltersOperator
- type InferencePipelineRowListParamsColumnFiltersSetColumnFilter
- type InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator
- type InferencePipelineRowListParamsColumnFiltersSetColumnFilterValueUnion
- type InferencePipelineRowListParamsColumnFiltersStringColumnFilter
- type InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator
- type InferencePipelineRowListParamsColumnFiltersStringColumnFilterValueUnion
- type InferencePipelineRowListResponse
- type InferencePipelineRowListResponseItem
- type InferencePipelineRowService
- func (r *InferencePipelineRowService) Delete(ctx context.Context, inferencePipelineID string, inferenceID string, ...) (err error)
- func (r *InferencePipelineRowService) Get(ctx context.Context, inferencePipelineID string, inferenceID string, ...) (res *InferencePipelineRowGetResponse, err error)
- func (r *InferencePipelineRowService) List(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineRowListResponse, err error)
- func (r *InferencePipelineRowService) Update(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineRowUpdateResponse, err error)
- type InferencePipelineRowUpdateParams
- type InferencePipelineRowUpdateParamsConfig
- type InferencePipelineRowUpdateResponse
- type InferencePipelineRowUpdateResponseSuccess
- type InferencePipelineService
- func (r *InferencePipelineService) Delete(ctx context.Context, inferencePipelineID string, opts ...option.RequestOption) (err error)
- func (r *InferencePipelineService) Get(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineGetResponse, err error)
- func (r *InferencePipelineService) GetSessions(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineGetSessionsResponse, err error)
- func (r *InferencePipelineService) GetUsers(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineGetUsersResponse, err error)
- func (r *InferencePipelineService) Update(ctx context.Context, inferencePipelineID string, ...) (res *InferencePipelineUpdateResponse, err error)
- type InferencePipelineTestResultListParams
- type InferencePipelineTestResultListParamsStatus
- type InferencePipelineTestResultListParamsType
- type InferencePipelineTestResultListResponse
- type InferencePipelineTestResultListResponseItem
- type InferencePipelineTestResultListResponseItemsExpectedValue
- type InferencePipelineTestResultListResponseItemsGoal
- type InferencePipelineTestResultListResponseItemsGoalSubtype
- type InferencePipelineTestResultListResponseItemsGoalThreshold
- type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName
- type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter
- type InferencePipelineTestResultListResponseItemsGoalThresholdsOperator
- type InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode
- type InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray
- type InferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion
- type InferencePipelineTestResultListResponseItemsGoalType
- type InferencePipelineTestResultListResponseItemsRowsBody
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion
- type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersUnion
- type InferencePipelineTestResultListResponseItemsStatus
- type InferencePipelineTestResultService
- type InferencePipelineUpdateParams
- type InferencePipelineUpdateResponse
- type InferencePipelineUpdateResponseDataBackend
- type InferencePipelineUpdateResponseDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendBigQueryDataBackend
- type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig
- type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType
- type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend
- type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig
- type InferencePipelineUpdateResponseDataBackendDefaultDataBackend
- type InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendPartitionType
- type InferencePipelineUpdateResponseDataBackendPostgresDataBackend
- type InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig
- type InferencePipelineUpdateResponseDataBackendRedshiftDataBackend
- type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig
- type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend
- type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType
- type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig
- type InferencePipelineUpdateResponseDataBackendUnion
- type InferencePipelineUpdateResponseLinks
- type InferencePipelineUpdateResponseProject
- type InferencePipelineUpdateResponseProjectGitRepo
- type InferencePipelineUpdateResponseProjectLinks
- type InferencePipelineUpdateResponseProjectSource
- type InferencePipelineUpdateResponseProjectTaskType
- type InferencePipelineUpdateResponseStatus
- type InferencePipelineUpdateResponseWorkspace
- type InferencePipelineUpdateResponseWorkspaceMonthlyUsage
- type InferencePipelineUpdateResponseWorkspaceStatus
- type ProjectCommitListParams
- type ProjectCommitListResponse
- type ProjectCommitListResponseItem
- type ProjectCommitListResponseItemsCommit
- type ProjectCommitListResponseItemsLinks
- type ProjectCommitListResponseItemsStatus
- type ProjectCommitNewParams
- type ProjectCommitNewParamsCommit
- type ProjectCommitNewResponse
- type ProjectCommitNewResponseCommit
- type ProjectCommitNewResponseLinks
- type ProjectCommitNewResponseStatus
- type ProjectCommitService
- func (r *ProjectCommitService) List(ctx context.Context, projectID string, query ProjectCommitListParams, ...) (res *ProjectCommitListResponse, err error)
- func (r *ProjectCommitService) New(ctx context.Context, projectID string, body ProjectCommitNewParams, ...) (res *ProjectCommitNewResponse, err error)
- type ProjectInferencePipelineListParams
- type ProjectInferencePipelineListResponse
- type ProjectInferencePipelineListResponseItem
- type ProjectInferencePipelineListResponseItemsDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig
- type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType
- type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig
- type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendPartitionType
- type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig
- type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig
- type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend
- type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendType
- type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig
- type ProjectInferencePipelineListResponseItemsDataBackendUnion
- type ProjectInferencePipelineListResponseItemsLinks
- type ProjectInferencePipelineListResponseItemsProject
- type ProjectInferencePipelineListResponseItemsProjectGitRepo
- type ProjectInferencePipelineListResponseItemsProjectLinks
- type ProjectInferencePipelineListResponseItemsProjectSource
- type ProjectInferencePipelineListResponseItemsProjectTaskType
- type ProjectInferencePipelineListResponseItemsStatus
- type ProjectInferencePipelineListResponseItemsWorkspace
- type ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage
- type ProjectInferencePipelineListResponseItemsWorkspaceStatus
- type ProjectInferencePipelineNewParams
- type ProjectInferencePipelineNewParamsDataBackend
- type ProjectInferencePipelineNewParamsDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend
- type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig
- type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType
- type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend
- type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig
- type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend
- type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendPartitionType
- type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend
- type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig
- type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend
- type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig
- type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend
- type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType
- type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig
- type ProjectInferencePipelineNewParamsDataBackendUnion
- type ProjectInferencePipelineNewParamsProject
- type ProjectInferencePipelineNewParamsProjectGitRepo
- type ProjectInferencePipelineNewParamsProjectLinks
- type ProjectInferencePipelineNewParamsProjectSource
- type ProjectInferencePipelineNewParamsProjectTaskType
- type ProjectInferencePipelineNewParamsWorkspace
- type ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage
- type ProjectInferencePipelineNewParamsWorkspaceStatus
- type ProjectInferencePipelineNewResponse
- type ProjectInferencePipelineNewResponseDataBackend
- type ProjectInferencePipelineNewResponseDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend
- type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig
- type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType
- type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend
- type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig
- type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend
- type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendPartitionType
- type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend
- type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig
- type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend
- type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig
- type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend
- type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendType
- type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig
- type ProjectInferencePipelineNewResponseDataBackendUnion
- type ProjectInferencePipelineNewResponseLinks
- type ProjectInferencePipelineNewResponseProject
- type ProjectInferencePipelineNewResponseProjectGitRepo
- type ProjectInferencePipelineNewResponseProjectLinks
- type ProjectInferencePipelineNewResponseProjectSource
- type ProjectInferencePipelineNewResponseProjectTaskType
- type ProjectInferencePipelineNewResponseStatus
- type ProjectInferencePipelineNewResponseWorkspace
- type ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage
- type ProjectInferencePipelineNewResponseWorkspaceStatus
- type ProjectInferencePipelineService
- func (r *ProjectInferencePipelineService) List(ctx context.Context, projectID string, ...) (res *ProjectInferencePipelineListResponse, err error)
- func (r *ProjectInferencePipelineService) New(ctx context.Context, projectID string, body ProjectInferencePipelineNewParams, ...) (res *ProjectInferencePipelineNewResponse, err error)
- type ProjectListParams
- type ProjectListParamsTaskType
- type ProjectListResponse
- type ProjectListResponseItem
- type ProjectListResponseItemsGitRepo
- type ProjectListResponseItemsLinks
- type ProjectListResponseItemsSource
- type ProjectListResponseItemsTaskType
- type ProjectNewParams
- type ProjectNewParamsTaskType
- type ProjectNewResponse
- type ProjectNewResponseGitRepo
- type ProjectNewResponseLinks
- type ProjectNewResponseSource
- type ProjectNewResponseTaskType
- type ProjectService
- func (r *ProjectService) Delete(ctx context.Context, projectID string, opts ...option.RequestOption) (err error)
- func (r *ProjectService) List(ctx context.Context, query ProjectListParams, opts ...option.RequestOption) (res *ProjectListResponse, err error)
- func (r *ProjectService) New(ctx context.Context, body ProjectNewParams, opts ...option.RequestOption) (res *ProjectNewResponse, err error)
- func (r *ProjectService) Update(ctx context.Context, projectID string, body ProjectUpdateParams, ...) (res *ProjectUpdateResponse, err error)
- type ProjectTestListParams
- type ProjectTestListParamsType
- type ProjectTestListResponse
- type ProjectTestListResponseItem
- type ProjectTestListResponseItemsSubtype
- type ProjectTestListResponseItemsThreshold
- type ProjectTestListResponseItemsThresholdsInsightName
- type ProjectTestListResponseItemsThresholdsInsightParameter
- type ProjectTestListResponseItemsThresholdsOperator
- type ProjectTestListResponseItemsThresholdsThresholdMode
- type ProjectTestListResponseItemsThresholdsValueArray
- type ProjectTestListResponseItemsThresholdsValueUnion
- type ProjectTestListResponseItemsType
- type ProjectTestNewParams
- type ProjectTestNewParamsSubtype
- type ProjectTestNewParamsThreshold
- type ProjectTestNewParamsThresholdsInsightName
- type ProjectTestNewParamsThresholdsInsightParameter
- type ProjectTestNewParamsThresholdsOperator
- type ProjectTestNewParamsThresholdsThresholdMode
- type ProjectTestNewParamsThresholdsValueArray
- type ProjectTestNewParamsThresholdsValueUnion
- type ProjectTestNewParamsType
- type ProjectTestNewResponse
- type ProjectTestNewResponseSubtype
- type ProjectTestNewResponseThreshold
- type ProjectTestNewResponseThresholdsInsightName
- type ProjectTestNewResponseThresholdsInsightParameter
- type ProjectTestNewResponseThresholdsOperator
- type ProjectTestNewResponseThresholdsThresholdMode
- type ProjectTestNewResponseThresholdsValueArray
- type ProjectTestNewResponseThresholdsValueUnion
- type ProjectTestNewResponseType
- type ProjectTestService
- func (r *ProjectTestService) List(ctx context.Context, projectID string, query ProjectTestListParams, ...) (res *ProjectTestListResponse, err error)
- func (r *ProjectTestService) New(ctx context.Context, projectID string, body ProjectTestNewParams, ...) (res *ProjectTestNewResponse, err error)
- func (r *ProjectTestService) Update(ctx context.Context, projectID string, body ProjectTestUpdateParams, ...) (res *ProjectTestUpdateResponse, err error)
- type ProjectTestUpdateParams
- type ProjectTestUpdateParamsPayload
- type ProjectTestUpdateParamsPayloadsSuggested
- type ProjectTestUpdateParamsPayloadsThreshold
- type ProjectTestUpdateParamsPayloadsThresholdsInsightName
- type ProjectTestUpdateParamsPayloadsThresholdsInsightParameter
- type ProjectTestUpdateParamsPayloadsThresholdsOperator
- type ProjectTestUpdateParamsPayloadsThresholdsThresholdMode
- type ProjectTestUpdateParamsPayloadsThresholdsValueArray
- type ProjectTestUpdateParamsPayloadsThresholdsValueUnion
- type ProjectTestUpdateResponse
- type ProjectUpdateParams
- type ProjectUpdateResponse
- type ProjectUpdateResponseGitRepo
- type ProjectUpdateResponseLinks
- type ProjectUpdateResponseSource
- type ProjectUpdateResponseTaskType
- type StoragePresignedURLGetParams
- type StoragePresignedURLGetResponse
- type StoragePresignedURLNewParams
- type StoragePresignedURLNewResponse
- type StoragePresignedURLService
- func (r *StoragePresignedURLService) Get(ctx context.Context, query StoragePresignedURLGetParams, ...) (res *StoragePresignedURLGetResponse, err error)
- func (r *StoragePresignedURLService) New(ctx context.Context, body StoragePresignedURLNewParams, ...) (res *StoragePresignedURLNewResponse, err error)
- type StorageService
- type TestEvaluateParams
- type TestEvaluateResponse
- type TestEvaluateResponseTask
- type TestListResultsParams
- type TestListResultsResponse
- type TestListResultsResponseItem
- type TestListResultsResponseItemsExpectedValue
- type TestListResultsResponseItemsGoal
- type TestListResultsResponseItemsGoalSubtype
- type TestListResultsResponseItemsGoalThreshold
- type TestListResultsResponseItemsGoalThresholdsInsightName
- type TestListResultsResponseItemsGoalThresholdsInsightParameter
- type TestListResultsResponseItemsGoalThresholdsOperator
- type TestListResultsResponseItemsGoalThresholdsThresholdMode
- type TestListResultsResponseItemsGoalThresholdsValueArray
- type TestListResultsResponseItemsGoalThresholdsValueUnion
- type TestListResultsResponseItemsGoalType
- type TestListResultsResponseItemsRowsBody
- type TestListResultsResponseItemsRowsBodyColumnFilter
- type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter
- type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator
- type TestListResultsResponseItemsRowsBodyColumnFiltersOperator
- type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter
- type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator
- type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion
- type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter
- type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator
- type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion
- type TestListResultsResponseItemsRowsBodyColumnFiltersUnion
- type TestListResultsResponseItemsStatus
- type TestListResultsResponseLastUnskippedResult
- type TestListResultsResponseLastUnskippedResultExpectedValue
- type TestListResultsResponseLastUnskippedResultGoal
- type TestListResultsResponseLastUnskippedResultGoalSubtype
- type TestListResultsResponseLastUnskippedResultGoalThreshold
- type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName
- type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter
- type TestListResultsResponseLastUnskippedResultGoalThresholdsOperator
- type TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode
- type TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray
- type TestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion
- type TestListResultsResponseLastUnskippedResultGoalType
- type TestListResultsResponseLastUnskippedResultRowsBody
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion
- type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersUnion
- type TestListResultsResponseLastUnskippedResultStatus
- type TestService
- type WorkspaceAPIKeyGetResponse
- type WorkspaceAPIKeyGetResponseStatus
- type WorkspaceAPIKeyListResponse
- type WorkspaceAPIKeyListResponseStatus
- type WorkspaceAPIKeyNewParams
- type WorkspaceAPIKeyNewResponse
- type WorkspaceAPIKeyNewResponseStatus
- type WorkspaceAPIKeyRotateParams
- type WorkspaceAPIKeyRotateResponse
- type WorkspaceAPIKeyRotateResponseStatus
- type WorkspaceAPIKeyService
- func (r *WorkspaceAPIKeyService) Delete(ctx context.Context, workspaceID string, apiKeyID string, ...) (err error)
- func (r *WorkspaceAPIKeyService) Get(ctx context.Context, workspaceID string, apiKeyID string, ...) (res *WorkspaceAPIKeyGetResponse, err error)
- func (r *WorkspaceAPIKeyService) List(ctx context.Context, workspaceID string, opts ...option.RequestOption) (res *[]WorkspaceAPIKeyListResponse, err error)
- func (r *WorkspaceAPIKeyService) New(ctx context.Context, workspaceID string, body WorkspaceAPIKeyNewParams, ...) (res *WorkspaceAPIKeyNewResponse, err error)
- func (r *WorkspaceAPIKeyService) Rotate(ctx context.Context, workspaceID string, apiKeyID string, ...) (res *WorkspaceAPIKeyRotateResponse, err error)
- func (r *WorkspaceAPIKeyService) Update(ctx context.Context, workspaceID string, apiKeyID string, ...) (res *WorkspaceAPIKeyUpdateResponse, err error)
- type WorkspaceAPIKeyUpdateParams
- type WorkspaceAPIKeyUpdateResponse
- type WorkspaceAPIKeyUpdateResponseStatus
- type WorkspaceGetResponse
- type WorkspaceGetResponseMonthlyUsage
- type WorkspaceGetResponseStatus
- type WorkspaceInviteListParams
- type WorkspaceInviteListResponse
- type WorkspaceInviteListResponseItem
- type WorkspaceInviteListResponseItemsCreator
- type WorkspaceInviteListResponseItemsRole
- type WorkspaceInviteListResponseItemsStatus
- type WorkspaceInviteListResponseItemsWorkspace
- type WorkspaceInviteNewParams
- type WorkspaceInviteNewParamsRole
- type WorkspaceInviteNewResponse
- type WorkspaceInviteNewResponseItem
- type WorkspaceInviteNewResponseItemsCreator
- type WorkspaceInviteNewResponseItemsRole
- type WorkspaceInviteNewResponseItemsStatus
- type WorkspaceInviteNewResponseItemsWorkspace
- type WorkspaceInviteService
- func (r *WorkspaceInviteService) List(ctx context.Context, workspaceID string, query WorkspaceInviteListParams, ...) (res *WorkspaceInviteListResponse, err error)
- func (r *WorkspaceInviteService) New(ctx context.Context, workspaceID string, body WorkspaceInviteNewParams, ...) (res *WorkspaceInviteNewResponse, err error)
- type WorkspaceService
- type WorkspaceUpdateParams
- type WorkspaceUpdateResponse
- type WorkspaceUpdateResponseMonthlyUsage
- type WorkspaceUpdateResponseStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientOptions ¶
func DefaultClientOptions() []option.RequestOption
DefaultClientOptions read from the environment (OPENLAYER_API_KEY, OPENLAYER_BASE_URL). This should be used to initialize new clients.
func F ¶
F is a param field helper used to initialize a param.Field generic struct. This helps specify null, zero values, and overrides, as well as normal values. You can read more about this in our README.
func Int ¶
Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.
func Raw ¶
Raw is a param field helper for specifying values for fields when the type you are looking to send is different from the type that is specified in the SDK. For example, if the type of the field is an integer, but you want to send a float, you could do that by setting the corresponding field with Raw[int](0.5).
Types ¶
type BackgroundTaskGetResponse ¶ added in v0.10.0
type BackgroundTaskGetResponse struct {
// The background task id.
ID string `json:"id" api:"required" format:"uuid"`
// Whether the task has finished. Check this before reading `outputs`.
Complete bool `json:"complete" api:"required"`
// When the task was queued.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// When the task last reported progress.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The task's internal name, including the arguments it was queued with.
Name string `json:"name" api:"required"`
// How far along the task is, from 0 to 100.
Progress float64 `json:"progress" api:"required"`
// Why the task failed, or `null` if it has not failed.
Error string `json:"error" api:"nullable"`
// Whatever the task produced, keyed by name. `null` until the task completes. A
// framework export returns `storageUri` -- pass it to `GET /storage/presigned-url`
// to download the archive -- along with `filename`, `controlCount`,
// `evidenceCount` and `missingEvidenceCount`.
Outputs interface{} `json:"outputs" api:"nullable"`
JSON backgroundTaskGetResponseJSON `json:"-"`
}
func (*BackgroundTaskGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *BackgroundTaskGetResponse) UnmarshalJSON(data []byte) (err error)
type BackgroundTaskService ¶ added in v0.10.0
type BackgroundTaskService struct {
Options []option.RequestOption
}
BackgroundTaskService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBackgroundTaskService method instead.
func NewBackgroundTaskService ¶ added in v0.10.0
func NewBackgroundTaskService(opts ...option.RequestOption) (r *BackgroundTaskService)
NewBackgroundTaskService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*BackgroundTaskService) Get ¶ added in v0.10.0
func (r *BackgroundTaskService) Get(ctx context.Context, taskID string, opts ...option.RequestOption) (res *BackgroundTaskGetResponse, err error)
Retrieve a background task's status, progress and results.
Endpoints that cannot answer within one request queue a task and hand back its id -- for example `POST /frameworks/{frameworkId}/export`. Poll this endpoint until `complete` is `true`, then read what the task produced from `outputs`.
type Client ¶
type Client struct {
Options []option.RequestOption
Projects *ProjectService
Workspaces *WorkspaceService
Commits *CommitService
InferencePipelines *InferencePipelineService
Storage *StorageService
Tests *TestService
BackgroundTasks *BackgroundTaskService
Governance *GovernanceService
}
Client creates a struct with services and top level methods that help with interacting with the openlayer API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient ¶
func NewClient(opts ...option.RequestOption) (r *Client)
NewClient generates a new client with the default option read from the environment (OPENLAYER_API_KEY, OPENLAYER_BASE_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (*Client) Delete ¶
func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Execute ¶
func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.
If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.
The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned url.Values will be used as query strings to the url.
If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.
Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.
The response body will be deserialized into the res variable, depending on its type:
- A pointer to a *http.Response is populated by the raw response.
- A pointer to a byte array will be populated with the contents of the request body.
- A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
- A nil value will not read the response body.
For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.
func (*Client) Get ¶
func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Patch ¶
func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Post ¶
func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Post makes a POST request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
type CommitGetResponse ¶
type CommitGetResponse struct {
// The project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The details of a commit (project version).
Commit CommitGetResponseCommit `json:"commit" api:"required"`
// The commit archive date.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The project version (commit) creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The number of tests that are failing for the commit.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The number of tests that are passing for the commit.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The commit status. Initially, the commit is `queued`, then, it switches to
// `running`. Finally, it can be `paused`, `failed`, or `completed`.
Status CommitGetResponseStatus `json:"status" api:"required"`
// The commit status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests for the commit.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// Whether the commit is archived.
Archived bool `json:"archived" api:"nullable"`
// The deployment status associated with the commit's model.
DeploymentStatus string `json:"deploymentStatus"`
Links CommitGetResponseLinks `json:"links"`
JSON commitGetResponseJSON `json:"-"`
}
func (*CommitGetResponse) UnmarshalJSON ¶
func (r *CommitGetResponse) UnmarshalJSON(data []byte) (err error)
type CommitGetResponseCommit ¶
type CommitGetResponseCommit struct {
// The commit id.
ID string `json:"id" api:"required" format:"uuid"`
// The author id of the commit.
AuthorID string `json:"authorId" api:"required" format:"uuid"`
// The size of the commit bundle in bytes.
FileSize int64 `json:"fileSize" api:"required,nullable"`
// The commit message.
Message string `json:"message" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The storage URI where the commit bundle is stored.
StorageUri string `json:"storageUri" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// The commit creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The ref of the corresponding git commit.
GitCommitRef string `json:"gitCommitRef"`
// The SHA of the corresponding git commit.
GitCommitSha int64 `json:"gitCommitSha"`
// The URL of the corresponding git commit.
GitCommitURL string `json:"gitCommitUrl"`
JSON commitGetResponseCommitJSON `json:"-"`
}
The details of a commit (project version).
func (*CommitGetResponseCommit) UnmarshalJSON ¶
func (r *CommitGetResponseCommit) UnmarshalJSON(data []byte) (err error)
type CommitGetResponseLinks ¶
type CommitGetResponseLinks struct {
App string `json:"app" api:"required"`
JSON commitGetResponseLinksJSON `json:"-"`
}
func (*CommitGetResponseLinks) UnmarshalJSON ¶
func (r *CommitGetResponseLinks) UnmarshalJSON(data []byte) (err error)
type CommitGetResponseStatus ¶
type CommitGetResponseStatus string
The commit status. Initially, the commit is `queued`, then, it switches to `running`. Finally, it can be `paused`, `failed`, or `completed`.
const ( CommitGetResponseStatusQueued CommitGetResponseStatus = "queued" CommitGetResponseStatusRunning CommitGetResponseStatus = "running" CommitGetResponseStatusPaused CommitGetResponseStatus = "paused" CommitGetResponseStatusFailed CommitGetResponseStatus = "failed" CommitGetResponseStatusCompleted CommitGetResponseStatus = "completed" CommitGetResponseStatusUnknown CommitGetResponseStatus = "unknown" )
func (CommitGetResponseStatus) IsKnown ¶
func (r CommitGetResponseStatus) IsKnown() bool
type CommitService ¶
type CommitService struct {
Options []option.RequestOption
TestResults *CommitTestResultService
}
CommitService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCommitService method instead.
func NewCommitService ¶
func NewCommitService(opts ...option.RequestOption) (r *CommitService)
NewCommitService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*CommitService) Get ¶
func (r *CommitService) Get(ctx context.Context, projectVersionID string, opts ...option.RequestOption) (res *CommitGetResponse, err error)
Retrieve a project version (commit) by its id.
type CommitTestResultListParams ¶
type CommitTestResultListParams struct {
// Filter for archived tests.
IncludeArchived param.Field[bool] `query:"includeArchived"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Filter list of test results by status. Available statuses are `running`,
// `passing`, `failing`, `skipped`, and `error`.
Status param.Field[CommitTestResultListParamsStatus] `query:"status"`
// Filter objects by test type. Available types are `integrity`, `consistency`,
// `performance`, `fairness`, and `robustness`.
Type param.Field[CommitTestResultListParamsType] `query:"type"`
}
func (CommitTestResultListParams) URLQuery ¶
func (r CommitTestResultListParams) URLQuery() (v url.Values)
URLQuery serializes CommitTestResultListParams's query parameters as `url.Values`.
type CommitTestResultListParamsStatus ¶
type CommitTestResultListParamsStatus string
Filter list of test results by status. Available statuses are `running`, `passing`, `failing`, `skipped`, and `error`.
const ( CommitTestResultListParamsStatusRunning CommitTestResultListParamsStatus = "running" CommitTestResultListParamsStatusPassing CommitTestResultListParamsStatus = "passing" CommitTestResultListParamsStatusFailing CommitTestResultListParamsStatus = "failing" CommitTestResultListParamsStatusSkipped CommitTestResultListParamsStatus = "skipped" CommitTestResultListParamsStatusError CommitTestResultListParamsStatus = "error" )
func (CommitTestResultListParamsStatus) IsKnown ¶
func (r CommitTestResultListParamsStatus) IsKnown() bool
type CommitTestResultListParamsType ¶
type CommitTestResultListParamsType string
Filter objects by test type. Available types are `integrity`, `consistency`, `performance`, `fairness`, and `robustness`.
const ( CommitTestResultListParamsTypeIntegrity CommitTestResultListParamsType = "integrity" CommitTestResultListParamsTypeConsistency CommitTestResultListParamsType = "consistency" CommitTestResultListParamsTypePerformance CommitTestResultListParamsType = "performance" CommitTestResultListParamsTypeFairness CommitTestResultListParamsType = "fairness" CommitTestResultListParamsTypeRobustness CommitTestResultListParamsType = "robustness" )
func (CommitTestResultListParamsType) IsKnown ¶
func (r CommitTestResultListParamsType) IsKnown() bool
type CommitTestResultListResponse ¶
type CommitTestResultListResponse struct {
Items []CommitTestResultListResponseItem `json:"items" api:"required"`
JSON commitTestResultListResponseJSON `json:"-"`
}
func (*CommitTestResultListResponse) UnmarshalJSON ¶
func (r *CommitTestResultListResponse) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItem ¶
type CommitTestResultListResponseItem struct {
// Project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The data end date.
DateDataEnds time.Time `json:"dateDataEnds" api:"required,nullable" format:"date-time"`
// The data start date.
DateDataStarts time.Time `json:"dateDataStarts" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline id.
InferencePipelineID string `json:"inferencePipelineId" api:"required,nullable" format:"uuid"`
// The project version (commit) id.
ProjectVersionID string `json:"projectVersionId" api:"required,nullable" format:"uuid"`
// The status of the test.
Status CommitTestResultListResponseItemsStatus `json:"status" api:"required"`
// The status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
ExpectedValues []CommitTestResultListResponseItemsExpectedValue `json:"expectedValues"`
Goal CommitTestResultListResponseItemsGoal `json:"goal"`
// The test id.
GoalID string `json:"goalId" api:"nullable" format:"uuid"`
// The URL to the rows of the test result.
Rows string `json:"rows"`
// The body of the rows request.
RowsBody CommitTestResultListResponseItemsRowsBody `json:"rowsBody" api:"nullable"`
JSON commitTestResultListResponseItemJSON `json:"-"`
}
func (*CommitTestResultListResponseItem) UnmarshalJSON ¶
func (r *CommitTestResultListResponseItem) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsExpectedValue ¶ added in v0.4.0
type CommitTestResultListResponseItemsExpectedValue struct {
// the lower threshold for the expected value
LowerThreshold float64 `json:"lowerThreshold" api:"nullable"`
// One of the `measurement` values in the test's thresholds
Measurement string `json:"measurement"`
// The upper threshold for the expected value
UpperThreshold float64 `json:"upperThreshold" api:"nullable"`
JSON commitTestResultListResponseItemsExpectedValueJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsExpectedValue) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsExpectedValue) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsGoal ¶
type CommitTestResultListResponseItemsGoal struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype CommitTestResultListResponseItemsGoalSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []CommitTestResultListResponseItemsGoalThreshold `json:"thresholds" api:"required"`
// The test type.
Type CommitTestResultListResponseItemsGoalType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON commitTestResultListResponseItemsGoalJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsGoal) UnmarshalJSON ¶
func (r *CommitTestResultListResponseItemsGoal) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsGoalSubtype ¶
type CommitTestResultListResponseItemsGoalSubtype string
The test subtype.
const ( CommitTestResultListResponseItemsGoalSubtypeAnomalousColumnCount CommitTestResultListResponseItemsGoalSubtype = "anomalousColumnCount" CommitTestResultListResponseItemsGoalSubtypeCharacterLength CommitTestResultListResponseItemsGoalSubtype = "characterLength" CommitTestResultListResponseItemsGoalSubtypeClassImbalanceRatio CommitTestResultListResponseItemsGoalSubtype = "classImbalanceRatio" CommitTestResultListResponseItemsGoalSubtypeExpectColumnAToBeInColumnB CommitTestResultListResponseItemsGoalSubtype = "expectColumnAToBeInColumnB" CommitTestResultListResponseItemsGoalSubtypeColumnAverage CommitTestResultListResponseItemsGoalSubtype = "columnAverage" CommitTestResultListResponseItemsGoalSubtypeColumnDrift CommitTestResultListResponseItemsGoalSubtype = "columnDrift" CommitTestResultListResponseItemsGoalSubtypeColumnStatistic CommitTestResultListResponseItemsGoalSubtype = "columnStatistic" CommitTestResultListResponseItemsGoalSubtypeColumnValuesMatch CommitTestResultListResponseItemsGoalSubtype = "columnValuesMatch" CommitTestResultListResponseItemsGoalSubtypeConflictingLabelRowCount CommitTestResultListResponseItemsGoalSubtype = "conflictingLabelRowCount" CommitTestResultListResponseItemsGoalSubtypeContainsPii CommitTestResultListResponseItemsGoalSubtype = "containsPii" CommitTestResultListResponseItemsGoalSubtypeContainsValidURL CommitTestResultListResponseItemsGoalSubtype = "containsValidUrl" CommitTestResultListResponseItemsGoalSubtypeCustomMetricThreshold CommitTestResultListResponseItemsGoalSubtype = "customMetricThreshold" CommitTestResultListResponseItemsGoalSubtypeDuplicateRowCount CommitTestResultListResponseItemsGoalSubtype = "duplicateRowCount" CommitTestResultListResponseItemsGoalSubtypeEmptyFeature CommitTestResultListResponseItemsGoalSubtype = "emptyFeature" CommitTestResultListResponseItemsGoalSubtypeEmptyFeatureCount CommitTestResultListResponseItemsGoalSubtype = "emptyFeatureCount" CommitTestResultListResponseItemsGoalSubtypeDriftedFeatureCount CommitTestResultListResponseItemsGoalSubtype = "driftedFeatureCount" CommitTestResultListResponseItemsGoalSubtypeFeatureMissingValues CommitTestResultListResponseItemsGoalSubtype = "featureMissingValues" CommitTestResultListResponseItemsGoalSubtypeFeatureValueValidation CommitTestResultListResponseItemsGoalSubtype = "featureValueValidation" CommitTestResultListResponseItemsGoalSubtypeGreatExpectations CommitTestResultListResponseItemsGoalSubtype = "greatExpectations" CommitTestResultListResponseItemsGoalSubtypeGroupByColumnStatsCheck CommitTestResultListResponseItemsGoalSubtype = "groupByColumnStatsCheck" CommitTestResultListResponseItemsGoalSubtypeIllFormedRowCount CommitTestResultListResponseItemsGoalSubtype = "illFormedRowCount" CommitTestResultListResponseItemsGoalSubtypeIsCode CommitTestResultListResponseItemsGoalSubtype = "isCode" CommitTestResultListResponseItemsGoalSubtypeIsJson CommitTestResultListResponseItemsGoalSubtype = "isJson" CommitTestResultListResponseItemsGoalSubtypeLlmRubricThresholdV2 CommitTestResultListResponseItemsGoalSubtype = "llmRubricThresholdV2" CommitTestResultListResponseItemsGoalSubtypeLabelDrift CommitTestResultListResponseItemsGoalSubtype = "labelDrift" CommitTestResultListResponseItemsGoalSubtypeMetricThreshold CommitTestResultListResponseItemsGoalSubtype = "metricThreshold" CommitTestResultListResponseItemsGoalSubtypeNewCategoryCount CommitTestResultListResponseItemsGoalSubtype = "newCategoryCount" CommitTestResultListResponseItemsGoalSubtypeNewLabelCount CommitTestResultListResponseItemsGoalSubtype = "newLabelCount" CommitTestResultListResponseItemsGoalSubtypeNullRowCount CommitTestResultListResponseItemsGoalSubtype = "nullRowCount" CommitTestResultListResponseItemsGoalSubtypeRowCount CommitTestResultListResponseItemsGoalSubtype = "rowCount" CommitTestResultListResponseItemsGoalSubtypePpScoreValueValidation CommitTestResultListResponseItemsGoalSubtype = "ppScoreValueValidation" CommitTestResultListResponseItemsGoalSubtypeQuasiConstantFeature CommitTestResultListResponseItemsGoalSubtype = "quasiConstantFeature" CommitTestResultListResponseItemsGoalSubtypeQuasiConstantFeatureCount CommitTestResultListResponseItemsGoalSubtype = "quasiConstantFeatureCount" CommitTestResultListResponseItemsGoalSubtypeSqlQuery CommitTestResultListResponseItemsGoalSubtype = "sqlQuery" CommitTestResultListResponseItemsGoalSubtypeDtypeValidation CommitTestResultListResponseItemsGoalSubtype = "dtypeValidation" CommitTestResultListResponseItemsGoalSubtypeSentenceLength CommitTestResultListResponseItemsGoalSubtype = "sentenceLength" CommitTestResultListResponseItemsGoalSubtypeSizeRatio CommitTestResultListResponseItemsGoalSubtype = "sizeRatio" CommitTestResultListResponseItemsGoalSubtypeSpecialCharactersRatio CommitTestResultListResponseItemsGoalSubtype = "specialCharactersRatio" CommitTestResultListResponseItemsGoalSubtypeStringValidation CommitTestResultListResponseItemsGoalSubtype = "stringValidation" CommitTestResultListResponseItemsGoalSubtypeTrainValLeakageRowCount CommitTestResultListResponseItemsGoalSubtype = "trainValLeakageRowCount" )
func (CommitTestResultListResponseItemsGoalSubtype) IsKnown ¶
func (r CommitTestResultListResponseItemsGoalSubtype) IsKnown() bool
type CommitTestResultListResponseItemsGoalThreshold ¶
type CommitTestResultListResponseItemsGoalThreshold struct {
// The insight name to be evaluated.
InsightName CommitTestResultListResponseItemsGoalThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []CommitTestResultListResponseItemsGoalThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator CommitTestResultListResponseItemsGoalThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode CommitTestResultListResponseItemsGoalThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value CommitTestResultListResponseItemsGoalThresholdsValueUnion `json:"value"`
JSON commitTestResultListResponseItemsGoalThresholdJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsGoalThreshold) UnmarshalJSON ¶
func (r *CommitTestResultListResponseItemsGoalThreshold) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsGoalThresholdsInsightName ¶
type CommitTestResultListResponseItemsGoalThresholdsInsightName string
The insight name to be evaluated.
const ( CommitTestResultListResponseItemsGoalThresholdsInsightNameCharacterLength CommitTestResultListResponseItemsGoalThresholdsInsightName = "characterLength" CommitTestResultListResponseItemsGoalThresholdsInsightNameClassImbalance CommitTestResultListResponseItemsGoalThresholdsInsightName = "classImbalance" CommitTestResultListResponseItemsGoalThresholdsInsightNameExpectColumnAToBeInColumnB CommitTestResultListResponseItemsGoalThresholdsInsightName = "expectColumnAToBeInColumnB" CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnAverage CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnAverage" CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnDrift" CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnValuesMatch CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnValuesMatch" CommitTestResultListResponseItemsGoalThresholdsInsightNameConfidenceDistribution CommitTestResultListResponseItemsGoalThresholdsInsightName = "confidenceDistribution" CommitTestResultListResponseItemsGoalThresholdsInsightNameConflictingLabelRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "conflictingLabelRowCount" CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsPii CommitTestResultListResponseItemsGoalThresholdsInsightName = "containsPii" CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsValidURL CommitTestResultListResponseItemsGoalThresholdsInsightName = "containsValidUrl" CommitTestResultListResponseItemsGoalThresholdsInsightNameCustomMetric CommitTestResultListResponseItemsGoalThresholdsInsightName = "customMetric" CommitTestResultListResponseItemsGoalThresholdsInsightNameDuplicateRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "duplicateRowCount" CommitTestResultListResponseItemsGoalThresholdsInsightNameEmptyFeatures CommitTestResultListResponseItemsGoalThresholdsInsightName = "emptyFeatures" CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "featureDrift" CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureProfile CommitTestResultListResponseItemsGoalThresholdsInsightName = "featureProfile" CommitTestResultListResponseItemsGoalThresholdsInsightNameGreatExpectations CommitTestResultListResponseItemsGoalThresholdsInsightName = "greatExpectations" CommitTestResultListResponseItemsGoalThresholdsInsightNameGroupByColumnStatsCheck CommitTestResultListResponseItemsGoalThresholdsInsightName = "groupByColumnStatsCheck" CommitTestResultListResponseItemsGoalThresholdsInsightNameIllFormedRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "illFormedRowCount" CommitTestResultListResponseItemsGoalThresholdsInsightNameIsCode CommitTestResultListResponseItemsGoalThresholdsInsightName = "isCode" CommitTestResultListResponseItemsGoalThresholdsInsightNameIsJson CommitTestResultListResponseItemsGoalThresholdsInsightName = "isJson" CommitTestResultListResponseItemsGoalThresholdsInsightNameLlmRubricV2 CommitTestResultListResponseItemsGoalThresholdsInsightName = "llmRubricV2" CommitTestResultListResponseItemsGoalThresholdsInsightNameLabelDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "labelDrift" CommitTestResultListResponseItemsGoalThresholdsInsightNameMetrics CommitTestResultListResponseItemsGoalThresholdsInsightName = "metrics" CommitTestResultListResponseItemsGoalThresholdsInsightNameNewCategories CommitTestResultListResponseItemsGoalThresholdsInsightName = "newCategories" CommitTestResultListResponseItemsGoalThresholdsInsightNameNewLabels CommitTestResultListResponseItemsGoalThresholdsInsightName = "newLabels" CommitTestResultListResponseItemsGoalThresholdsInsightNameNullRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "nullRowCount" CommitTestResultListResponseItemsGoalThresholdsInsightNamePpScore CommitTestResultListResponseItemsGoalThresholdsInsightName = "ppScore" CommitTestResultListResponseItemsGoalThresholdsInsightNameQuasiConstantFeatures CommitTestResultListResponseItemsGoalThresholdsInsightName = "quasiConstantFeatures" CommitTestResultListResponseItemsGoalThresholdsInsightNameSentenceLength CommitTestResultListResponseItemsGoalThresholdsInsightName = "sentenceLength" CommitTestResultListResponseItemsGoalThresholdsInsightNameSizeRatio CommitTestResultListResponseItemsGoalThresholdsInsightName = "sizeRatio" CommitTestResultListResponseItemsGoalThresholdsInsightNameSpecialCharacters CommitTestResultListResponseItemsGoalThresholdsInsightName = "specialCharacters" CommitTestResultListResponseItemsGoalThresholdsInsightNameStringValidation CommitTestResultListResponseItemsGoalThresholdsInsightName = "stringValidation" CommitTestResultListResponseItemsGoalThresholdsInsightNameTrainValLeakageRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "trainValLeakageRowCount" )
func (CommitTestResultListResponseItemsGoalThresholdsInsightName) IsKnown ¶
func (r CommitTestResultListResponseItemsGoalThresholdsInsightName) IsKnown() bool
type CommitTestResultListResponseItemsGoalThresholdsInsightParameter ¶
type CommitTestResultListResponseItemsGoalThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON commitTestResultListResponseItemsGoalThresholdsInsightParameterJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON ¶
func (r *CommitTestResultListResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsGoalThresholdsOperator ¶
type CommitTestResultListResponseItemsGoalThresholdsOperator string
The operator to be used for the evaluation.
const ( CommitTestResultListResponseItemsGoalThresholdsOperatorIs CommitTestResultListResponseItemsGoalThresholdsOperator = "is" CommitTestResultListResponseItemsGoalThresholdsOperatorGreater CommitTestResultListResponseItemsGoalThresholdsOperator = ">" CommitTestResultListResponseItemsGoalThresholdsOperatorGreaterOrEquals CommitTestResultListResponseItemsGoalThresholdsOperator = ">=" CommitTestResultListResponseItemsGoalThresholdsOperatorLess CommitTestResultListResponseItemsGoalThresholdsOperator = "<" CommitTestResultListResponseItemsGoalThresholdsOperatorLessOrEquals CommitTestResultListResponseItemsGoalThresholdsOperator = "<=" CommitTestResultListResponseItemsGoalThresholdsOperatorNotEquals CommitTestResultListResponseItemsGoalThresholdsOperator = "!=" )
func (CommitTestResultListResponseItemsGoalThresholdsOperator) IsKnown ¶
func (r CommitTestResultListResponseItemsGoalThresholdsOperator) IsKnown() bool
type CommitTestResultListResponseItemsGoalThresholdsThresholdMode ¶
type CommitTestResultListResponseItemsGoalThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( CommitTestResultListResponseItemsGoalThresholdsThresholdModeAutomatic CommitTestResultListResponseItemsGoalThresholdsThresholdMode = "automatic" CommitTestResultListResponseItemsGoalThresholdsThresholdModeManual CommitTestResultListResponseItemsGoalThresholdsThresholdMode = "manual" )
func (CommitTestResultListResponseItemsGoalThresholdsThresholdMode) IsKnown ¶
func (r CommitTestResultListResponseItemsGoalThresholdsThresholdMode) IsKnown() bool
type CommitTestResultListResponseItemsGoalThresholdsValueArray ¶
type CommitTestResultListResponseItemsGoalThresholdsValueArray []string
func (CommitTestResultListResponseItemsGoalThresholdsValueArray) ImplementsCommitTestResultListResponseItemsGoalThresholdsValueUnion ¶
func (r CommitTestResultListResponseItemsGoalThresholdsValueArray) ImplementsCommitTestResultListResponseItemsGoalThresholdsValueUnion()
type CommitTestResultListResponseItemsGoalThresholdsValueUnion ¶
type CommitTestResultListResponseItemsGoalThresholdsValueUnion interface {
ImplementsCommitTestResultListResponseItemsGoalThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or CommitTestResultListResponseItemsGoalThresholdsValueArray.
type CommitTestResultListResponseItemsGoalType ¶
type CommitTestResultListResponseItemsGoalType string
The test type.
const ( CommitTestResultListResponseItemsGoalTypeIntegrity CommitTestResultListResponseItemsGoalType = "integrity" CommitTestResultListResponseItemsGoalTypeConsistency CommitTestResultListResponseItemsGoalType = "consistency" CommitTestResultListResponseItemsGoalTypePerformance CommitTestResultListResponseItemsGoalType = "performance" )
func (CommitTestResultListResponseItemsGoalType) IsKnown ¶
func (r CommitTestResultListResponseItemsGoalType) IsKnown() bool
type CommitTestResultListResponseItemsRowsBody ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBody struct {
ColumnFilters []CommitTestResultListResponseItemsRowsBodyColumnFilter `json:"columnFilters" api:"nullable"`
ExcludeRowIDList []int64 `json:"excludeRowIdList" api:"nullable"`
NotSearchQueryAnd []string `json:"notSearchQueryAnd" api:"nullable"`
NotSearchQueryOr []string `json:"notSearchQueryOr" api:"nullable"`
RowIDList []int64 `json:"rowIdList" api:"nullable"`
SearchQueryAnd []string `json:"searchQueryAnd" api:"nullable"`
SearchQueryOr []string `json:"searchQueryOr" api:"nullable"`
JSON commitTestResultListResponseItemsRowsBodyJSON `json:"-"`
}
The body of the rows request.
func (*CommitTestResultListResponseItemsRowsBody) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsRowsBody) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsRowsBodyColumnFilter ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator `json:"operator" api:"required"`
// This field can have the runtime type of
// [[]CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion],
// [float64],
// [CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion].
Value interface{} `json:"value" api:"required"`
JSON commitTestResultListResponseItemsRowsBodyColumnFilterJSON `json:"-"`
// contains filtered or unexported fields
}
func (CommitTestResultListResponseItemsRowsBodyColumnFilter) AsUnion ¶ added in v0.4.0
func (r CommitTestResultListResponseItemsRowsBodyColumnFilter) AsUnion() CommitTestResultListResponseItemsRowsBodyColumnFiltersUnion
AsUnion returns a CommitTestResultListResponseItemsRowsBodyColumnFiltersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter, CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter, CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter.
func (*CommitTestResultListResponseItemsRowsBodyColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsRowsBodyColumnFilter) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator `json:"operator" api:"required"`
Value float64 `json:"value" api:"required,nullable"`
JSON commitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator string
const ( CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreater CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">" CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreaterOrEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">=" CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorIs CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "is" CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLess CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<" CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLessOrEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<=" CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorNotEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "!=" )
type CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator string
const ( CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsNone CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_none" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsAny CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_any" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsAll CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_all" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorOneOf CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "one_of" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorNoneOf CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "none_of" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorGreater CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = ">" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorGreaterOrEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = ">=" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorIs CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "is" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorLess CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "<" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorLessOrEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "<=" CommitTestResultListResponseItemsRowsBodyColumnFiltersOperatorNotEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator = "!=" )
func (CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator) IsKnown ¶ added in v0.4.0
func (r CommitTestResultListResponseItemsRowsBodyColumnFiltersOperator) IsKnown() bool
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator `json:"operator" api:"required"`
Value []CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion `json:"value" api:"required"`
JSON commitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator string
const ( CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsNone CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_none" CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAny CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_any" CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAll CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_all" CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorOneOf CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "one_of" CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorNoneOf CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "none_of" )
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion interface {
ImplementsCommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionFloat.
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator `json:"operator" api:"required"`
Value CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion `json:"value" api:"required"`
JSON commitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterJSON `json:"-"`
}
func (*CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON(data []byte) (err error)
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator string
const ( CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorIs CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "is" CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorNotEquals CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "!=" )
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion interface {
ImplementsCommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionBool.
type CommitTestResultListResponseItemsRowsBodyColumnFiltersUnion ¶ added in v0.4.0
type CommitTestResultListResponseItemsRowsBodyColumnFiltersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by CommitTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter, CommitTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter or CommitTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter.
type CommitTestResultListResponseItemsStatus ¶
type CommitTestResultListResponseItemsStatus string
The status of the test.
const ( CommitTestResultListResponseItemsStatusRunning CommitTestResultListResponseItemsStatus = "running" CommitTestResultListResponseItemsStatusPassing CommitTestResultListResponseItemsStatus = "passing" CommitTestResultListResponseItemsStatusFailing CommitTestResultListResponseItemsStatus = "failing" CommitTestResultListResponseItemsStatusSkipped CommitTestResultListResponseItemsStatus = "skipped" CommitTestResultListResponseItemsStatusError CommitTestResultListResponseItemsStatus = "error" )
func (CommitTestResultListResponseItemsStatus) IsKnown ¶
func (r CommitTestResultListResponseItemsStatus) IsKnown() bool
type CommitTestResultService ¶
type CommitTestResultService struct {
Options []option.RequestOption
}
CommitTestResultService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCommitTestResultService method instead.
func NewCommitTestResultService ¶
func NewCommitTestResultService(opts ...option.RequestOption) (r *CommitTestResultService)
NewCommitTestResultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*CommitTestResultService) List ¶
func (r *CommitTestResultService) List(ctx context.Context, projectVersionID string, query CommitTestResultListParams, opts ...option.RequestOption) (res *CommitTestResultListResponse, err error)
List the test results for a project commit (project version).
type GovernanceFrameworkDocumentGetResponse ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponse struct {
// The document id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The framework the document belongs to.
FrameworkID string `json:"frameworkId" api:"required" format:"uuid"`
// The document title.
Title string `json:"title" api:"required"`
// The document's sections, in display order. Only returned when retrieving a
// single document.
Sections []GovernanceFrameworkDocumentGetResponseSection `json:"sections"`
JSON governanceFrameworkDocumentGetResponseJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentGetResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentGetResponseSection ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSection struct {
// The section id.
ID string `json:"id" api:"required" format:"uuid"`
// The document the section belongs to.
DocumentID string `json:"documentId" api:"required" format:"uuid"`
// The section number as it appears in the source standard.
Number string `json:"number" api:"required"`
// The position of the section within the document.
SortOrder int64 `json:"sortOrder" api:"required"`
// The section title.
Title string `json:"title" api:"required"`
// How many rules are linked to this section, including its subsections. Use it to
// decide whether to fetch the section's rules.
RuleCount int64 `json:"ruleCount"`
// The rules linked directly to this section.
Rules []GovernanceFrameworkDocumentGetResponseSectionsRule `json:"rules"`
// The section's subsections, in display order.
Subsections []GovernanceFrameworkDocumentGetResponseSectionsSubsection `json:"subsections"`
// The section text.
Text string `json:"text" api:"nullable"`
JSON governanceFrameworkDocumentGetResponseSectionJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentGetResponseSection) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentGetResponseSection) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentGetResponseSectionsRule ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsRule struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkDocumentGetResponseSectionsRulesScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkDocumentGetResponseSectionsRulesType `json:"type" api:"required"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// The creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" format:"date-time"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType `json:"evidenceType" api:"nullable"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
JSON governanceFrameworkDocumentGetResponseSectionsRuleJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentGetResponseSectionsRule) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentGetResponseSectionsRule) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceTypeDocument GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType = "document" GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceTypeText GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType = "text" GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceTypeURL GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType = "url" GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceTypeCategoryValue GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType = "categoryValue" )
func (GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsRulesEvidenceType) IsKnown() bool
type GovernanceFrameworkDocumentGetResponseSectionsRulesScope ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsRulesScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkDocumentGetResponseSectionsRulesScopeProject GovernanceFrameworkDocumentGetResponseSectionsRulesScope = "project" GovernanceFrameworkDocumentGetResponseSectionsRulesScopeWorkspace GovernanceFrameworkDocumentGetResponseSectionsRulesScope = "workspace" )
func (GovernanceFrameworkDocumentGetResponseSectionsRulesScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsRulesScope) IsKnown() bool
type GovernanceFrameworkDocumentGetResponseSectionsRulesType ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsRulesType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkDocumentGetResponseSectionsRulesTypePlatform GovernanceFrameworkDocumentGetResponseSectionsRulesType = "platform" GovernanceFrameworkDocumentGetResponseSectionsRulesTypeEvidence GovernanceFrameworkDocumentGetResponseSectionsRulesType = "evidence" )
func (GovernanceFrameworkDocumentGetResponseSectionsRulesType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsRulesType) IsKnown() bool
type GovernanceFrameworkDocumentGetResponseSectionsSubsection ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsSubsection struct {
// The subsection id.
ID string `json:"id" api:"required" format:"uuid"`
// The subsection number as it appears in the source standard.
Number string `json:"number" api:"required"`
// The section the subsection belongs to.
SectionID string `json:"sectionId" api:"required" format:"uuid"`
// The position of the subsection within its section.
SortOrder int64 `json:"sortOrder" api:"required"`
// The subsection title.
Title string `json:"title" api:"required"`
// How many rules are linked to this subsection.
RuleCount int64 `json:"ruleCount"`
// The rules linked to this subsection.
Rules []GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule `json:"rules"`
// The subsection text. This is the requirement your rules are mapped against.
Text string `json:"text" api:"nullable"`
JSON governanceFrameworkDocumentGetResponseSectionsSubsectionJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentGetResponseSectionsSubsection) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentGetResponseSectionsSubsection) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType `json:"type" api:"required"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// The creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" format:"date-time"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType `json:"evidenceType" api:"nullable"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
JSON governanceFrameworkDocumentGetResponseSectionsSubsectionsRuleJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRule) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceTypeDocument GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType = "document" GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceTypeText GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType = "text" GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceTypeURL GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType = "url" GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceTypeCategoryValue GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType = "categoryValue" )
func (GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesEvidenceType) IsKnown() bool
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScopeProject GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope = "project" GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScopeWorkspace GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope = "workspace" )
func (GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesScope) IsKnown() bool
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType ¶ added in v0.10.0
type GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesTypePlatform GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType = "platform" GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesTypeEvidence GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType = "evidence" )
func (GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentGetResponseSectionsSubsectionsRulesType) IsKnown() bool
type GovernanceFrameworkDocumentListParams ¶ added in v0.10.0
type GovernanceFrameworkDocumentListParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (GovernanceFrameworkDocumentListParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkDocumentListParams's query parameters as `url.Values`.
type GovernanceFrameworkDocumentListResponse ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponse struct {
Items []GovernanceFrameworkDocumentListResponseItem `json:"items" api:"required"`
JSON governanceFrameworkDocumentListResponseJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItem ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItem struct {
// The document id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The framework the document belongs to.
FrameworkID string `json:"frameworkId" api:"required" format:"uuid"`
// The document title.
Title string `json:"title" api:"required"`
// The document's sections, in display order. Only returned when retrieving a
// single document.
Sections []GovernanceFrameworkDocumentListResponseItemsSection `json:"sections"`
JSON governanceFrameworkDocumentListResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItemsSection ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSection struct {
// The section id.
ID string `json:"id" api:"required" format:"uuid"`
// The document the section belongs to.
DocumentID string `json:"documentId" api:"required" format:"uuid"`
// The section number as it appears in the source standard.
Number string `json:"number" api:"required"`
// The position of the section within the document.
SortOrder int64 `json:"sortOrder" api:"required"`
// The section title.
Title string `json:"title" api:"required"`
// How many rules are linked to this section, including its subsections. Use it to
// decide whether to fetch the section's rules.
RuleCount int64 `json:"ruleCount"`
// The rules linked directly to this section.
Rules []GovernanceFrameworkDocumentListResponseItemsSectionsRule `json:"rules"`
// The section's subsections, in display order.
Subsections []GovernanceFrameworkDocumentListResponseItemsSectionsSubsection `json:"subsections"`
// The section text.
Text string `json:"text" api:"nullable"`
JSON governanceFrameworkDocumentListResponseItemsSectionJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponseItemsSection) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponseItemsSection) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItemsSectionsRule ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsRule struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkDocumentListResponseItemsSectionsRulesType `json:"type" api:"required"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// The creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" format:"date-time"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType `json:"evidenceType" api:"nullable"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
JSON governanceFrameworkDocumentListResponseItemsSectionsRuleJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponseItemsSectionsRule) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponseItemsSectionsRule) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceTypeDocument GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType = "document" GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceTypeText GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType = "text" GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceTypeURL GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType = "url" GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceTypeCategoryValue GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType = "categoryValue" )
func (GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListResponseItemsSectionsRulesEvidenceType) IsKnown() bool
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsRulesScopeProject GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope = "project" GovernanceFrameworkDocumentListResponseItemsSectionsRulesScopeWorkspace GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope = "workspace" )
func (GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListResponseItemsSectionsRulesScope) IsKnown() bool
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesType ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsRulesType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsRulesTypePlatform GovernanceFrameworkDocumentListResponseItemsSectionsRulesType = "platform" GovernanceFrameworkDocumentListResponseItemsSectionsRulesTypeEvidence GovernanceFrameworkDocumentListResponseItemsSectionsRulesType = "evidence" )
func (GovernanceFrameworkDocumentListResponseItemsSectionsRulesType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListResponseItemsSectionsRulesType) IsKnown() bool
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsection ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsection struct {
// The subsection id.
ID string `json:"id" api:"required" format:"uuid"`
// The subsection number as it appears in the source standard.
Number string `json:"number" api:"required"`
// The section the subsection belongs to.
SectionID string `json:"sectionId" api:"required" format:"uuid"`
// The position of the subsection within its section.
SortOrder int64 `json:"sortOrder" api:"required"`
// The subsection title.
Title string `json:"title" api:"required"`
// How many rules are linked to this subsection.
RuleCount int64 `json:"ruleCount"`
// The rules linked to this subsection.
Rules []GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule `json:"rules"`
// The subsection text. This is the requirement your rules are mapped against.
Text string `json:"text" api:"nullable"`
JSON governanceFrameworkDocumentListResponseItemsSectionsSubsectionJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponseItemsSectionsSubsection) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponseItemsSectionsSubsection) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType `json:"type" api:"required"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// The creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" format:"date-time"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType `json:"evidenceType" api:"nullable"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
JSON governanceFrameworkDocumentListResponseItemsSectionsSubsectionsRuleJSON `json:"-"`
}
func (*GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRule) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceTypeDocument GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType = "document" GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceTypeText GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType = "text" GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceTypeURL GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType = "url" GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceTypeCategoryValue GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesEvidenceType = "categoryValue" )
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScopeProject GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope = "project" GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScopeWorkspace GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope = "workspace" )
func (GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesScope) IsKnown() bool
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType ¶ added in v0.10.0
type GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesTypePlatform GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType = "platform" GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesTypeEvidence GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType = "evidence" )
func (GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkDocumentListResponseItemsSectionsSubsectionsRulesType) IsKnown() bool
type GovernanceFrameworkDocumentService ¶ added in v0.10.0
type GovernanceFrameworkDocumentService struct {
Options []option.RequestOption
}
GovernanceFrameworkDocumentService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceFrameworkDocumentService method instead.
func NewGovernanceFrameworkDocumentService ¶ added in v0.10.0
func NewGovernanceFrameworkDocumentService(opts ...option.RequestOption) (r *GovernanceFrameworkDocumentService)
NewGovernanceFrameworkDocumentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceFrameworkDocumentService) Get ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentService) Get(ctx context.Context, frameworkID string, documentID string, opts ...option.RequestOption) (res *GovernanceFrameworkDocumentGetResponse, err error)
Retrieve a framework document, including its sections, subsections, and the rules mapped to each.
Each section and subsection carries a `ruleCount`, so you can tell which requirements have rules mapped to them before drilling in.
func (*GovernanceFrameworkDocumentService) List ¶ added in v0.10.0
func (r *GovernanceFrameworkDocumentService) List(ctx context.Context, frameworkID string, query GovernanceFrameworkDocumentListParams, opts ...option.RequestOption) (res *GovernanceFrameworkDocumentListResponse, err error)
List the documents attached to a framework.
A document holds the text of the standard the framework is based on, split into sections and subsections. Retrieve a single document to get that structure, along with the rules mapped to each part of it.
type GovernanceFrameworkExportParams ¶ added in v0.10.0
type GovernanceFrameworkExportParams struct {
// Scope the export to this project. It must belong to the framework.
ProjectID param.Field[string] `json:"projectId" format:"uuid"`
}
func (GovernanceFrameworkExportParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkExportParams) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkExportResponse ¶ added in v0.10.0
type GovernanceFrameworkExportResponse struct {
// The background task id, for `GET /background-tasks/{taskId}`.
TaskResultID string `json:"taskResultId" api:"required" format:"uuid"`
// The path to poll for this export's status and result. Already `/v1`-prefixed, so
// it is relative to the API host rather than to the `/v1` base url -- or just pass
// `taskResultId` to `GET /background-tasks/{taskId}`.
TaskResultURL string `json:"taskResultUrl" api:"required"`
JSON governanceFrameworkExportResponseJSON `json:"-"`
}
func (*GovernanceFrameworkExportResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkExportResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponse ¶ added in v0.10.0
type GovernanceFrameworkGetResponse struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
// Free-form labels on the framework.
Tags []string `json:"tags" api:"required"`
// The id of the workspace the framework belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkGetResponseAvatar `json:"avatar" api:"nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"nullable"`
// The user who created the framework. `null` for built-in frameworks.
CreatorID string `json:"creatorId" api:"nullable" format:"uuid"`
// A short description of the framework.
Description string `json:"description" api:"nullable"`
// A longer, rich-text description, as a TipTap JSON document.
ExtendedDescription map[string]interface{} `json:"extendedDescription" api:"nullable"`
// A link to the external standard or regulation the framework is based on.
Href string `json:"href" api:"nullable"`
// Whether the framework definition is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector GovernanceFrameworkGetResponseProjectSelector `json:"projectSelector" api:"nullable"`
// Compliance roll-up for the framework. Present only on
// `GET /workspaces/{workspaceId}/frameworks` when the request sets
// `includeRuleStats=true`.
RuleStats GovernanceFrameworkGetResponseRuleStats `json:"ruleStats"`
JSON governanceFrameworkGetResponseJSON `json:"-"`
}
func (*GovernanceFrameworkGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseAvatar ¶ added in v0.10.0
type GovernanceFrameworkGetResponseAvatar struct {
Type GovernanceFrameworkGetResponseAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkGetResponseAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkGetResponseAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseAvatarType ¶ added in v0.10.0
type GovernanceFrameworkGetResponseAvatarType string
const ( GovernanceFrameworkGetResponseAvatarTypeEmoji GovernanceFrameworkGetResponseAvatarType = "emoji" GovernanceFrameworkGetResponseAvatarTypeImageURL GovernanceFrameworkGetResponseAvatarType = "imageUrl" GovernanceFrameworkGetResponseAvatarTypeBuiltinImage GovernanceFrameworkGetResponseAvatarType = "builtinImage" )
func (GovernanceFrameworkGetResponseAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkGetResponseAvatarType) IsKnown() bool
type GovernanceFrameworkGetResponseProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkGetResponseProjectSelector struct {
// Match criteria, ANDed together.
Match []GovernanceFrameworkGetResponseProjectSelectorMatch `json:"match" api:"nullable"`
JSON governanceFrameworkGetResponseProjectSelectorJSON `json:"-"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (*GovernanceFrameworkGetResponseProjectSelector) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseProjectSelector) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkGetResponseProjectSelectorMatch struct {
// The project property to match against.
Property GovernanceFrameworkGetResponseProjectSelectorMatchProperty `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value interface{} `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator string `json:"operator"`
JSON governanceFrameworkGetResponseProjectSelectorMatchJSON `json:"-"`
}
func (*GovernanceFrameworkGetResponseProjectSelectorMatch) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseProjectSelectorMatch) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkGetResponseProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkGetResponseProjectSelectorMatchPropertyTaskType GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "taskType" GovernanceFrameworkGetResponseProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkGetResponseProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkGetResponseProjectSelectorMatchPropertyName GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "name" GovernanceFrameworkGetResponseProjectSelectorMatchPropertyOwnerID GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkGetResponseProjectSelectorMatchPropertyModelTypes GovernanceFrameworkGetResponseProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkGetResponseProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkGetResponseProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkGetResponseRuleStats ¶ added in v0.10.0
type GovernanceFrameworkGetResponseRuleStats struct {
// How many of the framework's projects fall into each completion band, where a
// project's completion is the share of its rule results that are passing or
// skipped. Projects with no evaluated results count as `low`.
//
// Zeroed when the request carries `projectId`: the bands compare a framework's
// projects against each other, which says nothing about a single project.
ProjectCompletion GovernanceFrameworkGetResponseRuleStatsProjectCompletion `json:"projectCompletion" api:"required"`
// Rule result counts by status for this framework, matching what
// `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a
// single project when the request also carries `projectId`.
RuleResults GovernanceFrameworkGetResponseRuleStatsRuleResults `json:"ruleResults" api:"required"`
JSON governanceFrameworkGetResponseRuleStatsJSON `json:"-"`
}
Compliance roll-up for the framework. Present only on `GET /workspaces/{workspaceId}/frameworks` when the request sets `includeRuleStats=true`.
func (*GovernanceFrameworkGetResponseRuleStats) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseRuleStats) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseRuleStatsProjectCompletion ¶ added in v0.10.0
type GovernanceFrameworkGetResponseRuleStatsProjectCompletion struct {
// Projects at 80% completion or above.
High int64 `json:"high" api:"required"`
// Projects below 20% completion.
Low int64 `json:"low" api:"required"`
// Projects at or above 20% but below 80% completion.
Mid int64 `json:"mid" api:"required"`
JSON governanceFrameworkGetResponseRuleStatsProjectCompletionJSON `json:"-"`
}
How many of the framework's projects fall into each completion band, where a project's completion is the share of its rule results that are passing or skipped. Projects with no evaluated results count as `low`.
Zeroed when the request carries `projectId`: the bands compare a framework's projects against each other, which says nothing about a single project.
func (*GovernanceFrameworkGetResponseRuleStatsProjectCompletion) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseRuleStatsProjectCompletion) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkGetResponseRuleStatsRuleResults ¶ added in v0.10.0
type GovernanceFrameworkGetResponseRuleStatsRuleResults struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkGetResponseRuleStatsRuleResultsJSON `json:"-"`
}
Rule result counts by status for this framework, matching what `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a single project when the request also carries `projectId`.
func (*GovernanceFrameworkGetResponseRuleStatsRuleResults) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkGetResponseRuleStatsRuleResults) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListParams ¶ added in v0.10.0
type GovernanceFrameworkListParams struct {
// Whether to sort in ascending order.
Asc param.Field[bool] `query:"asc"`
// How to compare each framework's completion percentage with `completionValue`.
// Must be sent together with `completionValue`.
CompletionOperator param.Field[GovernanceFrameworkListParamsCompletionOperator] `query:"completionOperator"`
// The completion percentage to compare against, from 0 to 100.
CompletionValue param.Field[int64] `query:"completionValue"`
// Only include frameworks that are enabled (or disabled).
Enabled param.Field[bool] `query:"enabled"`
// Whether to include a `ruleStats` object on each framework, with its rule result
// status counts and its per-project completion buckets. Computed over the returned
// page only.
IncludeRuleStats param.Field[bool] `query:"includeRuleStats"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
// Filter by a free-text search over names and descriptions.
SearchQuery param.Field[string] `query:"searchQuery"`
// The column to sort on.
SortColumn param.Field[GovernanceFrameworkListParamsSortColumn] `query:"sortColumn"`
// Only include frameworks carrying all of these tags.
Tags param.Field[[]string] `query:"tags"`
}
func (GovernanceFrameworkListParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkListParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkListParams's query parameters as `url.Values`.
type GovernanceFrameworkListParamsCompletionOperator ¶ added in v0.10.0
type GovernanceFrameworkListParamsCompletionOperator string
How to compare each framework's completion percentage with `completionValue`. Must be sent together with `completionValue`.
const ( GovernanceFrameworkListParamsCompletionOperatorIs GovernanceFrameworkListParamsCompletionOperator = "is" GovernanceFrameworkListParamsCompletionOperatorGreater GovernanceFrameworkListParamsCompletionOperator = ">" GovernanceFrameworkListParamsCompletionOperatorGreaterOrEquals GovernanceFrameworkListParamsCompletionOperator = ">=" GovernanceFrameworkListParamsCompletionOperatorLess GovernanceFrameworkListParamsCompletionOperator = "<" GovernanceFrameworkListParamsCompletionOperatorLessOrEquals GovernanceFrameworkListParamsCompletionOperator = "<=" GovernanceFrameworkListParamsCompletionOperatorNotEquals GovernanceFrameworkListParamsCompletionOperator = "!=" )
func (GovernanceFrameworkListParamsCompletionOperator) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListParamsCompletionOperator) IsKnown() bool
type GovernanceFrameworkListParamsSortColumn ¶ added in v0.10.0
type GovernanceFrameworkListParamsSortColumn string
The column to sort on.
const ( GovernanceFrameworkListParamsSortColumnName GovernanceFrameworkListParamsSortColumn = "name" GovernanceFrameworkListParamsSortColumnEnabled GovernanceFrameworkListParamsSortColumn = "enabled" GovernanceFrameworkListParamsSortColumnDateCreated GovernanceFrameworkListParamsSortColumn = "dateCreated" GovernanceFrameworkListParamsSortColumnDateUpdated GovernanceFrameworkListParamsSortColumn = "dateUpdated" GovernanceFrameworkListParamsSortColumnOverallCompletion GovernanceFrameworkListParamsSortColumn = "overallCompletion" GovernanceFrameworkListParamsSortColumnProjectCompletionBuckets GovernanceFrameworkListParamsSortColumn = "projectCompletionBuckets" )
func (GovernanceFrameworkListParamsSortColumn) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListParamsSortColumn) IsKnown() bool
type GovernanceFrameworkListProjectRuleStatsParams ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsParams struct {
// Whether to sort in ascending order.
Asc param.Field[bool] `query:"asc"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// The column to sort on.
SortColumn param.Field[GovernanceFrameworkListProjectRuleStatsParamsSortColumn] `query:"sortColumn"`
}
func (GovernanceFrameworkListProjectRuleStatsParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkListProjectRuleStatsParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkListProjectRuleStatsParams's query parameters as `url.Values`.
type GovernanceFrameworkListProjectRuleStatsParamsSortColumn ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsParamsSortColumn string
The column to sort on.
const ( GovernanceFrameworkListProjectRuleStatsParamsSortColumnProjectName GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "projectName" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotal GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "total" GovernanceFrameworkListProjectRuleStatsParamsSortColumnOverallCompletion GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "overallCompletion" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalPassing GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalPassing" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalFailing GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalFailing" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalSkipped GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalSkipped" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalRunning GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalRunning" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalError GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalError" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalPending GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalPending" GovernanceFrameworkListProjectRuleStatsParamsSortColumnTotalDueSoon GovernanceFrameworkListProjectRuleStatsParamsSortColumn = "totalDueSoon" )
func (GovernanceFrameworkListProjectRuleStatsParamsSortColumn) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListProjectRuleStatsParamsSortColumn) IsKnown() bool
type GovernanceFrameworkListProjectRuleStatsResponse ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsResponse struct {
Items []GovernanceFrameworkListProjectRuleStatsResponseItem `json:"items" api:"required"`
JSON governanceFrameworkListProjectRuleStatsResponseJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectRuleStatsResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectRuleStatsResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectRuleStatsResponseItem ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsResponseItem struct {
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The project name.
ProjectName string `json:"projectName" api:"required"`
// The project's task type.
TaskType string `json:"taskType" api:"required"`
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
// The same counts, broken down by the type of the rule each result belongs to.
ByRuleType GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType `json:"byRuleType"`
JSON governanceFrameworkListProjectRuleStatsResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectRuleStatsResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectRuleStatsResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType struct {
Evidence GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence `json:"evidence"`
Platform GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform `json:"platform"`
JSON governanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeJSON `json:"-"`
}
The same counts, broken down by the type of the rule each result belongs to.
func (*GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleType) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidenceJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypeEvidence) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform ¶ added in v0.10.0
type GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatformJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectRuleStatsResponseItemsByRuleTypePlatform) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectsParams ¶ added in v0.10.0
type GovernanceFrameworkListProjectsParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (GovernanceFrameworkListProjectsParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkListProjectsParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkListProjectsParams's query parameters as `url.Values`.
type GovernanceFrameworkListProjectsResponse ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponse struct {
Items []GovernanceFrameworkListProjectsResponseItem `json:"items" api:"required"`
JSON governanceFrameworkListProjectsResponseJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectsResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectsResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectsResponseItem ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponseItem struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links GovernanceFrameworkListProjectsResponseItemsLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source GovernanceFrameworkListProjectsResponseItemsSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType GovernanceFrameworkListProjectsResponseItemsTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo GovernanceFrameworkListProjectsResponseItemsGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON governanceFrameworkListProjectsResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectsResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectsResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectsResponseItemsGitRepo ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponseItemsGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON governanceFrameworkListProjectsResponseItemsGitRepoJSON `json:"-"`
}
func (*GovernanceFrameworkListProjectsResponseItemsGitRepo) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectsResponseItemsGitRepo) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectsResponseItemsLinks ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponseItemsLinks struct {
App string `json:"app" api:"required"`
JSON governanceFrameworkListProjectsResponseItemsLinksJSON `json:"-"`
}
Links to the project.
func (*GovernanceFrameworkListProjectsResponseItemsLinks) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListProjectsResponseItemsLinks) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListProjectsResponseItemsSource ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponseItemsSource string
The source of the project.
const ( GovernanceFrameworkListProjectsResponseItemsSourceWeb GovernanceFrameworkListProjectsResponseItemsSource = "web" GovernanceFrameworkListProjectsResponseItemsSourceAPI GovernanceFrameworkListProjectsResponseItemsSource = "api" )
func (GovernanceFrameworkListProjectsResponseItemsSource) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListProjectsResponseItemsSource) IsKnown() bool
type GovernanceFrameworkListProjectsResponseItemsTaskType ¶ added in v0.10.0
type GovernanceFrameworkListProjectsResponseItemsTaskType string
The task type of the project.
const ( GovernanceFrameworkListProjectsResponseItemsTaskTypeLlmBase GovernanceFrameworkListProjectsResponseItemsTaskType = "llm-base" GovernanceFrameworkListProjectsResponseItemsTaskTypeTabularClassification GovernanceFrameworkListProjectsResponseItemsTaskType = "tabular-classification" GovernanceFrameworkListProjectsResponseItemsTaskTypeTabularRegression GovernanceFrameworkListProjectsResponseItemsTaskType = "tabular-regression" GovernanceFrameworkListProjectsResponseItemsTaskTypeTextClassification GovernanceFrameworkListProjectsResponseItemsTaskType = "text-classification" )
func (GovernanceFrameworkListProjectsResponseItemsTaskType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListProjectsResponseItemsTaskType) IsKnown() bool
type GovernanceFrameworkListResponse ¶ added in v0.10.0
type GovernanceFrameworkListResponse struct {
Items []GovernanceFrameworkListResponseItem `json:"items" api:"required"`
JSON governanceFrameworkListResponseJSON `json:"-"`
}
func (*GovernanceFrameworkListResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItem ¶ added in v0.10.0
type GovernanceFrameworkListResponseItem struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
// Free-form labels on the framework.
Tags []string `json:"tags" api:"required"`
// The id of the workspace the framework belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkListResponseItemsAvatar `json:"avatar" api:"nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"nullable"`
// The user who created the framework. `null` for built-in frameworks.
CreatorID string `json:"creatorId" api:"nullable" format:"uuid"`
// A short description of the framework.
Description string `json:"description" api:"nullable"`
// A longer, rich-text description, as a TipTap JSON document.
ExtendedDescription map[string]interface{} `json:"extendedDescription" api:"nullable"`
// A link to the external standard or regulation the framework is based on.
Href string `json:"href" api:"nullable"`
// Whether the framework definition is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector GovernanceFrameworkListResponseItemsProjectSelector `json:"projectSelector" api:"nullable"`
// Compliance roll-up for the framework. Present only on
// `GET /workspaces/{workspaceId}/frameworks` when the request sets
// `includeRuleStats=true`.
RuleStats GovernanceFrameworkListResponseItemsRuleStats `json:"ruleStats"`
JSON governanceFrameworkListResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkListResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsAvatar ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsAvatar struct {
Type GovernanceFrameworkListResponseItemsAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkListResponseItemsAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkListResponseItemsAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsAvatarType ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsAvatarType string
const ( GovernanceFrameworkListResponseItemsAvatarTypeEmoji GovernanceFrameworkListResponseItemsAvatarType = "emoji" GovernanceFrameworkListResponseItemsAvatarTypeImageURL GovernanceFrameworkListResponseItemsAvatarType = "imageUrl" GovernanceFrameworkListResponseItemsAvatarTypeBuiltinImage GovernanceFrameworkListResponseItemsAvatarType = "builtinImage" )
func (GovernanceFrameworkListResponseItemsAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListResponseItemsAvatarType) IsKnown() bool
type GovernanceFrameworkListResponseItemsProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsProjectSelector struct {
// Match criteria, ANDed together.
Match []GovernanceFrameworkListResponseItemsProjectSelectorMatch `json:"match" api:"nullable"`
JSON governanceFrameworkListResponseItemsProjectSelectorJSON `json:"-"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (*GovernanceFrameworkListResponseItemsProjectSelector) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsProjectSelector) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsProjectSelectorMatch struct {
// The project property to match against.
Property GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value interface{} `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator string `json:"operator"`
JSON governanceFrameworkListResponseItemsProjectSelectorMatchJSON `json:"-"`
}
func (*GovernanceFrameworkListResponseItemsProjectSelectorMatch) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsProjectSelectorMatch) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyTaskType GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "taskType" GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyName GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "name" GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyOwnerID GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkListResponseItemsProjectSelectorMatchPropertyModelTypes GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListResponseItemsProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkListResponseItemsRuleStats ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsRuleStats struct {
// How many of the framework's projects fall into each completion band, where a
// project's completion is the share of its rule results that are passing or
// skipped. Projects with no evaluated results count as `low`.
//
// Zeroed when the request carries `projectId`: the bands compare a framework's
// projects against each other, which says nothing about a single project.
ProjectCompletion GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion `json:"projectCompletion" api:"required"`
// Rule result counts by status for this framework, matching what
// `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a
// single project when the request also carries `projectId`.
RuleResults GovernanceFrameworkListResponseItemsRuleStatsRuleResults `json:"ruleResults" api:"required"`
JSON governanceFrameworkListResponseItemsRuleStatsJSON `json:"-"`
}
Compliance roll-up for the framework. Present only on `GET /workspaces/{workspaceId}/frameworks` when the request sets `includeRuleStats=true`.
func (*GovernanceFrameworkListResponseItemsRuleStats) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsRuleStats) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion struct {
// Projects at 80% completion or above.
High int64 `json:"high" api:"required"`
// Projects below 20% completion.
Low int64 `json:"low" api:"required"`
// Projects at or above 20% but below 80% completion.
Mid int64 `json:"mid" api:"required"`
JSON governanceFrameworkListResponseItemsRuleStatsProjectCompletionJSON `json:"-"`
}
How many of the framework's projects fall into each completion band, where a project's completion is the share of its rule results that are passing or skipped. Projects with no evaluated results count as `low`.
Zeroed when the request carries `projectId`: the bands compare a framework's projects against each other, which says nothing about a single project.
func (*GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsRuleStatsProjectCompletion) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListResponseItemsRuleStatsRuleResults ¶ added in v0.10.0
type GovernanceFrameworkListResponseItemsRuleStatsRuleResults struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkListResponseItemsRuleStatsRuleResultsJSON `json:"-"`
}
Rule result counts by status for this framework, matching what `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a single project when the request also carries `projectId`.
func (*GovernanceFrameworkListResponseItemsRuleStatsRuleResults) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListResponseItemsRuleStatsRuleResults) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesParams ¶ added in v0.10.0
type GovernanceFrameworkListRulesParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (GovernanceFrameworkListRulesParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkListRulesParams's query parameters as `url.Values`.
type GovernanceFrameworkListRulesResponse ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponse struct {
Items []GovernanceFrameworkListRulesResponseItem `json:"items" api:"required"`
JSON governanceFrameworkListRulesResponseJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItem ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItem struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkListRulesResponseItemsScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkListRulesResponseItemsType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkListRulesResponseItemsEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceFrameworkListRulesResponseItemsFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceFrameworkListRulesResponseItemsResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceFrameworkListRulesResponseItemsResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceFrameworkListRulesResponseItemsTag `json:"tags" api:"nullable"`
JSON governanceFrameworkListRulesResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkListRulesResponseItemsEvidenceTypeDocument GovernanceFrameworkListRulesResponseItemsEvidenceType = "document" GovernanceFrameworkListRulesResponseItemsEvidenceTypeText GovernanceFrameworkListRulesResponseItemsEvidenceType = "text" GovernanceFrameworkListRulesResponseItemsEvidenceTypeURL GovernanceFrameworkListRulesResponseItemsEvidenceType = "url" GovernanceFrameworkListRulesResponseItemsEvidenceTypeCategoryValue GovernanceFrameworkListRulesResponseItemsEvidenceType = "categoryValue" )
func (GovernanceFrameworkListRulesResponseItemsEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsEvidenceType) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsFramework ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkListRulesResponseItemsFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceFrameworkListRulesResponseItemsFrameworkJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItemsFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsFrameworksAvatar ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsFrameworksAvatar struct {
Type GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkListRulesResponseItemsFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkListRulesResponseItemsFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType string
const ( GovernanceFrameworkListRulesResponseItemsFrameworksAvatarTypeEmoji GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType = "emoji" GovernanceFrameworkListRulesResponseItemsFrameworksAvatarTypeImageURL GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType = "imageUrl" GovernanceFrameworkListRulesResponseItemsFrameworksAvatarTypeBuiltinImage GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType = "builtinImage" )
func (GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsFrameworksAvatarType) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsResult ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkListRulesResponseItemsResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceFrameworkListRulesResponseItemsResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceFrameworkListRulesResponseItemsResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceFrameworkListRulesResponseItemsResultJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItemsResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsResult) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsResultsBlockedBy ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus `json:"status"`
JSON governanceFrameworkListRulesResponseItemsResultsBlockedByJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItemsResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusRunning GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "running" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusPassing GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "passing" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusFailing GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "failing" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusSkipped GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "skipped" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusError GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "error" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusPending GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "pending" GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatusDueSoon GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus = "due_soon" )
func (GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsResultsBlockedByStatus) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsResultsBlocking ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus `json:"status"`
JSON governanceFrameworkListRulesResponseItemsResultsBlockingJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItemsResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusRunning GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "running" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusPassing GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "passing" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusFailing GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "failing" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusSkipped GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "skipped" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusError GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "error" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusPending GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "pending" GovernanceFrameworkListRulesResponseItemsResultsBlockingStatusDueSoon GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus = "due_soon" )
func (GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsResultsBlockingStatus) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsResultsStatus ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkListRulesResponseItemsResultsStatusRunning GovernanceFrameworkListRulesResponseItemsResultsStatus = "running" GovernanceFrameworkListRulesResponseItemsResultsStatusPassing GovernanceFrameworkListRulesResponseItemsResultsStatus = "passing" GovernanceFrameworkListRulesResponseItemsResultsStatusFailing GovernanceFrameworkListRulesResponseItemsResultsStatus = "failing" GovernanceFrameworkListRulesResponseItemsResultsStatusSkipped GovernanceFrameworkListRulesResponseItemsResultsStatus = "skipped" GovernanceFrameworkListRulesResponseItemsResultsStatusError GovernanceFrameworkListRulesResponseItemsResultsStatus = "error" GovernanceFrameworkListRulesResponseItemsResultsStatusPending GovernanceFrameworkListRulesResponseItemsResultsStatus = "pending" GovernanceFrameworkListRulesResponseItemsResultsStatusDueSoon GovernanceFrameworkListRulesResponseItemsResultsStatus = "due_soon" )
func (GovernanceFrameworkListRulesResponseItemsResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsResultsStatus) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsResultsSummary ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceFrameworkListRulesResponseItemsResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceFrameworkListRulesResponseItemsResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsScope ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkListRulesResponseItemsScopeProject GovernanceFrameworkListRulesResponseItemsScope = "project" GovernanceFrameworkListRulesResponseItemsScopeWorkspace GovernanceFrameworkListRulesResponseItemsScope = "workspace" )
func (GovernanceFrameworkListRulesResponseItemsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsScope) IsKnown() bool
type GovernanceFrameworkListRulesResponseItemsTag ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceFrameworkListRulesResponseItemsTagJSON `json:"-"`
}
func (*GovernanceFrameworkListRulesResponseItemsTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkListRulesResponseItemsTag) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkListRulesResponseItemsType ¶ added in v0.10.0
type GovernanceFrameworkListRulesResponseItemsType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkListRulesResponseItemsTypePlatform GovernanceFrameworkListRulesResponseItemsType = "platform" GovernanceFrameworkListRulesResponseItemsTypeEvidence GovernanceFrameworkListRulesResponseItemsType = "evidence" )
func (GovernanceFrameworkListRulesResponseItemsType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkListRulesResponseItemsType) IsKnown() bool
type GovernanceFrameworkNewParams ¶ added in v0.10.0
type GovernanceFrameworkNewParams struct {
// The framework name.
Name param.Field[string] `json:"name" api:"required"`
// A short description of the framework.
Description param.Field[string] `json:"description"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled param.Field[bool] `json:"enabled"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector param.Field[GovernanceFrameworkNewParamsProjectSelector] `json:"projectSelector"`
// Free-form labels on the framework.
Tags param.Field[[]string] `json:"tags"`
}
func (GovernanceFrameworkNewParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkNewParams) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkNewParamsProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkNewParamsProjectSelector struct {
// Match criteria, ANDed together.
Match param.Field[[]GovernanceFrameworkNewParamsProjectSelectorMatch] `json:"match"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (GovernanceFrameworkNewParamsProjectSelector) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkNewParamsProjectSelector) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkNewParamsProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkNewParamsProjectSelectorMatch struct {
// The project property to match against.
Property param.Field[GovernanceFrameworkNewParamsProjectSelectorMatchProperty] `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value param.Field[interface{}] `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator param.Field[string] `json:"operator"`
}
func (GovernanceFrameworkNewParamsProjectSelectorMatch) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkNewParamsProjectSelectorMatch) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkNewParamsProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkNewParamsProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkNewParamsProjectSelectorMatchPropertyTaskType GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "taskType" GovernanceFrameworkNewParamsProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkNewParamsProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkNewParamsProjectSelectorMatchPropertyName GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "name" GovernanceFrameworkNewParamsProjectSelectorMatchPropertyOwnerID GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkNewParamsProjectSelectorMatchPropertyModelTypes GovernanceFrameworkNewParamsProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkNewParamsProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkNewParamsProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkNewResponse ¶ added in v0.10.0
type GovernanceFrameworkNewResponse struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
// Free-form labels on the framework.
Tags []string `json:"tags" api:"required"`
// The id of the workspace the framework belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkNewResponseAvatar `json:"avatar" api:"nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"nullable"`
// The user who created the framework. `null` for built-in frameworks.
CreatorID string `json:"creatorId" api:"nullable" format:"uuid"`
// A short description of the framework.
Description string `json:"description" api:"nullable"`
// A longer, rich-text description, as a TipTap JSON document.
ExtendedDescription map[string]interface{} `json:"extendedDescription" api:"nullable"`
// A link to the external standard or regulation the framework is based on.
Href string `json:"href" api:"nullable"`
// Whether the framework definition is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector GovernanceFrameworkNewResponseProjectSelector `json:"projectSelector" api:"nullable"`
// Compliance roll-up for the framework. Present only on
// `GET /workspaces/{workspaceId}/frameworks` when the request sets
// `includeRuleStats=true`.
RuleStats GovernanceFrameworkNewResponseRuleStats `json:"ruleStats"`
JSON governanceFrameworkNewResponseJSON `json:"-"`
}
func (*GovernanceFrameworkNewResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseAvatar ¶ added in v0.10.0
type GovernanceFrameworkNewResponseAvatar struct {
Type GovernanceFrameworkNewResponseAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkNewResponseAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkNewResponseAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseAvatarType ¶ added in v0.10.0
type GovernanceFrameworkNewResponseAvatarType string
const ( GovernanceFrameworkNewResponseAvatarTypeEmoji GovernanceFrameworkNewResponseAvatarType = "emoji" GovernanceFrameworkNewResponseAvatarTypeImageURL GovernanceFrameworkNewResponseAvatarType = "imageUrl" GovernanceFrameworkNewResponseAvatarTypeBuiltinImage GovernanceFrameworkNewResponseAvatarType = "builtinImage" )
func (GovernanceFrameworkNewResponseAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkNewResponseAvatarType) IsKnown() bool
type GovernanceFrameworkNewResponseProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkNewResponseProjectSelector struct {
// Match criteria, ANDed together.
Match []GovernanceFrameworkNewResponseProjectSelectorMatch `json:"match" api:"nullable"`
JSON governanceFrameworkNewResponseProjectSelectorJSON `json:"-"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (*GovernanceFrameworkNewResponseProjectSelector) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseProjectSelector) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkNewResponseProjectSelectorMatch struct {
// The project property to match against.
Property GovernanceFrameworkNewResponseProjectSelectorMatchProperty `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value interface{} `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator string `json:"operator"`
JSON governanceFrameworkNewResponseProjectSelectorMatchJSON `json:"-"`
}
func (*GovernanceFrameworkNewResponseProjectSelectorMatch) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseProjectSelectorMatch) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkNewResponseProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkNewResponseProjectSelectorMatchPropertyTaskType GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "taskType" GovernanceFrameworkNewResponseProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkNewResponseProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkNewResponseProjectSelectorMatchPropertyName GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "name" GovernanceFrameworkNewResponseProjectSelectorMatchPropertyOwnerID GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkNewResponseProjectSelectorMatchPropertyModelTypes GovernanceFrameworkNewResponseProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkNewResponseProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkNewResponseProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkNewResponseRuleStats ¶ added in v0.10.0
type GovernanceFrameworkNewResponseRuleStats struct {
// How many of the framework's projects fall into each completion band, where a
// project's completion is the share of its rule results that are passing or
// skipped. Projects with no evaluated results count as `low`.
//
// Zeroed when the request carries `projectId`: the bands compare a framework's
// projects against each other, which says nothing about a single project.
ProjectCompletion GovernanceFrameworkNewResponseRuleStatsProjectCompletion `json:"projectCompletion" api:"required"`
// Rule result counts by status for this framework, matching what
// `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a
// single project when the request also carries `projectId`.
RuleResults GovernanceFrameworkNewResponseRuleStatsRuleResults `json:"ruleResults" api:"required"`
JSON governanceFrameworkNewResponseRuleStatsJSON `json:"-"`
}
Compliance roll-up for the framework. Present only on `GET /workspaces/{workspaceId}/frameworks` when the request sets `includeRuleStats=true`.
func (*GovernanceFrameworkNewResponseRuleStats) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseRuleStats) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseRuleStatsProjectCompletion ¶ added in v0.10.0
type GovernanceFrameworkNewResponseRuleStatsProjectCompletion struct {
// Projects at 80% completion or above.
High int64 `json:"high" api:"required"`
// Projects below 20% completion.
Low int64 `json:"low" api:"required"`
// Projects at or above 20% but below 80% completion.
Mid int64 `json:"mid" api:"required"`
JSON governanceFrameworkNewResponseRuleStatsProjectCompletionJSON `json:"-"`
}
How many of the framework's projects fall into each completion band, where a project's completion is the share of its rule results that are passing or skipped. Projects with no evaluated results count as `low`.
Zeroed when the request carries `projectId`: the bands compare a framework's projects against each other, which says nothing about a single project.
func (*GovernanceFrameworkNewResponseRuleStatsProjectCompletion) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseRuleStatsProjectCompletion) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkNewResponseRuleStatsRuleResults ¶ added in v0.10.0
type GovernanceFrameworkNewResponseRuleStatsRuleResults struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkNewResponseRuleStatsRuleResultsJSON `json:"-"`
}
Rule result counts by status for this framework, matching what `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a single project when the request also carries `projectId`.
func (*GovernanceFrameworkNewResponseRuleStatsRuleResults) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkNewResponseRuleStatsRuleResults) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesParams ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesParams struct {
// Whether to include each rule's results inline, in a `results` array.
IncludeResults param.Field[bool] `query:"includeResults"`
// Whether to also include the rules mapped to the section's subsections.
IncludeSubsectionRules param.Field[bool] `query:"includeSubsectionRules"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
// Only include items whose rule result has this compliance status.
Status param.Field[GovernanceFrameworkSectionListRulesParamsStatus] `query:"status"`
}
func (GovernanceFrameworkSectionListRulesParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkSectionListRulesParams's query parameters as `url.Values`.
type GovernanceFrameworkSectionListRulesParamsStatus ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesParamsStatus string
Only include items whose rule result has this compliance status.
const ( GovernanceFrameworkSectionListRulesParamsStatusRunning GovernanceFrameworkSectionListRulesParamsStatus = "running" GovernanceFrameworkSectionListRulesParamsStatusPassing GovernanceFrameworkSectionListRulesParamsStatus = "passing" GovernanceFrameworkSectionListRulesParamsStatusFailing GovernanceFrameworkSectionListRulesParamsStatus = "failing" GovernanceFrameworkSectionListRulesParamsStatusSkipped GovernanceFrameworkSectionListRulesParamsStatus = "skipped" GovernanceFrameworkSectionListRulesParamsStatusError GovernanceFrameworkSectionListRulesParamsStatus = "error" GovernanceFrameworkSectionListRulesParamsStatusPending GovernanceFrameworkSectionListRulesParamsStatus = "pending" GovernanceFrameworkSectionListRulesParamsStatusDueSoon GovernanceFrameworkSectionListRulesParamsStatus = "due_soon" )
func (GovernanceFrameworkSectionListRulesParamsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesParamsStatus) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponse ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponse struct {
Items []GovernanceFrameworkSectionListRulesResponseItem `json:"items" api:"required"`
JSON governanceFrameworkSectionListRulesResponseJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItem ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItem struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkSectionListRulesResponseItemsScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkSectionListRulesResponseItemsType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkSectionListRulesResponseItemsEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceFrameworkSectionListRulesResponseItemsFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceFrameworkSectionListRulesResponseItemsResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceFrameworkSectionListRulesResponseItemsResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceFrameworkSectionListRulesResponseItemsTag `json:"tags" api:"nullable"`
JSON governanceFrameworkSectionListRulesResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkSectionListRulesResponseItemsEvidenceTypeDocument GovernanceFrameworkSectionListRulesResponseItemsEvidenceType = "document" GovernanceFrameworkSectionListRulesResponseItemsEvidenceTypeText GovernanceFrameworkSectionListRulesResponseItemsEvidenceType = "text" GovernanceFrameworkSectionListRulesResponseItemsEvidenceTypeURL GovernanceFrameworkSectionListRulesResponseItemsEvidenceType = "url" GovernanceFrameworkSectionListRulesResponseItemsEvidenceTypeCategoryValue GovernanceFrameworkSectionListRulesResponseItemsEvidenceType = "categoryValue" )
func (GovernanceFrameworkSectionListRulesResponseItemsEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsEvidenceType) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsFramework ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceFrameworkSectionListRulesResponseItemsFrameworkJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItemsFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar struct {
Type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkSectionListRulesResponseItemsFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType string
const ( GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarTypeEmoji GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType = "emoji" GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarTypeImageURL GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType = "imageUrl" GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarTypeBuiltinImage GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType = "builtinImage" )
func (GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsFrameworksAvatarType) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsResult ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSectionListRulesResponseItemsResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceFrameworkSectionListRulesResponseItemsResultJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItemsResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsResult) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus `json:"status"`
JSON governanceFrameworkSectionListRulesResponseItemsResultsBlockedByJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusRunning GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "running" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusPassing GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "passing" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusFailing GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "failing" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusSkipped GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "skipped" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusError GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "error" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusPending GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "pending" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatusDueSoon GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus = "due_soon" )
func (GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsResultsBlockedByStatus) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus `json:"status"`
JSON governanceFrameworkSectionListRulesResponseItemsResultsBlockingJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusRunning GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "running" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusPassing GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "passing" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusFailing GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "failing" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusSkipped GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "skipped" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusError GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "error" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusPending GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "pending" GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatusDueSoon GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus = "due_soon" )
func (GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsResultsBlockingStatus) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsResultsStatus ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSectionListRulesResponseItemsResultsStatusRunning GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "running" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusPassing GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "passing" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusFailing GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "failing" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusSkipped GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "skipped" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusError GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "error" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusPending GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "pending" GovernanceFrameworkSectionListRulesResponseItemsResultsStatusDueSoon GovernanceFrameworkSectionListRulesResponseItemsResultsStatus = "due_soon" )
func (GovernanceFrameworkSectionListRulesResponseItemsResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsResultsStatus) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsResultsSummary ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceFrameworkSectionListRulesResponseItemsResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceFrameworkSectionListRulesResponseItemsResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsScope ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkSectionListRulesResponseItemsScopeProject GovernanceFrameworkSectionListRulesResponseItemsScope = "project" GovernanceFrameworkSectionListRulesResponseItemsScopeWorkspace GovernanceFrameworkSectionListRulesResponseItemsScope = "workspace" )
func (GovernanceFrameworkSectionListRulesResponseItemsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsScope) IsKnown() bool
type GovernanceFrameworkSectionListRulesResponseItemsTag ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceFrameworkSectionListRulesResponseItemsTagJSON `json:"-"`
}
func (*GovernanceFrameworkSectionListRulesResponseItemsTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionListRulesResponseItemsTag) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSectionListRulesResponseItemsType ¶ added in v0.10.0
type GovernanceFrameworkSectionListRulesResponseItemsType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkSectionListRulesResponseItemsTypePlatform GovernanceFrameworkSectionListRulesResponseItemsType = "platform" GovernanceFrameworkSectionListRulesResponseItemsTypeEvidence GovernanceFrameworkSectionListRulesResponseItemsType = "evidence" )
func (GovernanceFrameworkSectionListRulesResponseItemsType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSectionListRulesResponseItemsType) IsKnown() bool
type GovernanceFrameworkSectionService ¶ added in v0.10.0
type GovernanceFrameworkSectionService struct {
Options []option.RequestOption
}
GovernanceFrameworkSectionService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceFrameworkSectionService method instead.
func NewGovernanceFrameworkSectionService ¶ added in v0.10.0
func NewGovernanceFrameworkSectionService(opts ...option.RequestOption) (r *GovernanceFrameworkSectionService)
NewGovernanceFrameworkSectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceFrameworkSectionService) ListRules ¶ added in v0.10.0
func (r *GovernanceFrameworkSectionService) ListRules(ctx context.Context, frameworkID string, sectionID string, query GovernanceFrameworkSectionListRulesParams, opts ...option.RequestOption) (res *GovernanceFrameworkSectionListRulesResponse, err error)
List the rules mapped to a section of a framework document.
Pass `includeSubsectionRules=true` to also return the rules mapped to the section's subsections, which is how you get every rule covering a requirement and everything under it.
type GovernanceFrameworkService ¶ added in v0.10.0
type GovernanceFrameworkService struct {
Options []option.RequestOption
Documents *GovernanceFrameworkDocumentService
Sections *GovernanceFrameworkSectionService
Subsections *GovernanceFrameworkSubsectionService
}
GovernanceFrameworkService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceFrameworkService method instead.
func NewGovernanceFrameworkService ¶ added in v0.10.0
func NewGovernanceFrameworkService(opts ...option.RequestOption) (r *GovernanceFrameworkService)
NewGovernanceFrameworkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceFrameworkService) Export ¶ added in v0.10.0
func (r *GovernanceFrameworkService) Export(ctx context.Context, frameworkID string, body GovernanceFrameworkExportParams, opts ...option.RequestOption) (res *GovernanceFrameworkExportResponse, err error)
Export a framework's evidence and progress as an audit-ready zip archive.
The archive holds every evidence file uploaded against the framework's evidence-based rules, a markdown report of the framework's progress and the status of all its rules (broken down by documentation section when the framework has documents), and CSV manifests of rules and evidence with SHA-256 checksums.
Send `projectId` to export one project's compliance with the framework. Omit it for the workspace-wide view across every project in the framework, including workspace-scoped rules.
The export runs as a background task, so this returns `202` immediately. To collect the archive:
- Poll `GET /background-tasks/{taskId}` with the returned `taskResultId` until `complete` is `true`.
- Read `outputs.storageUri` off that task.
- Exchange it for a download link at `GET /storage/presigned-url?storageUri=<uri>`.
Rate limited to 2 requests per minute per framework. Asking for an export while an identical one is still queued returns that task rather than starting a second one.
func (*GovernanceFrameworkService) Get ¶ added in v0.10.0
func (r *GovernanceFrameworkService) Get(ctx context.Context, frameworkID string, opts ...option.RequestOption) (res *GovernanceFrameworkGetResponse, err error)
Retrieve a governance framework by its id.
func (*GovernanceFrameworkService) List ¶ added in v0.10.0
func (r *GovernanceFrameworkService) List(ctx context.Context, workspaceID string, query GovernanceFrameworkListParams, opts ...option.RequestOption) (res *GovernanceFrameworkListResponse, err error)
List the governance frameworks in a workspace.
A framework is a set of rules -- drawn from a regulation, a standard, or your own internal policy -- that Openlayer tracks compliance against. Use this endpoint to find the framework you want to report on, then read its rules and rule results.
func (*GovernanceFrameworkService) ListProjectRuleStats ¶ added in v0.10.0
func (r *GovernanceFrameworkService) ListProjectRuleStats(ctx context.Context, frameworkID string, query GovernanceFrameworkListProjectRuleStatsParams, opts ...option.RequestOption) (res *GovernanceFrameworkListProjectRuleStatsResponse, err error)
Get a compliance roll-up for a framework, one row per project it applies to.
Each row counts the project's rule results by status, so you can report on where a framework is complete and where it is not without fetching every individual rule result.
func (*GovernanceFrameworkService) ListProjects ¶ added in v0.10.0
func (r *GovernanceFrameworkService) ListProjects(ctx context.Context, frameworkID string, query GovernanceFrameworkListProjectsParams, opts ...option.RequestOption) (res *GovernanceFrameworkListProjectsResponse, err error)
List the projects a framework applies to.
Which projects a framework covers is determined by its `projectSelector`. A framework with an empty selector applies to every project in the workspace.
func (*GovernanceFrameworkService) ListRules ¶ added in v0.10.0
func (r *GovernanceFrameworkService) ListRules(ctx context.Context, frameworkID string, query GovernanceFrameworkListRulesParams, opts ...option.RequestOption) (res *GovernanceFrameworkListRulesResponse, err error)
List the rules that belong to a framework.
To read the compliance status of these rules, use [List rule results](/api-reference/rest/governance/list-rule-results) with the `frameworkId` filter, or fetch the results of an individual rule.
func (*GovernanceFrameworkService) New ¶ added in v0.10.0
func (r *GovernanceFrameworkService) New(ctx context.Context, workspaceID string, body GovernanceFrameworkNewParams, opts ...option.RequestOption) (res *GovernanceFrameworkNewResponse, err error)
Create a custom governance framework in a workspace.
Use this to track compliance against an internal policy, or against a standard Openlayer does not ship as a built-in framework. A new framework starts with no rules -- add them from the Openlayer app, or map an existing rule to it.
A framework is created disabled unless you pass `enabled: true`. While it is disabled its rules are not evaluated and do not count towards compliance.
func (*GovernanceFrameworkService) Update ¶ added in v0.10.0
func (r *GovernanceFrameworkService) Update(ctx context.Context, frameworkID string, body GovernanceFrameworkUpdateParams, opts ...option.RequestOption) (res *GovernanceFrameworkUpdateResponse, err error)
Update a governance framework.
The most common use is activating or deactivating a framework for the workspace by setting `enabled`. Rules of a disabled framework are not evaluated and do not count towards compliance.
Frameworks that ship with Openlayer report `immutable: true`. For those, only `enabled`, `tags`, and `projectSelector` can be changed -- their name and definition are managed by Openlayer.
Only the fields you send are changed.
type GovernanceFrameworkSubsectionListRulesParams ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesParams struct {
// Whether to include each rule's results inline, in a `results` array.
IncludeResults param.Field[bool] `query:"includeResults"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
// Only include items whose rule result has this compliance status.
Status param.Field[GovernanceFrameworkSubsectionListRulesParamsStatus] `query:"status"`
}
func (GovernanceFrameworkSubsectionListRulesParams) URLQuery ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceFrameworkSubsectionListRulesParams's query parameters as `url.Values`.
type GovernanceFrameworkSubsectionListRulesParamsStatus ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesParamsStatus string
Only include items whose rule result has this compliance status.
const ( GovernanceFrameworkSubsectionListRulesParamsStatusRunning GovernanceFrameworkSubsectionListRulesParamsStatus = "running" GovernanceFrameworkSubsectionListRulesParamsStatusPassing GovernanceFrameworkSubsectionListRulesParamsStatus = "passing" GovernanceFrameworkSubsectionListRulesParamsStatusFailing GovernanceFrameworkSubsectionListRulesParamsStatus = "failing" GovernanceFrameworkSubsectionListRulesParamsStatusSkipped GovernanceFrameworkSubsectionListRulesParamsStatus = "skipped" GovernanceFrameworkSubsectionListRulesParamsStatusError GovernanceFrameworkSubsectionListRulesParamsStatus = "error" GovernanceFrameworkSubsectionListRulesParamsStatusPending GovernanceFrameworkSubsectionListRulesParamsStatus = "pending" GovernanceFrameworkSubsectionListRulesParamsStatusDueSoon GovernanceFrameworkSubsectionListRulesParamsStatus = "due_soon" )
func (GovernanceFrameworkSubsectionListRulesParamsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesParamsStatus) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponse ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponse struct {
Items []GovernanceFrameworkSubsectionListRulesResponseItem `json:"items" api:"required"`
JSON governanceFrameworkSubsectionListRulesResponseJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItem ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItem struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceFrameworkSubsectionListRulesResponseItemsScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceFrameworkSubsectionListRulesResponseItemsType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceFrameworkSubsectionListRulesResponseItemsFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceFrameworkSubsectionListRulesResponseItemsResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceFrameworkSubsectionListRulesResponseItemsTag `json:"tags" api:"nullable"`
JSON governanceFrameworkSubsectionListRulesResponseItemJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceTypeDocument GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType = "document" GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceTypeText GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType = "text" GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceTypeURL GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType = "url" GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceTypeCategoryValue GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType = "categoryValue" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsEvidenceType) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsFramework ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceFrameworkSubsectionListRulesResponseItemsFrameworkJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItemsFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar struct {
Type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType string
const ( GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarTypeEmoji GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType = "emoji" GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarTypeImageURL GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType = "imageUrl" GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarTypeBuiltinImage GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType = "builtinImage" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsFrameworksAvatarType) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsResult ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceFrameworkSubsectionListRulesResponseItemsResultJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItemsResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsResult) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus `json:"status"`
JSON governanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusRunning GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "running" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusPassing GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "passing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusFailing GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "failing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusSkipped GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "skipped" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusError GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "error" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusPending GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "pending" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatusDueSoon GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus = "due_soon" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockedByStatus) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus `json:"status"`
JSON governanceFrameworkSubsectionListRulesResponseItemsResultsBlockingJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusRunning GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "running" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusPassing GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "passing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusFailing GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "failing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusSkipped GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "skipped" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusError GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "error" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusPending GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "pending" GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatusDueSoon GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus = "due_soon" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsResultsBlockingStatus) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusRunning GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "running" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusPassing GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "passing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusFailing GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "failing" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusSkipped GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "skipped" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusError GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "error" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusPending GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "pending" GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatusDueSoon GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus = "due_soon" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsResultsStatus) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceFrameworkSubsectionListRulesResponseItemsResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsScope ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsScopeProject GovernanceFrameworkSubsectionListRulesResponseItemsScope = "project" GovernanceFrameworkSubsectionListRulesResponseItemsScopeWorkspace GovernanceFrameworkSubsectionListRulesResponseItemsScope = "workspace" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsScope) IsKnown() bool
type GovernanceFrameworkSubsectionListRulesResponseItemsTag ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceFrameworkSubsectionListRulesResponseItemsTagJSON `json:"-"`
}
func (*GovernanceFrameworkSubsectionListRulesResponseItemsTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionListRulesResponseItemsTag) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkSubsectionListRulesResponseItemsType ¶ added in v0.10.0
type GovernanceFrameworkSubsectionListRulesResponseItemsType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceFrameworkSubsectionListRulesResponseItemsTypePlatform GovernanceFrameworkSubsectionListRulesResponseItemsType = "platform" GovernanceFrameworkSubsectionListRulesResponseItemsTypeEvidence GovernanceFrameworkSubsectionListRulesResponseItemsType = "evidence" )
func (GovernanceFrameworkSubsectionListRulesResponseItemsType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkSubsectionListRulesResponseItemsType) IsKnown() bool
type GovernanceFrameworkSubsectionService ¶ added in v0.10.0
type GovernanceFrameworkSubsectionService struct {
Options []option.RequestOption
}
GovernanceFrameworkSubsectionService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceFrameworkSubsectionService method instead.
func NewGovernanceFrameworkSubsectionService ¶ added in v0.10.0
func NewGovernanceFrameworkSubsectionService(opts ...option.RequestOption) (r *GovernanceFrameworkSubsectionService)
NewGovernanceFrameworkSubsectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceFrameworkSubsectionService) ListRules ¶ added in v0.10.0
func (r *GovernanceFrameworkSubsectionService) ListRules(ctx context.Context, frameworkID string, subsectionID string, query GovernanceFrameworkSubsectionListRulesParams, opts ...option.RequestOption) (res *GovernanceFrameworkSubsectionListRulesResponse, err error)
List the rules mapped to a subsection of a framework document.
A subsection is usually the level at which a standard states an individual requirement, so this is the endpoint to use when you want to show which rules cover a specific clause.
type GovernanceFrameworkUpdateParams ¶ added in v0.10.0
type GovernanceFrameworkUpdateParams struct {
// The icon shown for the framework.
Avatar param.Field[GovernanceFrameworkUpdateParamsAvatar] `json:"avatar"`
// A short description of the framework.
Description param.Field[string] `json:"description"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled param.Field[bool] `json:"enabled"`
// A longer, rich-text description, as a TipTap JSON document.
ExtendedDescription param.Field[map[string]interface{}] `json:"extendedDescription"`
// A link to the external standard or regulation the framework is based on.
Href param.Field[string] `json:"href"`
// The framework name.
Name param.Field[string] `json:"name"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector param.Field[GovernanceFrameworkUpdateParamsProjectSelector] `json:"projectSelector"`
// Free-form labels on the framework.
Tags param.Field[[]string] `json:"tags"`
}
func (GovernanceFrameworkUpdateParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParams) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkUpdateParamsAvatar ¶ added in v0.10.0
type GovernanceFrameworkUpdateParamsAvatar struct {
Type param.Field[GovernanceFrameworkUpdateParamsAvatarType] `json:"type" api:"required"`
Value param.Field[string] `json:"value" api:"required"`
}
The icon shown for the framework.
func (GovernanceFrameworkUpdateParamsAvatar) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParamsAvatar) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkUpdateParamsAvatarType ¶ added in v0.10.0
type GovernanceFrameworkUpdateParamsAvatarType string
const ( GovernanceFrameworkUpdateParamsAvatarTypeEmoji GovernanceFrameworkUpdateParamsAvatarType = "emoji" GovernanceFrameworkUpdateParamsAvatarTypeImageURL GovernanceFrameworkUpdateParamsAvatarType = "imageUrl" GovernanceFrameworkUpdateParamsAvatarTypeBuiltinImage GovernanceFrameworkUpdateParamsAvatarType = "builtinImage" )
func (GovernanceFrameworkUpdateParamsAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParamsAvatarType) IsKnown() bool
type GovernanceFrameworkUpdateParamsProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkUpdateParamsProjectSelector struct {
// Match criteria, ANDed together.
Match param.Field[[]GovernanceFrameworkUpdateParamsProjectSelectorMatch] `json:"match"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (GovernanceFrameworkUpdateParamsProjectSelector) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParamsProjectSelector) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkUpdateParamsProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkUpdateParamsProjectSelectorMatch struct {
// The project property to match against.
Property param.Field[GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty] `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value param.Field[interface{}] `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator param.Field[string] `json:"operator"`
}
func (GovernanceFrameworkUpdateParamsProjectSelectorMatch) MarshalJSON ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParamsProjectSelectorMatch) MarshalJSON() (data []byte, err error)
type GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyTaskType GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "taskType" GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyName GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "name" GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyOwnerID GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkUpdateParamsProjectSelectorMatchPropertyModelTypes GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateParamsProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkUpdateResponse ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponse struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
// Free-form labels on the framework.
Tags []string `json:"tags" api:"required"`
// The id of the workspace the framework belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceFrameworkUpdateResponseAvatar `json:"avatar" api:"nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"nullable"`
// The user who created the framework. `null` for built-in frameworks.
CreatorID string `json:"creatorId" api:"nullable" format:"uuid"`
// A short description of the framework.
Description string `json:"description" api:"nullable"`
// A longer, rich-text description, as a TipTap JSON document.
ExtendedDescription map[string]interface{} `json:"extendedDescription" api:"nullable"`
// A link to the external standard or regulation the framework is based on.
Href string `json:"href" api:"nullable"`
// Whether the framework definition is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// Determines which projects the framework applies to. An empty or `null` `match`
// array applies the framework to every project in the workspace.
ProjectSelector GovernanceFrameworkUpdateResponseProjectSelector `json:"projectSelector" api:"nullable"`
// Compliance roll-up for the framework. Present only on
// `GET /workspaces/{workspaceId}/frameworks` when the request sets
// `includeRuleStats=true`.
RuleStats GovernanceFrameworkUpdateResponseRuleStats `json:"ruleStats"`
JSON governanceFrameworkUpdateResponseJSON `json:"-"`
}
func (*GovernanceFrameworkUpdateResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseAvatar ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseAvatar struct {
Type GovernanceFrameworkUpdateResponseAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceFrameworkUpdateResponseAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceFrameworkUpdateResponseAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseAvatarType ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseAvatarType string
const ( GovernanceFrameworkUpdateResponseAvatarTypeEmoji GovernanceFrameworkUpdateResponseAvatarType = "emoji" GovernanceFrameworkUpdateResponseAvatarTypeImageURL GovernanceFrameworkUpdateResponseAvatarType = "imageUrl" GovernanceFrameworkUpdateResponseAvatarTypeBuiltinImage GovernanceFrameworkUpdateResponseAvatarType = "builtinImage" )
func (GovernanceFrameworkUpdateResponseAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateResponseAvatarType) IsKnown() bool
type GovernanceFrameworkUpdateResponseProjectSelector ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseProjectSelector struct {
// Match criteria, ANDed together.
Match []GovernanceFrameworkUpdateResponseProjectSelectorMatch `json:"match" api:"nullable"`
JSON governanceFrameworkUpdateResponseProjectSelectorJSON `json:"-"`
}
Determines which projects the framework applies to. An empty or `null` `match` array applies the framework to every project in the workspace.
func (*GovernanceFrameworkUpdateResponseProjectSelector) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseProjectSelector) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseProjectSelectorMatch ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseProjectSelectorMatch struct {
// The project property to match against.
Property GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty `json:"property" api:"required"`
// The value to match against. Pass an array to match any of several values, or
// `null` to match projects where the property is unset. Omit it for `exists` and
// `notExists`.
Value interface{} `json:"value" api:"required"`
// How to compare the project property with `value`. One of `equals`, `notEquals`,
// `contains`, `notContains`, `startsWith`, `endsWith`, `in`, `notIn`,
// `greaterThan`, `greaterThanOrEqual`, `lessThan`, `lessThanOrEqual`,
// `equalsIgnoreCase`, `containsIgnoreCase`, `matches`, `exists`, or `notExists`.
Operator string `json:"operator"`
JSON governanceFrameworkUpdateResponseProjectSelectorMatchJSON `json:"-"`
}
func (*GovernanceFrameworkUpdateResponseProjectSelectorMatch) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseProjectSelectorMatch) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty string
The project property to match against.
const ( GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyTaskType GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "taskType" GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyRiskLevel GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "riskLevel" GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyRiskTotalScore GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "riskTotalScore" GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyName GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "name" GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyOwnerID GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "ownerId" GovernanceFrameworkUpdateResponseProjectSelectorMatchPropertyModelTypes GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty = "modelTypes" )
func (GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty) IsKnown ¶ added in v0.10.0
func (r GovernanceFrameworkUpdateResponseProjectSelectorMatchProperty) IsKnown() bool
type GovernanceFrameworkUpdateResponseRuleStats ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseRuleStats struct {
// How many of the framework's projects fall into each completion band, where a
// project's completion is the share of its rule results that are passing or
// skipped. Projects with no evaluated results count as `low`.
//
// Zeroed when the request carries `projectId`: the bands compare a framework's
// projects against each other, which says nothing about a single project.
ProjectCompletion GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion `json:"projectCompletion" api:"required"`
// Rule result counts by status for this framework, matching what
// `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a
// single project when the request also carries `projectId`.
RuleResults GovernanceFrameworkUpdateResponseRuleStatsRuleResults `json:"ruleResults" api:"required"`
JSON governanceFrameworkUpdateResponseRuleStatsJSON `json:"-"`
}
Compliance roll-up for the framework. Present only on `GET /workspaces/{workspaceId}/frameworks` when the request sets `includeRuleStats=true`.
func (*GovernanceFrameworkUpdateResponseRuleStats) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseRuleStats) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion struct {
// Projects at 80% completion or above.
High int64 `json:"high" api:"required"`
// Projects below 20% completion.
Low int64 `json:"low" api:"required"`
// Projects at or above 20% but below 80% completion.
Mid int64 `json:"mid" api:"required"`
JSON governanceFrameworkUpdateResponseRuleStatsProjectCompletionJSON `json:"-"`
}
How many of the framework's projects fall into each completion band, where a project's completion is the share of its rule results that are passing or skipped. Projects with no evaluated results count as `low`.
Zeroed when the request carries `projectId`: the bands compare a framework's projects against each other, which says nothing about a single project.
func (*GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseRuleStatsProjectCompletion) UnmarshalJSON(data []byte) (err error)
type GovernanceFrameworkUpdateResponseRuleStatsRuleResults ¶ added in v0.10.0
type GovernanceFrameworkUpdateResponseRuleStatsRuleResults struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceFrameworkUpdateResponseRuleStatsRuleResultsJSON `json:"-"`
}
Rule result counts by status for this framework, matching what `/workspaces/{workspaceId}/rule-stats?frameworkId=<id>` reports. Narrowed to a single project when the request also carries `projectId`.
func (*GovernanceFrameworkUpdateResponseRuleStatsRuleResults) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceFrameworkUpdateResponseRuleStatsRuleResults) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponse ¶ added in v0.10.0
type GovernanceRuleGetResponse struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceRuleGetResponseScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceRuleGetResponseType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceRuleGetResponseEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceRuleGetResponseFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceRuleGetResponseResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceRuleGetResponseResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceRuleGetResponseTag `json:"tags" api:"nullable"`
JSON governanceRuleGetResponseJSON `json:"-"`
}
func (*GovernanceRuleGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseEvidenceType ¶ added in v0.10.0
type GovernanceRuleGetResponseEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceRuleGetResponseEvidenceTypeDocument GovernanceRuleGetResponseEvidenceType = "document" GovernanceRuleGetResponseEvidenceTypeText GovernanceRuleGetResponseEvidenceType = "text" GovernanceRuleGetResponseEvidenceTypeURL GovernanceRuleGetResponseEvidenceType = "url" GovernanceRuleGetResponseEvidenceTypeCategoryValue GovernanceRuleGetResponseEvidenceType = "categoryValue" )
func (GovernanceRuleGetResponseEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseEvidenceType) IsKnown() bool
type GovernanceRuleGetResponseFramework ¶ added in v0.10.0
type GovernanceRuleGetResponseFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceRuleGetResponseFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceRuleGetResponseFrameworkJSON `json:"-"`
}
func (*GovernanceRuleGetResponseFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseFrameworksAvatar ¶ added in v0.10.0
type GovernanceRuleGetResponseFrameworksAvatar struct {
Type GovernanceRuleGetResponseFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceRuleGetResponseFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceRuleGetResponseFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseFrameworksAvatarType ¶ added in v0.10.0
type GovernanceRuleGetResponseFrameworksAvatarType string
const ( GovernanceRuleGetResponseFrameworksAvatarTypeEmoji GovernanceRuleGetResponseFrameworksAvatarType = "emoji" GovernanceRuleGetResponseFrameworksAvatarTypeImageURL GovernanceRuleGetResponseFrameworksAvatarType = "imageUrl" GovernanceRuleGetResponseFrameworksAvatarTypeBuiltinImage GovernanceRuleGetResponseFrameworksAvatarType = "builtinImage" )
func (GovernanceRuleGetResponseFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseFrameworksAvatarType) IsKnown() bool
type GovernanceRuleGetResponseResult ¶ added in v0.10.0
type GovernanceRuleGetResponseResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleGetResponseResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleGetResponseResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleGetResponseResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleGetResponseResultJSON `json:"-"`
}
func (*GovernanceRuleGetResponseResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseResult) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseResultsBlockedBy ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleGetResponseResultsBlockedByStatus `json:"status"`
JSON governanceRuleGetResponseResultsBlockedByJSON `json:"-"`
}
func (*GovernanceRuleGetResponseResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleGetResponseResultsBlockedByStatusRunning GovernanceRuleGetResponseResultsBlockedByStatus = "running" GovernanceRuleGetResponseResultsBlockedByStatusPassing GovernanceRuleGetResponseResultsBlockedByStatus = "passing" GovernanceRuleGetResponseResultsBlockedByStatusFailing GovernanceRuleGetResponseResultsBlockedByStatus = "failing" GovernanceRuleGetResponseResultsBlockedByStatusSkipped GovernanceRuleGetResponseResultsBlockedByStatus = "skipped" GovernanceRuleGetResponseResultsBlockedByStatusError GovernanceRuleGetResponseResultsBlockedByStatus = "error" GovernanceRuleGetResponseResultsBlockedByStatusPending GovernanceRuleGetResponseResultsBlockedByStatus = "pending" GovernanceRuleGetResponseResultsBlockedByStatusDueSoon GovernanceRuleGetResponseResultsBlockedByStatus = "due_soon" )
func (GovernanceRuleGetResponseResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseResultsBlockedByStatus) IsKnown() bool
type GovernanceRuleGetResponseResultsBlocking ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleGetResponseResultsBlockingStatus `json:"status"`
JSON governanceRuleGetResponseResultsBlockingJSON `json:"-"`
}
func (*GovernanceRuleGetResponseResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseResultsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleGetResponseResultsBlockingStatusRunning GovernanceRuleGetResponseResultsBlockingStatus = "running" GovernanceRuleGetResponseResultsBlockingStatusPassing GovernanceRuleGetResponseResultsBlockingStatus = "passing" GovernanceRuleGetResponseResultsBlockingStatusFailing GovernanceRuleGetResponseResultsBlockingStatus = "failing" GovernanceRuleGetResponseResultsBlockingStatusSkipped GovernanceRuleGetResponseResultsBlockingStatus = "skipped" GovernanceRuleGetResponseResultsBlockingStatusError GovernanceRuleGetResponseResultsBlockingStatus = "error" GovernanceRuleGetResponseResultsBlockingStatusPending GovernanceRuleGetResponseResultsBlockingStatus = "pending" GovernanceRuleGetResponseResultsBlockingStatusDueSoon GovernanceRuleGetResponseResultsBlockingStatus = "due_soon" )
func (GovernanceRuleGetResponseResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseResultsBlockingStatus) IsKnown() bool
type GovernanceRuleGetResponseResultsStatus ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleGetResponseResultsStatusRunning GovernanceRuleGetResponseResultsStatus = "running" GovernanceRuleGetResponseResultsStatusPassing GovernanceRuleGetResponseResultsStatus = "passing" GovernanceRuleGetResponseResultsStatusFailing GovernanceRuleGetResponseResultsStatus = "failing" GovernanceRuleGetResponseResultsStatusSkipped GovernanceRuleGetResponseResultsStatus = "skipped" GovernanceRuleGetResponseResultsStatusError GovernanceRuleGetResponseResultsStatus = "error" GovernanceRuleGetResponseResultsStatusPending GovernanceRuleGetResponseResultsStatus = "pending" GovernanceRuleGetResponseResultsStatusDueSoon GovernanceRuleGetResponseResultsStatus = "due_soon" )
func (GovernanceRuleGetResponseResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseResultsStatus) IsKnown() bool
type GovernanceRuleGetResponseResultsSummary ¶ added in v0.10.0
type GovernanceRuleGetResponseResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceRuleGetResponseResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceRuleGetResponseResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseScope ¶ added in v0.10.0
type GovernanceRuleGetResponseScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceRuleGetResponseScopeProject GovernanceRuleGetResponseScope = "project" GovernanceRuleGetResponseScopeWorkspace GovernanceRuleGetResponseScope = "workspace" )
func (GovernanceRuleGetResponseScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseScope) IsKnown() bool
type GovernanceRuleGetResponseTag ¶ added in v0.10.0
type GovernanceRuleGetResponseTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceRuleGetResponseTagJSON `json:"-"`
}
func (*GovernanceRuleGetResponseTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleGetResponseTag) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleGetResponseType ¶ added in v0.10.0
type GovernanceRuleGetResponseType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceRuleGetResponseTypePlatform GovernanceRuleGetResponseType = "platform" GovernanceRuleGetResponseTypeEvidence GovernanceRuleGetResponseType = "evidence" )
func (GovernanceRuleGetResponseType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleGetResponseType) IsKnown() bool
type GovernanceRuleListParams ¶ added in v0.10.0
type GovernanceRuleListParams struct {
// Whether to sort in ascending order.
Asc param.Field[bool] `query:"asc"`
// Only include rules assigned to this user.
AssigneeID param.Field[string] `query:"assigneeId" format:"uuid"`
// Only include rules that are deactivated (or active).
Deactivated param.Field[bool] `query:"deactivated"`
// Only include items belonging to at least one enabled framework.
EnabledFrameworkOnly param.Field[bool] `query:"enabledFrameworkOnly"`
// Only include items belonging to this framework.
FrameworkID param.Field[string] `query:"frameworkId" format:"uuid"`
// Only include rules in one bucket of the compliance workflow. `open` covers rules
// that still need attention, `done` covers rules that are fully satisfied, and
// `excluded` covers rules that have been deactivated.
Group param.Field[GovernanceRuleListParamsGroup] `query:"group"`
// Whether to include each rule's results inline, in a `results` array.
IncludeResults param.Field[bool] `query:"includeResults"`
// Whether to include rules that are not part of any framework.
IncludeUnframed param.Field[bool] `query:"includeUnframed"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
// Only include rules with this scope.
Scope param.Field[GovernanceRuleListParamsScope] `query:"scope"`
// Filter by a free-text search over names and descriptions.
SearchQuery param.Field[string] `query:"searchQuery"`
// The field to sort on.
SortBy param.Field[GovernanceRuleListParamsSortBy] `query:"sortBy"`
// Only include items whose rule result has this compliance status.
Status param.Field[GovernanceRuleListParamsStatus] `query:"status"`
// Only include rules carrying all of these rule tags. Pass tag ids, which you can
// look up with [List rule tags](/api-reference/rest/governance/list-rule-tags).
Tags param.Field[[]string] `query:"tags" format:"uuid"`
// Only include rules of this type.
Type param.Field[GovernanceRuleListParamsType] `query:"type"`
}
func (GovernanceRuleListParams) URLQuery ¶ added in v0.10.0
func (r GovernanceRuleListParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceRuleListParams's query parameters as `url.Values`.
type GovernanceRuleListParamsGroup ¶ added in v0.10.0
type GovernanceRuleListParamsGroup string
Only include rules in one bucket of the compliance workflow. `open` covers rules that still need attention, `done` covers rules that are fully satisfied, and `excluded` covers rules that have been deactivated.
const ( GovernanceRuleListParamsGroupOpen GovernanceRuleListParamsGroup = "open" GovernanceRuleListParamsGroupExcluded GovernanceRuleListParamsGroup = "excluded" GovernanceRuleListParamsGroupDone GovernanceRuleListParamsGroup = "done" )
func (GovernanceRuleListParamsGroup) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListParamsGroup) IsKnown() bool
type GovernanceRuleListParamsScope ¶ added in v0.10.0
type GovernanceRuleListParamsScope string
Only include rules with this scope.
const ( GovernanceRuleListParamsScopeProject GovernanceRuleListParamsScope = "project" GovernanceRuleListParamsScopeWorkspace GovernanceRuleListParamsScope = "workspace" )
func (GovernanceRuleListParamsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListParamsScope) IsKnown() bool
type GovernanceRuleListParamsSortBy ¶ added in v0.10.0
type GovernanceRuleListParamsSortBy string
The field to sort on.
const ( GovernanceRuleListParamsSortByName GovernanceRuleListParamsSortBy = "name" GovernanceRuleListParamsSortByStatus GovernanceRuleListParamsSortBy = "status" GovernanceRuleListParamsSortByFrameworks GovernanceRuleListParamsSortBy = "frameworks" GovernanceRuleListParamsSortByScope GovernanceRuleListParamsSortBy = "scope" GovernanceRuleListParamsSortByDateCreated GovernanceRuleListParamsSortBy = "dateCreated" )
func (GovernanceRuleListParamsSortBy) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListParamsSortBy) IsKnown() bool
type GovernanceRuleListParamsStatus ¶ added in v0.10.0
type GovernanceRuleListParamsStatus string
Only include items whose rule result has this compliance status.
const ( GovernanceRuleListParamsStatusRunning GovernanceRuleListParamsStatus = "running" GovernanceRuleListParamsStatusPassing GovernanceRuleListParamsStatus = "passing" GovernanceRuleListParamsStatusFailing GovernanceRuleListParamsStatus = "failing" GovernanceRuleListParamsStatusSkipped GovernanceRuleListParamsStatus = "skipped" GovernanceRuleListParamsStatusError GovernanceRuleListParamsStatus = "error" GovernanceRuleListParamsStatusPending GovernanceRuleListParamsStatus = "pending" GovernanceRuleListParamsStatusDueSoon GovernanceRuleListParamsStatus = "due_soon" )
func (GovernanceRuleListParamsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListParamsStatus) IsKnown() bool
type GovernanceRuleListParamsType ¶ added in v0.10.0
type GovernanceRuleListParamsType string
Only include rules of this type.
const ( GovernanceRuleListParamsTypePlatform GovernanceRuleListParamsType = "platform" GovernanceRuleListParamsTypeEvidence GovernanceRuleListParamsType = "evidence" )
func (GovernanceRuleListParamsType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListParamsType) IsKnown() bool
type GovernanceRuleListResponse ¶ added in v0.10.0
type GovernanceRuleListResponse struct {
Items []GovernanceRuleListResponseItem `json:"items" api:"required"`
JSON governanceRuleListResponseJSON `json:"-"`
}
func (*GovernanceRuleListResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItem ¶ added in v0.10.0
type GovernanceRuleListResponseItem struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceRuleListResponseItemsScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceRuleListResponseItemsType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceRuleListResponseItemsEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceRuleListResponseItemsFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceRuleListResponseItemsResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceRuleListResponseItemsResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceRuleListResponseItemsTag `json:"tags" api:"nullable"`
JSON governanceRuleListResponseItemJSON `json:"-"`
}
func (*GovernanceRuleListResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsEvidenceType ¶ added in v0.10.0
type GovernanceRuleListResponseItemsEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceRuleListResponseItemsEvidenceTypeDocument GovernanceRuleListResponseItemsEvidenceType = "document" GovernanceRuleListResponseItemsEvidenceTypeText GovernanceRuleListResponseItemsEvidenceType = "text" GovernanceRuleListResponseItemsEvidenceTypeURL GovernanceRuleListResponseItemsEvidenceType = "url" GovernanceRuleListResponseItemsEvidenceTypeCategoryValue GovernanceRuleListResponseItemsEvidenceType = "categoryValue" )
func (GovernanceRuleListResponseItemsEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsEvidenceType) IsKnown() bool
type GovernanceRuleListResponseItemsFramework ¶ added in v0.10.0
type GovernanceRuleListResponseItemsFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceRuleListResponseItemsFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceRuleListResponseItemsFrameworkJSON `json:"-"`
}
func (*GovernanceRuleListResponseItemsFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsFrameworksAvatar ¶ added in v0.10.0
type GovernanceRuleListResponseItemsFrameworksAvatar struct {
Type GovernanceRuleListResponseItemsFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceRuleListResponseItemsFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceRuleListResponseItemsFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsFrameworksAvatarType ¶ added in v0.10.0
type GovernanceRuleListResponseItemsFrameworksAvatarType string
const ( GovernanceRuleListResponseItemsFrameworksAvatarTypeEmoji GovernanceRuleListResponseItemsFrameworksAvatarType = "emoji" GovernanceRuleListResponseItemsFrameworksAvatarTypeImageURL GovernanceRuleListResponseItemsFrameworksAvatarType = "imageUrl" GovernanceRuleListResponseItemsFrameworksAvatarTypeBuiltinImage GovernanceRuleListResponseItemsFrameworksAvatarType = "builtinImage" )
func (GovernanceRuleListResponseItemsFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsFrameworksAvatarType) IsKnown() bool
type GovernanceRuleListResponseItemsResult ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleListResponseItemsResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleListResponseItemsResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleListResponseItemsResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleListResponseItemsResultJSON `json:"-"`
}
func (*GovernanceRuleListResponseItemsResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsResult) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsResultsBlockedBy ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleListResponseItemsResultsBlockedByStatus `json:"status"`
JSON governanceRuleListResponseItemsResultsBlockedByJSON `json:"-"`
}
func (*GovernanceRuleListResponseItemsResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleListResponseItemsResultsBlockedByStatusRunning GovernanceRuleListResponseItemsResultsBlockedByStatus = "running" GovernanceRuleListResponseItemsResultsBlockedByStatusPassing GovernanceRuleListResponseItemsResultsBlockedByStatus = "passing" GovernanceRuleListResponseItemsResultsBlockedByStatusFailing GovernanceRuleListResponseItemsResultsBlockedByStatus = "failing" GovernanceRuleListResponseItemsResultsBlockedByStatusSkipped GovernanceRuleListResponseItemsResultsBlockedByStatus = "skipped" GovernanceRuleListResponseItemsResultsBlockedByStatusError GovernanceRuleListResponseItemsResultsBlockedByStatus = "error" GovernanceRuleListResponseItemsResultsBlockedByStatusPending GovernanceRuleListResponseItemsResultsBlockedByStatus = "pending" GovernanceRuleListResponseItemsResultsBlockedByStatusDueSoon GovernanceRuleListResponseItemsResultsBlockedByStatus = "due_soon" )
func (GovernanceRuleListResponseItemsResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsResultsBlockedByStatus) IsKnown() bool
type GovernanceRuleListResponseItemsResultsBlocking ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleListResponseItemsResultsBlockingStatus `json:"status"`
JSON governanceRuleListResponseItemsResultsBlockingJSON `json:"-"`
}
func (*GovernanceRuleListResponseItemsResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsResultsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleListResponseItemsResultsBlockingStatusRunning GovernanceRuleListResponseItemsResultsBlockingStatus = "running" GovernanceRuleListResponseItemsResultsBlockingStatusPassing GovernanceRuleListResponseItemsResultsBlockingStatus = "passing" GovernanceRuleListResponseItemsResultsBlockingStatusFailing GovernanceRuleListResponseItemsResultsBlockingStatus = "failing" GovernanceRuleListResponseItemsResultsBlockingStatusSkipped GovernanceRuleListResponseItemsResultsBlockingStatus = "skipped" GovernanceRuleListResponseItemsResultsBlockingStatusError GovernanceRuleListResponseItemsResultsBlockingStatus = "error" GovernanceRuleListResponseItemsResultsBlockingStatusPending GovernanceRuleListResponseItemsResultsBlockingStatus = "pending" GovernanceRuleListResponseItemsResultsBlockingStatusDueSoon GovernanceRuleListResponseItemsResultsBlockingStatus = "due_soon" )
func (GovernanceRuleListResponseItemsResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsResultsBlockingStatus) IsKnown() bool
type GovernanceRuleListResponseItemsResultsStatus ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleListResponseItemsResultsStatusRunning GovernanceRuleListResponseItemsResultsStatus = "running" GovernanceRuleListResponseItemsResultsStatusPassing GovernanceRuleListResponseItemsResultsStatus = "passing" GovernanceRuleListResponseItemsResultsStatusFailing GovernanceRuleListResponseItemsResultsStatus = "failing" GovernanceRuleListResponseItemsResultsStatusSkipped GovernanceRuleListResponseItemsResultsStatus = "skipped" GovernanceRuleListResponseItemsResultsStatusError GovernanceRuleListResponseItemsResultsStatus = "error" GovernanceRuleListResponseItemsResultsStatusPending GovernanceRuleListResponseItemsResultsStatus = "pending" GovernanceRuleListResponseItemsResultsStatusDueSoon GovernanceRuleListResponseItemsResultsStatus = "due_soon" )
func (GovernanceRuleListResponseItemsResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsResultsStatus) IsKnown() bool
type GovernanceRuleListResponseItemsResultsSummary ¶ added in v0.10.0
type GovernanceRuleListResponseItemsResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceRuleListResponseItemsResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceRuleListResponseItemsResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsScope ¶ added in v0.10.0
type GovernanceRuleListResponseItemsScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceRuleListResponseItemsScopeProject GovernanceRuleListResponseItemsScope = "project" GovernanceRuleListResponseItemsScopeWorkspace GovernanceRuleListResponseItemsScope = "workspace" )
func (GovernanceRuleListResponseItemsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsScope) IsKnown() bool
type GovernanceRuleListResponseItemsTag ¶ added in v0.10.0
type GovernanceRuleListResponseItemsTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceRuleListResponseItemsTagJSON `json:"-"`
}
func (*GovernanceRuleListResponseItemsTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleListResponseItemsTag) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleListResponseItemsType ¶ added in v0.10.0
type GovernanceRuleListResponseItemsType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceRuleListResponseItemsTypePlatform GovernanceRuleListResponseItemsType = "platform" GovernanceRuleListResponseItemsTypeEvidence GovernanceRuleListResponseItemsType = "evidence" )
func (GovernanceRuleListResponseItemsType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleListResponseItemsType) IsKnown() bool
type GovernanceRuleNewParams ¶ added in v0.10.0
type GovernanceRuleNewParams struct {
// The rule name.
Name param.Field[string] `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope param.Field[GovernanceRuleNewParamsScope] `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type param.Field[GovernanceRuleNewParamsType] `json:"type" api:"required"`
// The user responsible for satisfying the rule.
AssigneeID param.Field[string] `json:"assigneeId" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams param.Field[map[string]interface{}] `json:"automationParams"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType param.Field[string] `json:"automationType"`
// Whether the rule is excluded from compliance calculations.
Deactivated param.Field[bool] `json:"deactivated"`
// What the rule requires.
Description param.Field[string] `json:"description"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType param.Field[GovernanceRuleNewParamsEvidenceType] `json:"evidenceType"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays param.Field[int64] `json:"renewalCadenceDays"`
// The ids of the rule tags to associate with the rule. Replaces the rule's tags.
// Read them back from `tags`, and list the tags available in the workspace with
// `GET /workspaces/{workspaceId}/rule-tags`.
TagIDs param.Field[[]string] `json:"tagIds" format:"uuid"`
}
func (GovernanceRuleNewParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleNewParams) MarshalJSON() (data []byte, err error)
type GovernanceRuleNewParamsEvidenceType ¶ added in v0.10.0
type GovernanceRuleNewParamsEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceRuleNewParamsEvidenceTypeDocument GovernanceRuleNewParamsEvidenceType = "document" GovernanceRuleNewParamsEvidenceTypeText GovernanceRuleNewParamsEvidenceType = "text" GovernanceRuleNewParamsEvidenceTypeURL GovernanceRuleNewParamsEvidenceType = "url" GovernanceRuleNewParamsEvidenceTypeCategoryValue GovernanceRuleNewParamsEvidenceType = "categoryValue" )
func (GovernanceRuleNewParamsEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewParamsEvidenceType) IsKnown() bool
type GovernanceRuleNewParamsScope ¶ added in v0.10.0
type GovernanceRuleNewParamsScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceRuleNewParamsScopeProject GovernanceRuleNewParamsScope = "project" GovernanceRuleNewParamsScopeWorkspace GovernanceRuleNewParamsScope = "workspace" )
func (GovernanceRuleNewParamsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewParamsScope) IsKnown() bool
type GovernanceRuleNewParamsType ¶ added in v0.10.0
type GovernanceRuleNewParamsType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceRuleNewParamsTypePlatform GovernanceRuleNewParamsType = "platform" GovernanceRuleNewParamsTypeEvidence GovernanceRuleNewParamsType = "evidence" )
func (GovernanceRuleNewParamsType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewParamsType) IsKnown() bool
type GovernanceRuleNewResponse ¶ added in v0.10.0
type GovernanceRuleNewResponse struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceRuleNewResponseScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceRuleNewResponseType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceRuleNewResponseEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceRuleNewResponseFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceRuleNewResponseResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceRuleNewResponseResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceRuleNewResponseTag `json:"tags" api:"nullable"`
JSON governanceRuleNewResponseJSON `json:"-"`
}
func (*GovernanceRuleNewResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseEvidenceType ¶ added in v0.10.0
type GovernanceRuleNewResponseEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceRuleNewResponseEvidenceTypeDocument GovernanceRuleNewResponseEvidenceType = "document" GovernanceRuleNewResponseEvidenceTypeText GovernanceRuleNewResponseEvidenceType = "text" GovernanceRuleNewResponseEvidenceTypeURL GovernanceRuleNewResponseEvidenceType = "url" GovernanceRuleNewResponseEvidenceTypeCategoryValue GovernanceRuleNewResponseEvidenceType = "categoryValue" )
func (GovernanceRuleNewResponseEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseEvidenceType) IsKnown() bool
type GovernanceRuleNewResponseFramework ¶ added in v0.10.0
type GovernanceRuleNewResponseFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceRuleNewResponseFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceRuleNewResponseFrameworkJSON `json:"-"`
}
func (*GovernanceRuleNewResponseFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseFrameworksAvatar ¶ added in v0.10.0
type GovernanceRuleNewResponseFrameworksAvatar struct {
Type GovernanceRuleNewResponseFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceRuleNewResponseFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceRuleNewResponseFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseFrameworksAvatarType ¶ added in v0.10.0
type GovernanceRuleNewResponseFrameworksAvatarType string
const ( GovernanceRuleNewResponseFrameworksAvatarTypeEmoji GovernanceRuleNewResponseFrameworksAvatarType = "emoji" GovernanceRuleNewResponseFrameworksAvatarTypeImageURL GovernanceRuleNewResponseFrameworksAvatarType = "imageUrl" GovernanceRuleNewResponseFrameworksAvatarTypeBuiltinImage GovernanceRuleNewResponseFrameworksAvatarType = "builtinImage" )
func (GovernanceRuleNewResponseFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseFrameworksAvatarType) IsKnown() bool
type GovernanceRuleNewResponseResult ¶ added in v0.10.0
type GovernanceRuleNewResponseResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleNewResponseResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleNewResponseResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleNewResponseResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleNewResponseResultJSON `json:"-"`
}
func (*GovernanceRuleNewResponseResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseResult) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseResultsBlockedBy ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleNewResponseResultsBlockedByStatus `json:"status"`
JSON governanceRuleNewResponseResultsBlockedByJSON `json:"-"`
}
func (*GovernanceRuleNewResponseResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleNewResponseResultsBlockedByStatusRunning GovernanceRuleNewResponseResultsBlockedByStatus = "running" GovernanceRuleNewResponseResultsBlockedByStatusPassing GovernanceRuleNewResponseResultsBlockedByStatus = "passing" GovernanceRuleNewResponseResultsBlockedByStatusFailing GovernanceRuleNewResponseResultsBlockedByStatus = "failing" GovernanceRuleNewResponseResultsBlockedByStatusSkipped GovernanceRuleNewResponseResultsBlockedByStatus = "skipped" GovernanceRuleNewResponseResultsBlockedByStatusError GovernanceRuleNewResponseResultsBlockedByStatus = "error" GovernanceRuleNewResponseResultsBlockedByStatusPending GovernanceRuleNewResponseResultsBlockedByStatus = "pending" GovernanceRuleNewResponseResultsBlockedByStatusDueSoon GovernanceRuleNewResponseResultsBlockedByStatus = "due_soon" )
func (GovernanceRuleNewResponseResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseResultsBlockedByStatus) IsKnown() bool
type GovernanceRuleNewResponseResultsBlocking ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleNewResponseResultsBlockingStatus `json:"status"`
JSON governanceRuleNewResponseResultsBlockingJSON `json:"-"`
}
func (*GovernanceRuleNewResponseResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseResultsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleNewResponseResultsBlockingStatusRunning GovernanceRuleNewResponseResultsBlockingStatus = "running" GovernanceRuleNewResponseResultsBlockingStatusPassing GovernanceRuleNewResponseResultsBlockingStatus = "passing" GovernanceRuleNewResponseResultsBlockingStatusFailing GovernanceRuleNewResponseResultsBlockingStatus = "failing" GovernanceRuleNewResponseResultsBlockingStatusSkipped GovernanceRuleNewResponseResultsBlockingStatus = "skipped" GovernanceRuleNewResponseResultsBlockingStatusError GovernanceRuleNewResponseResultsBlockingStatus = "error" GovernanceRuleNewResponseResultsBlockingStatusPending GovernanceRuleNewResponseResultsBlockingStatus = "pending" GovernanceRuleNewResponseResultsBlockingStatusDueSoon GovernanceRuleNewResponseResultsBlockingStatus = "due_soon" )
func (GovernanceRuleNewResponseResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseResultsBlockingStatus) IsKnown() bool
type GovernanceRuleNewResponseResultsStatus ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleNewResponseResultsStatusRunning GovernanceRuleNewResponseResultsStatus = "running" GovernanceRuleNewResponseResultsStatusPassing GovernanceRuleNewResponseResultsStatus = "passing" GovernanceRuleNewResponseResultsStatusFailing GovernanceRuleNewResponseResultsStatus = "failing" GovernanceRuleNewResponseResultsStatusSkipped GovernanceRuleNewResponseResultsStatus = "skipped" GovernanceRuleNewResponseResultsStatusError GovernanceRuleNewResponseResultsStatus = "error" GovernanceRuleNewResponseResultsStatusPending GovernanceRuleNewResponseResultsStatus = "pending" GovernanceRuleNewResponseResultsStatusDueSoon GovernanceRuleNewResponseResultsStatus = "due_soon" )
func (GovernanceRuleNewResponseResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseResultsStatus) IsKnown() bool
type GovernanceRuleNewResponseResultsSummary ¶ added in v0.10.0
type GovernanceRuleNewResponseResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceRuleNewResponseResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceRuleNewResponseResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseScope ¶ added in v0.10.0
type GovernanceRuleNewResponseScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceRuleNewResponseScopeProject GovernanceRuleNewResponseScope = "project" GovernanceRuleNewResponseScopeWorkspace GovernanceRuleNewResponseScope = "workspace" )
func (GovernanceRuleNewResponseScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseScope) IsKnown() bool
type GovernanceRuleNewResponseTag ¶ added in v0.10.0
type GovernanceRuleNewResponseTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceRuleNewResponseTagJSON `json:"-"`
}
func (*GovernanceRuleNewResponseTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleNewResponseTag) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleNewResponseType ¶ added in v0.10.0
type GovernanceRuleNewResponseType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceRuleNewResponseTypePlatform GovernanceRuleNewResponseType = "platform" GovernanceRuleNewResponseTypeEvidence GovernanceRuleNewResponseType = "evidence" )
func (GovernanceRuleNewResponseType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleNewResponseType) IsKnown() bool
type GovernanceRuleResultGetResponse ¶ added in v0.10.0
type GovernanceRuleResultGetResponse struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultGetResponseStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleResultGetResponseBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleResultGetResponseBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleResultGetResponseJSON `json:"-"`
}
func (*GovernanceRuleResultGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultGetResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultGetResponseBlockedBy ¶ added in v0.10.0
type GovernanceRuleResultGetResponseBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultGetResponseBlockedByStatus `json:"status"`
JSON governanceRuleResultGetResponseBlockedByJSON `json:"-"`
}
func (*GovernanceRuleResultGetResponseBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultGetResponseBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultGetResponseBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleResultGetResponseBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultGetResponseBlockedByStatusRunning GovernanceRuleResultGetResponseBlockedByStatus = "running" GovernanceRuleResultGetResponseBlockedByStatusPassing GovernanceRuleResultGetResponseBlockedByStatus = "passing" GovernanceRuleResultGetResponseBlockedByStatusFailing GovernanceRuleResultGetResponseBlockedByStatus = "failing" GovernanceRuleResultGetResponseBlockedByStatusSkipped GovernanceRuleResultGetResponseBlockedByStatus = "skipped" GovernanceRuleResultGetResponseBlockedByStatusError GovernanceRuleResultGetResponseBlockedByStatus = "error" GovernanceRuleResultGetResponseBlockedByStatusPending GovernanceRuleResultGetResponseBlockedByStatus = "pending" GovernanceRuleResultGetResponseBlockedByStatusDueSoon GovernanceRuleResultGetResponseBlockedByStatus = "due_soon" )
func (GovernanceRuleResultGetResponseBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultGetResponseBlockedByStatus) IsKnown() bool
type GovernanceRuleResultGetResponseBlocking ¶ added in v0.10.0
type GovernanceRuleResultGetResponseBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultGetResponseBlockingStatus `json:"status"`
JSON governanceRuleResultGetResponseBlockingJSON `json:"-"`
}
func (*GovernanceRuleResultGetResponseBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultGetResponseBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultGetResponseBlockingStatus ¶ added in v0.10.0
type GovernanceRuleResultGetResponseBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultGetResponseBlockingStatusRunning GovernanceRuleResultGetResponseBlockingStatus = "running" GovernanceRuleResultGetResponseBlockingStatusPassing GovernanceRuleResultGetResponseBlockingStatus = "passing" GovernanceRuleResultGetResponseBlockingStatusFailing GovernanceRuleResultGetResponseBlockingStatus = "failing" GovernanceRuleResultGetResponseBlockingStatusSkipped GovernanceRuleResultGetResponseBlockingStatus = "skipped" GovernanceRuleResultGetResponseBlockingStatusError GovernanceRuleResultGetResponseBlockingStatus = "error" GovernanceRuleResultGetResponseBlockingStatusPending GovernanceRuleResultGetResponseBlockingStatus = "pending" GovernanceRuleResultGetResponseBlockingStatusDueSoon GovernanceRuleResultGetResponseBlockingStatus = "due_soon" )
func (GovernanceRuleResultGetResponseBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultGetResponseBlockingStatus) IsKnown() bool
type GovernanceRuleResultGetResponseStatus ¶ added in v0.10.0
type GovernanceRuleResultGetResponseStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultGetResponseStatusRunning GovernanceRuleResultGetResponseStatus = "running" GovernanceRuleResultGetResponseStatusPassing GovernanceRuleResultGetResponseStatus = "passing" GovernanceRuleResultGetResponseStatusFailing GovernanceRuleResultGetResponseStatus = "failing" GovernanceRuleResultGetResponseStatusSkipped GovernanceRuleResultGetResponseStatus = "skipped" GovernanceRuleResultGetResponseStatusError GovernanceRuleResultGetResponseStatus = "error" GovernanceRuleResultGetResponseStatusPending GovernanceRuleResultGetResponseStatus = "pending" GovernanceRuleResultGetResponseStatusDueSoon GovernanceRuleResultGetResponseStatus = "due_soon" )
func (GovernanceRuleResultGetResponseStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultGetResponseStatus) IsKnown() bool
type GovernanceRuleResultListEvidenceParams ¶ added in v0.10.0
type GovernanceRuleResultListEvidenceParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (GovernanceRuleResultListEvidenceParams) URLQuery ¶ added in v0.10.0
func (r GovernanceRuleResultListEvidenceParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceRuleResultListEvidenceParams's query parameters as `url.Values`.
type GovernanceRuleResultListEvidenceResponse ¶ added in v0.10.0
type GovernanceRuleResultListEvidenceResponse struct {
Items []GovernanceRuleResultListEvidenceResponseItem `json:"items" api:"required"`
JSON governanceRuleResultListEvidenceResponseJSON `json:"-"`
}
func (*GovernanceRuleResultListEvidenceResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListEvidenceResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListEvidenceResponseItem ¶ added in v0.10.0
type GovernanceRuleResultListEvidenceResponseItem struct {
// The evidence id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who attached the evidence.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// A description of what the evidence shows.
Description string `json:"description" api:"nullable"`
// The evidence name.
Name string `json:"name" api:"nullable"`
// Where the uploaded file is stored. Set when the rule's `evidenceType` is
// `document`.
StorageUri string `json:"storageUri" api:"nullable"`
// The evidence text. Set when the rule's `evidenceType` is `text`.
Text string `json:"text" api:"nullable"`
// A link to the evidence. Set when the rule's `evidenceType` is `url`.
URL string `json:"url" api:"nullable" format:"uri"`
JSON governanceRuleResultListEvidenceResponseItemJSON `json:"-"`
}
func (*GovernanceRuleResultListEvidenceResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListEvidenceResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListParams ¶ added in v0.10.0
type GovernanceRuleResultListParams struct {
// Only include items belonging to at least one enabled framework.
EnabledFrameworkOnly param.Field[bool] `query:"enabledFrameworkOnly"`
// Only include items belonging to this framework.
FrameworkID param.Field[string] `query:"frameworkId" format:"uuid"`
// Whether to include rules that are not part of any framework.
IncludeUnframed param.Field[bool] `query:"includeUnframed"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
// Only include results of this rule.
RuleID param.Field[string] `query:"ruleId" format:"uuid"`
// Only include rules with this scope.
Scope param.Field[GovernanceRuleResultListParamsScope] `query:"scope"`
// Filter by a free-text search over names and descriptions.
SearchQuery param.Field[string] `query:"searchQuery"`
// Only include items whose rule result has this compliance status.
Status param.Field[GovernanceRuleResultListParamsStatus] `query:"status"`
// Only include rules of this type.
Type param.Field[GovernanceRuleResultListParamsType] `query:"type"`
}
func (GovernanceRuleResultListParams) URLQuery ¶ added in v0.10.0
func (r GovernanceRuleResultListParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceRuleResultListParams's query parameters as `url.Values`.
type GovernanceRuleResultListParamsScope ¶ added in v0.10.0
type GovernanceRuleResultListParamsScope string
Only include rules with this scope.
const ( GovernanceRuleResultListParamsScopeProject GovernanceRuleResultListParamsScope = "project" GovernanceRuleResultListParamsScopeWorkspace GovernanceRuleResultListParamsScope = "workspace" )
func (GovernanceRuleResultListParamsScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListParamsScope) IsKnown() bool
type GovernanceRuleResultListParamsStatus ¶ added in v0.10.0
type GovernanceRuleResultListParamsStatus string
Only include items whose rule result has this compliance status.
const ( GovernanceRuleResultListParamsStatusRunning GovernanceRuleResultListParamsStatus = "running" GovernanceRuleResultListParamsStatusPassing GovernanceRuleResultListParamsStatus = "passing" GovernanceRuleResultListParamsStatusFailing GovernanceRuleResultListParamsStatus = "failing" GovernanceRuleResultListParamsStatusSkipped GovernanceRuleResultListParamsStatus = "skipped" GovernanceRuleResultListParamsStatusError GovernanceRuleResultListParamsStatus = "error" GovernanceRuleResultListParamsStatusPending GovernanceRuleResultListParamsStatus = "pending" GovernanceRuleResultListParamsStatusDueSoon GovernanceRuleResultListParamsStatus = "due_soon" )
func (GovernanceRuleResultListParamsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListParamsStatus) IsKnown() bool
type GovernanceRuleResultListParamsType ¶ added in v0.10.0
type GovernanceRuleResultListParamsType string
Only include rules of this type.
const ( GovernanceRuleResultListParamsTypePlatform GovernanceRuleResultListParamsType = "platform" GovernanceRuleResultListParamsTypeEvidence GovernanceRuleResultListParamsType = "evidence" )
func (GovernanceRuleResultListParamsType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListParamsType) IsKnown() bool
type GovernanceRuleResultListResponse ¶ added in v0.10.0
type GovernanceRuleResultListResponse struct {
Items []GovernanceRuleResultListResponseItem `json:"items" api:"required"`
JSON governanceRuleResultListResponseJSON `json:"-"`
}
func (*GovernanceRuleResultListResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListResponseItem ¶ added in v0.10.0
type GovernanceRuleResultListResponseItem struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultListResponseItemsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleResultListResponseItemsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleResultListResponseItemsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleResultListResponseItemJSON `json:"-"`
}
func (*GovernanceRuleResultListResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListResponseItemsBlockedBy ¶ added in v0.10.0
type GovernanceRuleResultListResponseItemsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultListResponseItemsBlockedByStatus `json:"status"`
JSON governanceRuleResultListResponseItemsBlockedByJSON `json:"-"`
}
func (*GovernanceRuleResultListResponseItemsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListResponseItemsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListResponseItemsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleResultListResponseItemsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultListResponseItemsBlockedByStatusRunning GovernanceRuleResultListResponseItemsBlockedByStatus = "running" GovernanceRuleResultListResponseItemsBlockedByStatusPassing GovernanceRuleResultListResponseItemsBlockedByStatus = "passing" GovernanceRuleResultListResponseItemsBlockedByStatusFailing GovernanceRuleResultListResponseItemsBlockedByStatus = "failing" GovernanceRuleResultListResponseItemsBlockedByStatusSkipped GovernanceRuleResultListResponseItemsBlockedByStatus = "skipped" GovernanceRuleResultListResponseItemsBlockedByStatusError GovernanceRuleResultListResponseItemsBlockedByStatus = "error" GovernanceRuleResultListResponseItemsBlockedByStatusPending GovernanceRuleResultListResponseItemsBlockedByStatus = "pending" GovernanceRuleResultListResponseItemsBlockedByStatusDueSoon GovernanceRuleResultListResponseItemsBlockedByStatus = "due_soon" )
func (GovernanceRuleResultListResponseItemsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListResponseItemsBlockedByStatus) IsKnown() bool
type GovernanceRuleResultListResponseItemsBlocking ¶ added in v0.10.0
type GovernanceRuleResultListResponseItemsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultListResponseItemsBlockingStatus `json:"status"`
JSON governanceRuleResultListResponseItemsBlockingJSON `json:"-"`
}
func (*GovernanceRuleResultListResponseItemsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultListResponseItemsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultListResponseItemsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleResultListResponseItemsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultListResponseItemsBlockingStatusRunning GovernanceRuleResultListResponseItemsBlockingStatus = "running" GovernanceRuleResultListResponseItemsBlockingStatusPassing GovernanceRuleResultListResponseItemsBlockingStatus = "passing" GovernanceRuleResultListResponseItemsBlockingStatusFailing GovernanceRuleResultListResponseItemsBlockingStatus = "failing" GovernanceRuleResultListResponseItemsBlockingStatusSkipped GovernanceRuleResultListResponseItemsBlockingStatus = "skipped" GovernanceRuleResultListResponseItemsBlockingStatusError GovernanceRuleResultListResponseItemsBlockingStatus = "error" GovernanceRuleResultListResponseItemsBlockingStatusPending GovernanceRuleResultListResponseItemsBlockingStatus = "pending" GovernanceRuleResultListResponseItemsBlockingStatusDueSoon GovernanceRuleResultListResponseItemsBlockingStatus = "due_soon" )
func (GovernanceRuleResultListResponseItemsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListResponseItemsBlockingStatus) IsKnown() bool
type GovernanceRuleResultListResponseItemsStatus ¶ added in v0.10.0
type GovernanceRuleResultListResponseItemsStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultListResponseItemsStatusRunning GovernanceRuleResultListResponseItemsStatus = "running" GovernanceRuleResultListResponseItemsStatusPassing GovernanceRuleResultListResponseItemsStatus = "passing" GovernanceRuleResultListResponseItemsStatusFailing GovernanceRuleResultListResponseItemsStatus = "failing" GovernanceRuleResultListResponseItemsStatusSkipped GovernanceRuleResultListResponseItemsStatus = "skipped" GovernanceRuleResultListResponseItemsStatusError GovernanceRuleResultListResponseItemsStatus = "error" GovernanceRuleResultListResponseItemsStatusPending GovernanceRuleResultListResponseItemsStatus = "pending" GovernanceRuleResultListResponseItemsStatusDueSoon GovernanceRuleResultListResponseItemsStatus = "due_soon" )
func (GovernanceRuleResultListResponseItemsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultListResponseItemsStatus) IsKnown() bool
type GovernanceRuleResultNewEvidenceParams ¶ added in v0.10.0
type GovernanceRuleResultNewEvidenceParams struct {
// A description of what the evidence shows.
Description param.Field[string] `json:"description"`
// The evidence name.
Name param.Field[string] `json:"name"`
// Where the uploaded file is stored. Set when the rule's `evidenceType` is
// `document`.
StorageUri param.Field[string] `json:"storageUri"`
// The evidence text. Set when the rule's `evidenceType` is `text`.
Text param.Field[string] `json:"text"`
// A link to the evidence. Set when the rule's `evidenceType` is `url`.
URL param.Field[string] `json:"url" format:"uri"`
}
func (GovernanceRuleResultNewEvidenceParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleResultNewEvidenceParams) MarshalJSON() (data []byte, err error)
type GovernanceRuleResultNewEvidenceResponse ¶ added in v0.10.0
type GovernanceRuleResultNewEvidenceResponse struct {
// The evidence id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who attached the evidence.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// A description of what the evidence shows.
Description string `json:"description" api:"nullable"`
// The evidence name.
Name string `json:"name" api:"nullable"`
// Where the uploaded file is stored. Set when the rule's `evidenceType` is
// `document`.
StorageUri string `json:"storageUri" api:"nullable"`
// The evidence text. Set when the rule's `evidenceType` is `text`.
Text string `json:"text" api:"nullable"`
// A link to the evidence. Set when the rule's `evidenceType` is `url`.
URL string `json:"url" api:"nullable" format:"uri"`
JSON governanceRuleResultNewEvidenceResponseJSON `json:"-"`
}
func (*GovernanceRuleResultNewEvidenceResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultNewEvidenceResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultService ¶ added in v0.10.0
type GovernanceRuleResultService struct {
Options []option.RequestOption
}
GovernanceRuleResultService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceRuleResultService method instead.
func NewGovernanceRuleResultService ¶ added in v0.10.0
func NewGovernanceRuleResultService(opts ...option.RequestOption) (r *GovernanceRuleResultService)
NewGovernanceRuleResultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceRuleResultService) Get ¶ added in v0.10.0
func (r *GovernanceRuleResultService) Get(ctx context.Context, ruleResultID string, opts ...option.RequestOption) (res *GovernanceRuleResultGetResponse, err error)
Retrieve a rule result by its id.
Alongside the status, the response carries the evaluation and renewal dates that explain it: `dateLastEvaluated` and `dateOfNextEvaluation` for platform rules, `dateOfLatestEvidence` and `dateOfRenewal` for evidence rules.
func (*GovernanceRuleResultService) List ¶ added in v0.10.0
func (r *GovernanceRuleResultService) List(ctx context.Context, workspaceID string, query GovernanceRuleResultListParams, opts ...option.RequestOption) (res *GovernanceRuleResultListResponse, err error)
List rule results across a workspace.
A rule result is the compliance status of one rule for one entity: a project for project-scoped rules, or the workspace itself for workspace-scoped rules. This is the endpoint to poll or export when you want your current compliance state, filtered to a framework, a project, or a status.
func (*GovernanceRuleResultService) ListEvidence ¶ added in v0.10.0
func (r *GovernanceRuleResultService) ListEvidence(ctx context.Context, ruleResultID string, query GovernanceRuleResultListEvidenceParams, opts ...option.RequestOption) (res *GovernanceRuleResultListEvidenceResponse, err error)
List the evidence attached to a rule result.
Which field carries the evidence depends on the rule's `evidenceType`: `storageUri` for uploaded documents, `text` for written statements, and `url` for links.
func (*GovernanceRuleResultService) NewEvidence ¶ added in v0.10.0
func (r *GovernanceRuleResultService) NewEvidence(ctx context.Context, ruleResultID string, body GovernanceRuleResultNewEvidenceParams, opts ...option.RequestOption) (res *GovernanceRuleResultNewEvidenceResponse, err error)
Attach evidence to a rule result, satisfying an evidence rule.
Send the field that matches the rule's `evidenceType`: `storageUri` for an uploaded document, `text` for a written statement, or `url` for a link.
For a document, upload the file first with `POST /storage/presigned-url` and send the resulting storage URI as `storageUri`.
Attaching evidence re-evaluates the rule result. If the rule sets `renewalCadenceDays`, the renewal window restarts from this evidence.
func (*GovernanceRuleResultService) Update ¶ added in v0.10.0
func (r *GovernanceRuleResultService) Update(ctx context.Context, ruleResultID string, body GovernanceRuleResultUpdateParams, opts ...option.RequestOption) (res *GovernanceRuleResultUpdateResponse, err error)
Update a rule result. Only the fields you send are changed.
Use this to assign an owner, or to exclude a single result from compliance without deactivating the rule everywhere. `deactivatedReason` is required when setting `deactivated` to `true`.
A result's `status` is computed by Openlayer and cannot be set directly.
type GovernanceRuleResultUpdateParams ¶ added in v0.10.0
type GovernanceRuleResultUpdateParams struct {
// The user responsible for this result.
AssigneeID param.Field[string] `json:"assigneeId" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy param.Field[[]GovernanceRuleResultUpdateParamsBlockedBy] `json:"blockedBy"`
// Rule results that this one blocks.
Blocking param.Field[[]GovernanceRuleResultUpdateParamsBlocking] `json:"blocking"`
// Whether this result is excluded from compliance calculations.
Deactivated param.Field[bool] `json:"deactivated"`
// Why the result was excluded.
DeactivatedReason param.Field[string] `json:"deactivatedReason"`
}
func (GovernanceRuleResultUpdateParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateParams) MarshalJSON() (data []byte, err error)
type GovernanceRuleResultUpdateParamsBlockedBy ¶ added in v0.10.0
type GovernanceRuleResultUpdateParamsBlockedBy struct {
ID param.Field[string] `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status param.Field[GovernanceRuleResultUpdateParamsBlockedByStatus] `json:"status"`
}
func (GovernanceRuleResultUpdateParamsBlockedBy) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateParamsBlockedBy) MarshalJSON() (data []byte, err error)
type GovernanceRuleResultUpdateParamsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleResultUpdateParamsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultUpdateParamsBlockedByStatusRunning GovernanceRuleResultUpdateParamsBlockedByStatus = "running" GovernanceRuleResultUpdateParamsBlockedByStatusPassing GovernanceRuleResultUpdateParamsBlockedByStatus = "passing" GovernanceRuleResultUpdateParamsBlockedByStatusFailing GovernanceRuleResultUpdateParamsBlockedByStatus = "failing" GovernanceRuleResultUpdateParamsBlockedByStatusSkipped GovernanceRuleResultUpdateParamsBlockedByStatus = "skipped" GovernanceRuleResultUpdateParamsBlockedByStatusError GovernanceRuleResultUpdateParamsBlockedByStatus = "error" GovernanceRuleResultUpdateParamsBlockedByStatusPending GovernanceRuleResultUpdateParamsBlockedByStatus = "pending" GovernanceRuleResultUpdateParamsBlockedByStatusDueSoon GovernanceRuleResultUpdateParamsBlockedByStatus = "due_soon" )
func (GovernanceRuleResultUpdateParamsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateParamsBlockedByStatus) IsKnown() bool
type GovernanceRuleResultUpdateParamsBlocking ¶ added in v0.10.0
type GovernanceRuleResultUpdateParamsBlocking struct {
ID param.Field[string] `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status param.Field[GovernanceRuleResultUpdateParamsBlockingStatus] `json:"status"`
}
func (GovernanceRuleResultUpdateParamsBlocking) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateParamsBlocking) MarshalJSON() (data []byte, err error)
type GovernanceRuleResultUpdateParamsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleResultUpdateParamsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultUpdateParamsBlockingStatusRunning GovernanceRuleResultUpdateParamsBlockingStatus = "running" GovernanceRuleResultUpdateParamsBlockingStatusPassing GovernanceRuleResultUpdateParamsBlockingStatus = "passing" GovernanceRuleResultUpdateParamsBlockingStatusFailing GovernanceRuleResultUpdateParamsBlockingStatus = "failing" GovernanceRuleResultUpdateParamsBlockingStatusSkipped GovernanceRuleResultUpdateParamsBlockingStatus = "skipped" GovernanceRuleResultUpdateParamsBlockingStatusError GovernanceRuleResultUpdateParamsBlockingStatus = "error" GovernanceRuleResultUpdateParamsBlockingStatusPending GovernanceRuleResultUpdateParamsBlockingStatus = "pending" GovernanceRuleResultUpdateParamsBlockingStatusDueSoon GovernanceRuleResultUpdateParamsBlockingStatus = "due_soon" )
func (GovernanceRuleResultUpdateParamsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateParamsBlockingStatus) IsKnown() bool
type GovernanceRuleResultUpdateResponse ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponse struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultUpdateResponseStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleResultUpdateResponseBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleResultUpdateResponseBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleResultUpdateResponseJSON `json:"-"`
}
func (*GovernanceRuleResultUpdateResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultUpdateResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultUpdateResponseBlockedBy ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponseBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultUpdateResponseBlockedByStatus `json:"status"`
JSON governanceRuleResultUpdateResponseBlockedByJSON `json:"-"`
}
func (*GovernanceRuleResultUpdateResponseBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultUpdateResponseBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultUpdateResponseBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponseBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultUpdateResponseBlockedByStatusRunning GovernanceRuleResultUpdateResponseBlockedByStatus = "running" GovernanceRuleResultUpdateResponseBlockedByStatusPassing GovernanceRuleResultUpdateResponseBlockedByStatus = "passing" GovernanceRuleResultUpdateResponseBlockedByStatusFailing GovernanceRuleResultUpdateResponseBlockedByStatus = "failing" GovernanceRuleResultUpdateResponseBlockedByStatusSkipped GovernanceRuleResultUpdateResponseBlockedByStatus = "skipped" GovernanceRuleResultUpdateResponseBlockedByStatusError GovernanceRuleResultUpdateResponseBlockedByStatus = "error" GovernanceRuleResultUpdateResponseBlockedByStatusPending GovernanceRuleResultUpdateResponseBlockedByStatus = "pending" GovernanceRuleResultUpdateResponseBlockedByStatusDueSoon GovernanceRuleResultUpdateResponseBlockedByStatus = "due_soon" )
func (GovernanceRuleResultUpdateResponseBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateResponseBlockedByStatus) IsKnown() bool
type GovernanceRuleResultUpdateResponseBlocking ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponseBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleResultUpdateResponseBlockingStatus `json:"status"`
JSON governanceRuleResultUpdateResponseBlockingJSON `json:"-"`
}
func (*GovernanceRuleResultUpdateResponseBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleResultUpdateResponseBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleResultUpdateResponseBlockingStatus ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponseBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultUpdateResponseBlockingStatusRunning GovernanceRuleResultUpdateResponseBlockingStatus = "running" GovernanceRuleResultUpdateResponseBlockingStatusPassing GovernanceRuleResultUpdateResponseBlockingStatus = "passing" GovernanceRuleResultUpdateResponseBlockingStatusFailing GovernanceRuleResultUpdateResponseBlockingStatus = "failing" GovernanceRuleResultUpdateResponseBlockingStatusSkipped GovernanceRuleResultUpdateResponseBlockingStatus = "skipped" GovernanceRuleResultUpdateResponseBlockingStatusError GovernanceRuleResultUpdateResponseBlockingStatus = "error" GovernanceRuleResultUpdateResponseBlockingStatusPending GovernanceRuleResultUpdateResponseBlockingStatus = "pending" GovernanceRuleResultUpdateResponseBlockingStatusDueSoon GovernanceRuleResultUpdateResponseBlockingStatus = "due_soon" )
func (GovernanceRuleResultUpdateResponseBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateResponseBlockingStatus) IsKnown() bool
type GovernanceRuleResultUpdateResponseStatus ¶ added in v0.10.0
type GovernanceRuleResultUpdateResponseStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleResultUpdateResponseStatusRunning GovernanceRuleResultUpdateResponseStatus = "running" GovernanceRuleResultUpdateResponseStatusPassing GovernanceRuleResultUpdateResponseStatus = "passing" GovernanceRuleResultUpdateResponseStatusFailing GovernanceRuleResultUpdateResponseStatus = "failing" GovernanceRuleResultUpdateResponseStatusSkipped GovernanceRuleResultUpdateResponseStatus = "skipped" GovernanceRuleResultUpdateResponseStatusError GovernanceRuleResultUpdateResponseStatus = "error" GovernanceRuleResultUpdateResponseStatusPending GovernanceRuleResultUpdateResponseStatus = "pending" GovernanceRuleResultUpdateResponseStatusDueSoon GovernanceRuleResultUpdateResponseStatus = "due_soon" )
func (GovernanceRuleResultUpdateResponseStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleResultUpdateResponseStatus) IsKnown() bool
type GovernanceRuleService ¶ added in v0.10.0
type GovernanceRuleService struct {
Options []option.RequestOption
}
GovernanceRuleService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceRuleService method instead.
func NewGovernanceRuleService ¶ added in v0.10.0
func NewGovernanceRuleService(opts ...option.RequestOption) (r *GovernanceRuleService)
NewGovernanceRuleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceRuleService) Delete ¶ added in v0.10.0
func (r *GovernanceRuleService) Delete(ctx context.Context, ruleID string, opts ...option.RequestOption) (err error)
Delete a governance rule and its rule results.
Only rules you created can be deleted. Rules that ship with Openlayer report `immutable: true` and cannot be deleted -- exclude one from compliance by setting `deactivated` with `PUT /rules/{ruleId}` instead.
func (*GovernanceRuleService) Get ¶ added in v0.10.0
func (r *GovernanceRuleService) Get(ctx context.Context, ruleID string, opts ...option.RequestOption) (res *GovernanceRuleGetResponse, err error)
Retrieve a governance rule by its id, including the frameworks it belongs to and its tags.
func (*GovernanceRuleService) List ¶ added in v0.10.0
func (r *GovernanceRuleService) List(ctx context.Context, workspaceID string, query GovernanceRuleListParams, opts ...option.RequestOption) (res *GovernanceRuleListResponse, err error)
List the governance rules in a workspace.
A rule is a single requirement Openlayer tracks. `platform` rules are evaluated automatically from the state of your workspace; `evidence` rules are satisfied by attaching evidence. A rule can belong to several frameworks at once, and rules that belong to none are returned too unless you pass `includeUnframed=false`.
Pass `includeResults=true` to get each rule's compliance results inline instead of fetching them separately.
func (*GovernanceRuleService) New ¶ added in v0.10.0
func (r *GovernanceRuleService) New(ctx context.Context, workspaceID string, body GovernanceRuleNewParams, opts ...option.RequestOption) (res *GovernanceRuleNewResponse, err error)
Create a governance rule in a workspace.
A rule is one requirement. Its `type` decides how it is satisfied, and the two types accept different fields:
- `platform` rules are evaluated automatically from the state of your workspace. Set `automationType` to the signal to check. Their `scope` must be `project`, and `evidenceType` and `renewalCadenceDays` must be omitted or `null`.
- `evidence` rules are satisfied by attaching evidence. Set `evidenceType` to the kind of evidence that satisfies them. `automationType` and `automationParams` must be omitted or `null`.
A new rule belongs to no framework. Map it to one from the Openlayer app.
func (*GovernanceRuleService) Update ¶ added in v0.10.0
func (r *GovernanceRuleService) Update(ctx context.Context, ruleID string, body GovernanceRuleUpdateParams, opts ...option.RequestOption) (res *GovernanceRuleUpdateResponse, err error)
Update a governance rule. Only the fields you send are changed.
Rules that ship with Openlayer report `immutable: true` and cannot be edited.
A rule's `scope`, `type`, `evidenceType`, and automation are fixed once it exists -- create a new rule instead of converting one.
type GovernanceRuleStatGetParams ¶ added in v0.10.0
type GovernanceRuleStatGetParams struct {
// Only include items belonging to this framework.
FrameworkID param.Field[string] `query:"frameworkId" format:"uuid"`
// Only include items that apply to this project.
ProjectID param.Field[string] `query:"projectId" format:"uuid"`
}
func (GovernanceRuleStatGetParams) URLQuery ¶ added in v0.10.0
func (r GovernanceRuleStatGetParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceRuleStatGetParams's query parameters as `url.Values`.
type GovernanceRuleStatGetResponse ¶ added in v0.10.0
type GovernanceRuleStatGetResponse struct {
// Counts of rule results, after any filters in the request, with breakdowns by the
// type and scope of the rule each result belongs to.
RuleResults GovernanceRuleStatGetResponseRuleResults `json:"ruleResults" api:"required"`
// Counts of the rules themselves, after any filters in the request.
Rules GovernanceRuleStatGetResponseRules `json:"rules" api:"required"`
JSON governanceRuleStatGetResponseJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResults ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResults struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
ByRuleScope GovernanceRuleStatGetResponseRuleResultsByRuleScope `json:"byRuleScope"`
ByRuleType GovernanceRuleStatGetResponseRuleResultsByRuleType `json:"byRuleType"`
JSON governanceRuleStatGetResponseRuleResultsJSON `json:"-"`
}
Counts of rule results, after any filters in the request, with breakdowns by the type and scope of the rule each result belongs to.
func (*GovernanceRuleStatGetResponseRuleResults) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResults) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleScope ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleScope struct {
Project GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject `json:"project"`
Workspace GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace `json:"workspace"`
JSON governanceRuleStatGetResponseRuleResultsByRuleScopeJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleScope) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleScope) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceRuleStatGetResponseRuleResultsByRuleScopeProjectJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleScopeProject) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceRuleStatGetResponseRuleResultsByRuleScopeWorkspaceJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleScopeWorkspace) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleType ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleType struct {
Evidence GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence `json:"evidence"`
Platform GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform `json:"platform"`
JSON governanceRuleStatGetResponseRuleResultsByRuleTypeJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleType) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleType) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceRuleStatGetResponseRuleResultsByRuleTypeEvidenceJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleTypeEvidence) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform struct {
// The total number of rule results.
Total int64 `json:"total" api:"required"`
// The number of rule results whose evidence is about to expire.
TotalDueSoon int64 `json:"totalDueSoon" api:"required"`
// The number of rule results that errored during evaluation.
TotalError int64 `json:"totalError" api:"required"`
// The number of failing rule results.
TotalFailing int64 `json:"totalFailing" api:"required"`
// The number of passing rule results.
TotalPassing int64 `json:"totalPassing" api:"required"`
// The number of rule results that have not been satisfied yet.
TotalPending int64 `json:"totalPending" api:"required"`
// The number of rule results currently being evaluated.
TotalRunning int64 `json:"totalRunning" api:"required"`
// The number of skipped rule results.
TotalSkipped int64 `json:"totalSkipped" api:"required"`
JSON governanceRuleStatGetResponseRuleResultsByRuleTypePlatformJSON `json:"-"`
}
func (*GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRuleResultsByRuleTypePlatform) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRules ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRules struct {
// Rule counts by scope.
ByScope GovernanceRuleStatGetResponseRulesByScope `json:"byScope"`
// Rule counts by type.
ByType GovernanceRuleStatGetResponseRulesByType `json:"byType"`
// The total number of rules.
Total int64 `json:"total"`
JSON governanceRuleStatGetResponseRulesJSON `json:"-"`
}
Counts of the rules themselves, after any filters in the request.
func (*GovernanceRuleStatGetResponseRules) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRules) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRulesByScope ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRulesByScope struct {
Project int64 `json:"project"`
Workspace int64 `json:"workspace"`
JSON governanceRuleStatGetResponseRulesByScopeJSON `json:"-"`
}
Rule counts by scope.
func (*GovernanceRuleStatGetResponseRulesByScope) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRulesByScope) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatGetResponseRulesByType ¶ added in v0.10.0
type GovernanceRuleStatGetResponseRulesByType struct {
Evidence int64 `json:"evidence"`
Platform int64 `json:"platform"`
JSON governanceRuleStatGetResponseRulesByTypeJSON `json:"-"`
}
Rule counts by type.
func (*GovernanceRuleStatGetResponseRulesByType) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleStatGetResponseRulesByType) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleStatService ¶ added in v0.10.0
type GovernanceRuleStatService struct {
Options []option.RequestOption
}
GovernanceRuleStatService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceRuleStatService method instead.
func NewGovernanceRuleStatService ¶ added in v0.10.0
func NewGovernanceRuleStatService(opts ...option.RequestOption) (r *GovernanceRuleStatService)
NewGovernanceRuleStatService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceRuleStatService) Get ¶ added in v0.10.0
func (r *GovernanceRuleStatService) Get(ctx context.Context, workspaceID string, query GovernanceRuleStatGetParams, opts ...option.RequestOption) (res *GovernanceRuleStatGetResponse, err error)
Get a compliance roll-up for a workspace: how many rules exist, and how many of their results are passing, failing, pending, or due for renewal.
Counts respect the filters you pass, so `frameworkId` gives you a single framework's overall compliance and `projectId` gives you a single project's.
type GovernanceRuleTagListParams ¶ added in v0.10.0
type GovernanceRuleTagListParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (GovernanceRuleTagListParams) URLQuery ¶ added in v0.10.0
func (r GovernanceRuleTagListParams) URLQuery() (v url.Values)
URLQuery serializes GovernanceRuleTagListParams's query parameters as `url.Values`.
type GovernanceRuleTagListResponse ¶ added in v0.10.0
type GovernanceRuleTagListResponse struct {
Items []GovernanceRuleTagListResponseItem `json:"items" api:"required"`
JSON governanceRuleTagListResponseJSON `json:"-"`
}
func (*GovernanceRuleTagListResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleTagListResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleTagListResponseItem ¶ added in v0.10.0
type GovernanceRuleTagListResponseItem struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceRuleTagListResponseItemJSON `json:"-"`
}
func (*GovernanceRuleTagListResponseItem) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleTagListResponseItem) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleTagService ¶ added in v0.10.0
type GovernanceRuleTagService struct {
Options []option.RequestOption
}
GovernanceRuleTagService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceRuleTagService method instead.
func NewGovernanceRuleTagService ¶ added in v0.10.0
func NewGovernanceRuleTagService(opts ...option.RequestOption) (r *GovernanceRuleTagService)
NewGovernanceRuleTagService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*GovernanceRuleTagService) List ¶ added in v0.10.0
func (r *GovernanceRuleTagService) List(ctx context.Context, workspaceID string, query GovernanceRuleTagListParams, opts ...option.RequestOption) (res *GovernanceRuleTagListResponse, err error)
List the rule tags in a workspace.
Tags group rules across frameworks, for example by team or by control family. Use the ids returned here with the `tags` filter on [List rules](/api-reference/rest/governance/list-rules).
type GovernanceRuleUpdateParams ¶ added in v0.10.0
type GovernanceRuleUpdateParams struct {
// The user responsible for satisfying the rule.
AssigneeID param.Field[string] `json:"assigneeId" format:"uuid"`
// Whether the rule is excluded from compliance calculations.
Deactivated param.Field[bool] `json:"deactivated"`
// What the rule requires.
Description param.Field[string] `json:"description"`
// The rule name.
Name param.Field[string] `json:"name"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays param.Field[int64] `json:"renewalCadenceDays"`
// The ids of the rule tags to associate with the rule. Replaces the rule's tags.
// Read them back from `tags`, and list the tags available in the workspace with
// `GET /workspaces/{workspaceId}/rule-tags`.
TagIDs param.Field[[]string] `json:"tagIds" format:"uuid"`
}
func (GovernanceRuleUpdateParams) MarshalJSON ¶ added in v0.10.0
func (r GovernanceRuleUpdateParams) MarshalJSON() (data []byte, err error)
type GovernanceRuleUpdateResponse ¶ added in v0.10.0
type GovernanceRuleUpdateResponse struct {
// The rule id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The rule name.
Name string `json:"name" api:"required"`
// Whether the rule is evaluated once for the whole workspace, or once per project
// the rule's frameworks apply to.
Scope GovernanceRuleUpdateResponseScope `json:"scope" api:"required"`
// `platform` rules are evaluated automatically from the state of your Openlayer
// workspace. `evidence` rules are satisfied by attaching evidence.
Type GovernanceRuleUpdateResponseType `json:"type" api:"required"`
// The id of the workspace the rule belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for satisfying the rule.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Configuration for the platform check, when the automation takes parameters.
AutomationParams map[string]interface{} `json:"automationParams" api:"nullable"`
// Which workspace signal a platform rule checks, for example
// `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
// evidence rules.
AutomationType string `json:"automationType" api:"nullable"`
// Whether the rule is excluded from compliance calculations.
Deactivated bool `json:"deactivated"`
// What the rule requires.
Description string `json:"description" api:"nullable"`
// The kind of evidence that satisfies the rule. `null` for platform rules.
EvidenceType GovernanceRuleUpdateResponseEvidenceType `json:"evidenceType" api:"nullable"`
// The frameworks that include this rule.
Frameworks []GovernanceRuleUpdateResponseFramework `json:"frameworks"`
// Whether the rule is managed by Openlayer and cannot be edited.
Immutable bool `json:"immutable"`
// How often evidence must be renewed, in days. Once evidence is older than this,
// the rule result becomes `due_soon` and then `failing`.
RenewalCadenceDays int64 `json:"renewalCadenceDays" api:"nullable"`
// The rule's results, one per entity the rule is evaluated against. Only returned
// when `includeResults` is `true`.
Results []GovernanceRuleUpdateResponseResult `json:"results"`
// Pass-rate counts across all of the rule's entities, independent of any status
// filter applied to the request.
ResultsSummary GovernanceRuleUpdateResponseResultsSummary `json:"resultsSummary" api:"nullable"`
// The rule tags associated with the rule.
Tags []GovernanceRuleUpdateResponseTag `json:"tags" api:"nullable"`
JSON governanceRuleUpdateResponseJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponse) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseEvidenceType ¶ added in v0.10.0
type GovernanceRuleUpdateResponseEvidenceType string
The kind of evidence that satisfies the rule. `null` for platform rules.
const ( GovernanceRuleUpdateResponseEvidenceTypeDocument GovernanceRuleUpdateResponseEvidenceType = "document" GovernanceRuleUpdateResponseEvidenceTypeText GovernanceRuleUpdateResponseEvidenceType = "text" GovernanceRuleUpdateResponseEvidenceTypeURL GovernanceRuleUpdateResponseEvidenceType = "url" GovernanceRuleUpdateResponseEvidenceTypeCategoryValue GovernanceRuleUpdateResponseEvidenceType = "categoryValue" )
func (GovernanceRuleUpdateResponseEvidenceType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseEvidenceType) IsKnown() bool
type GovernanceRuleUpdateResponseFramework ¶ added in v0.10.0
type GovernanceRuleUpdateResponseFramework struct {
// The framework id.
ID string `json:"id" api:"required" format:"uuid"`
// The icon shown for the framework.
Avatar GovernanceRuleUpdateResponseFrameworksAvatar `json:"avatar" api:"required,nullable"`
// Identifies a framework that ships with Openlayer, for example `eu_ai_act`,
// `iso_42001`, `nist_ai_rmf`, or `traiga`. `null` for frameworks you create
// yourself.
BuiltInSlug string `json:"builtInSlug" api:"required,nullable"`
// Whether the framework is active. Rules of a disabled framework are not evaluated
// and do not count towards compliance.
Enabled bool `json:"enabled" api:"required"`
// The framework name.
Name string `json:"name" api:"required"`
JSON governanceRuleUpdateResponseFrameworkJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponseFramework) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseFramework) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseFrameworksAvatar ¶ added in v0.10.0
type GovernanceRuleUpdateResponseFrameworksAvatar struct {
Type GovernanceRuleUpdateResponseFrameworksAvatarType `json:"type" api:"required"`
Value string `json:"value" api:"required"`
JSON governanceRuleUpdateResponseFrameworksAvatarJSON `json:"-"`
}
The icon shown for the framework.
func (*GovernanceRuleUpdateResponseFrameworksAvatar) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseFrameworksAvatar) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseFrameworksAvatarType ¶ added in v0.10.0
type GovernanceRuleUpdateResponseFrameworksAvatarType string
const ( GovernanceRuleUpdateResponseFrameworksAvatarTypeEmoji GovernanceRuleUpdateResponseFrameworksAvatarType = "emoji" GovernanceRuleUpdateResponseFrameworksAvatarTypeImageURL GovernanceRuleUpdateResponseFrameworksAvatarType = "imageUrl" GovernanceRuleUpdateResponseFrameworksAvatarTypeBuiltinImage GovernanceRuleUpdateResponseFrameworksAvatarType = "builtinImage" )
func (GovernanceRuleUpdateResponseFrameworksAvatarType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseFrameworksAvatarType) IsKnown() bool
type GovernanceRuleUpdateResponseResult ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResult struct {
// The rule result id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether this result is excluded from compliance calculations.
Deactivated bool `json:"deactivated" api:"required"`
// The rule this result belongs to.
RuleID string `json:"ruleId" api:"required" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleUpdateResponseResultsStatus `json:"status" api:"required"`
// The id of the workspace the rule result belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The user responsible for this result.
AssigneeID string `json:"assigneeId" api:"nullable" format:"uuid"`
// Rule results that must pass before this one can be satisfied.
BlockedBy []GovernanceRuleUpdateResponseResultsBlockedBy `json:"blockedBy"`
// Rule results that this one blocks.
Blocking []GovernanceRuleUpdateResponseResultsBlocking `json:"blocking"`
// When the rule was last evaluated. Platform rules only.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"nullable" format:"date-time"`
// When the most recent piece of evidence was attached. Evidence rules only.
DateOfLatestEvidence time.Time `json:"dateOfLatestEvidence" api:"nullable" format:"date-time"`
// When the rule will next be evaluated. Platform rules only.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"nullable" format:"date-time"`
// When the evidence must be renewed. Evidence rules with a renewal cadence only.
DateOfRenewal time.Time `json:"dateOfRenewal" api:"nullable" format:"date-time"`
// Why the result was excluded.
DeactivatedReason string `json:"deactivatedReason" api:"nullable"`
// The project this result was evaluated for. `null` for workspace-scoped rules.
ProjectID string `json:"projectId" api:"nullable" format:"uuid"`
// A human-readable explanation of the status.
StatusMessage string `json:"statusMessage" api:"nullable"`
JSON governanceRuleUpdateResponseResultJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponseResult) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseResult) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseResultsBlockedBy ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsBlockedBy struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleUpdateResponseResultsBlockedByStatus `json:"status"`
JSON governanceRuleUpdateResponseResultsBlockedByJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponseResultsBlockedBy) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseResultsBlockedBy) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseResultsBlockedByStatus ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsBlockedByStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleUpdateResponseResultsBlockedByStatusRunning GovernanceRuleUpdateResponseResultsBlockedByStatus = "running" GovernanceRuleUpdateResponseResultsBlockedByStatusPassing GovernanceRuleUpdateResponseResultsBlockedByStatus = "passing" GovernanceRuleUpdateResponseResultsBlockedByStatusFailing GovernanceRuleUpdateResponseResultsBlockedByStatus = "failing" GovernanceRuleUpdateResponseResultsBlockedByStatusSkipped GovernanceRuleUpdateResponseResultsBlockedByStatus = "skipped" GovernanceRuleUpdateResponseResultsBlockedByStatusError GovernanceRuleUpdateResponseResultsBlockedByStatus = "error" GovernanceRuleUpdateResponseResultsBlockedByStatusPending GovernanceRuleUpdateResponseResultsBlockedByStatus = "pending" GovernanceRuleUpdateResponseResultsBlockedByStatusDueSoon GovernanceRuleUpdateResponseResultsBlockedByStatus = "due_soon" )
func (GovernanceRuleUpdateResponseResultsBlockedByStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseResultsBlockedByStatus) IsKnown() bool
type GovernanceRuleUpdateResponseResultsBlocking ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsBlocking struct {
ID string `json:"id" format:"uuid"`
// The compliance status of the rule for this entity.
Status GovernanceRuleUpdateResponseResultsBlockingStatus `json:"status"`
JSON governanceRuleUpdateResponseResultsBlockingJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponseResultsBlocking) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseResultsBlocking) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseResultsBlockingStatus ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsBlockingStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleUpdateResponseResultsBlockingStatusRunning GovernanceRuleUpdateResponseResultsBlockingStatus = "running" GovernanceRuleUpdateResponseResultsBlockingStatusPassing GovernanceRuleUpdateResponseResultsBlockingStatus = "passing" GovernanceRuleUpdateResponseResultsBlockingStatusFailing GovernanceRuleUpdateResponseResultsBlockingStatus = "failing" GovernanceRuleUpdateResponseResultsBlockingStatusSkipped GovernanceRuleUpdateResponseResultsBlockingStatus = "skipped" GovernanceRuleUpdateResponseResultsBlockingStatusError GovernanceRuleUpdateResponseResultsBlockingStatus = "error" GovernanceRuleUpdateResponseResultsBlockingStatusPending GovernanceRuleUpdateResponseResultsBlockingStatus = "pending" GovernanceRuleUpdateResponseResultsBlockingStatusDueSoon GovernanceRuleUpdateResponseResultsBlockingStatus = "due_soon" )
func (GovernanceRuleUpdateResponseResultsBlockingStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseResultsBlockingStatus) IsKnown() bool
type GovernanceRuleUpdateResponseResultsStatus ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsStatus string
The compliance status of the rule for this entity.
const ( GovernanceRuleUpdateResponseResultsStatusRunning GovernanceRuleUpdateResponseResultsStatus = "running" GovernanceRuleUpdateResponseResultsStatusPassing GovernanceRuleUpdateResponseResultsStatus = "passing" GovernanceRuleUpdateResponseResultsStatusFailing GovernanceRuleUpdateResponseResultsStatus = "failing" GovernanceRuleUpdateResponseResultsStatusSkipped GovernanceRuleUpdateResponseResultsStatus = "skipped" GovernanceRuleUpdateResponseResultsStatusError GovernanceRuleUpdateResponseResultsStatus = "error" GovernanceRuleUpdateResponseResultsStatusPending GovernanceRuleUpdateResponseResultsStatus = "pending" GovernanceRuleUpdateResponseResultsStatusDueSoon GovernanceRuleUpdateResponseResultsStatus = "due_soon" )
func (GovernanceRuleUpdateResponseResultsStatus) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseResultsStatus) IsKnown() bool
type GovernanceRuleUpdateResponseResultsSummary ¶ added in v0.10.0
type GovernanceRuleUpdateResponseResultsSummary struct {
Passing int64 `json:"passing"`
Total int64 `json:"total"`
JSON governanceRuleUpdateResponseResultsSummaryJSON `json:"-"`
}
Pass-rate counts across all of the rule's entities, independent of any status filter applied to the request.
func (*GovernanceRuleUpdateResponseResultsSummary) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseResultsSummary) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseScope ¶ added in v0.10.0
type GovernanceRuleUpdateResponseScope string
Whether the rule is evaluated once for the whole workspace, or once per project the rule's frameworks apply to.
const ( GovernanceRuleUpdateResponseScopeProject GovernanceRuleUpdateResponseScope = "project" GovernanceRuleUpdateResponseScopeWorkspace GovernanceRuleUpdateResponseScope = "workspace" )
func (GovernanceRuleUpdateResponseScope) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseScope) IsKnown() bool
type GovernanceRuleUpdateResponseTag ¶ added in v0.10.0
type GovernanceRuleUpdateResponseTag struct {
// The rule tag id.
ID string `json:"id" api:"required" format:"uuid"`
// The user who created the tag. `null` for tags that ship with Openlayer.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// Whether the tag is managed by Openlayer and cannot be edited or deleted.
Immutable bool `json:"immutable" api:"required"`
// The tag name.
Name string `json:"name" api:"required"`
// The id of the workspace the tag belongs to.
WorkspaceID string `json:"workspaceId" api:"required" format:"uuid"`
// The color the tag is displayed with.
Color string `json:"color" api:"nullable"`
JSON governanceRuleUpdateResponseTagJSON `json:"-"`
}
func (*GovernanceRuleUpdateResponseTag) UnmarshalJSON ¶ added in v0.10.0
func (r *GovernanceRuleUpdateResponseTag) UnmarshalJSON(data []byte) (err error)
type GovernanceRuleUpdateResponseType ¶ added in v0.10.0
type GovernanceRuleUpdateResponseType string
`platform` rules are evaluated automatically from the state of your Openlayer workspace. `evidence` rules are satisfied by attaching evidence.
const ( GovernanceRuleUpdateResponseTypePlatform GovernanceRuleUpdateResponseType = "platform" GovernanceRuleUpdateResponseTypeEvidence GovernanceRuleUpdateResponseType = "evidence" )
func (GovernanceRuleUpdateResponseType) IsKnown ¶ added in v0.10.0
func (r GovernanceRuleUpdateResponseType) IsKnown() bool
type GovernanceService ¶ added in v0.10.0
type GovernanceService struct {
Options []option.RequestOption
Frameworks *GovernanceFrameworkService
Rules *GovernanceRuleService
RuleResults *GovernanceRuleResultService
RuleStats *GovernanceRuleStatService
RuleTags *GovernanceRuleTagService
}
GovernanceService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewGovernanceService method instead.
func NewGovernanceService ¶ added in v0.10.0
func NewGovernanceService(opts ...option.RequestOption) (r *GovernanceService)
NewGovernanceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type InferencePipelineDataService ¶
type InferencePipelineDataService struct {
Options []option.RequestOption
}
InferencePipelineDataService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInferencePipelineDataService method instead.
func NewInferencePipelineDataService ¶
func NewInferencePipelineDataService(opts ...option.RequestOption) (r *InferencePipelineDataService)
NewInferencePipelineDataService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InferencePipelineDataService) Stream ¶
func (r *InferencePipelineDataService) Stream(ctx context.Context, inferencePipelineID string, body InferencePipelineDataStreamParams, opts ...option.RequestOption) (res *InferencePipelineDataStreamResponse, err error)
Publish an inference data point to an inference pipeline.
type InferencePipelineDataStreamParams ¶
type InferencePipelineDataStreamParams struct {
// Configuration for the data stream. Depends on your **Openlayer project task
// type**.
Config param.Field[InferencePipelineDataStreamParamsConfigUnion] `json:"config" api:"required"`
// A list of inference data points with inputs and outputs
Rows param.Field[[]map[string]interface{}] `json:"rows" api:"required"`
}
func (InferencePipelineDataStreamParams) MarshalJSON ¶
func (r InferencePipelineDataStreamParams) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfig ¶
type InferencePipelineDataStreamParamsConfig struct {
CategoricalFeatureNames param.Field[interface{}] `json:"categoricalFeatureNames"`
ClassNames param.Field[interface{}] `json:"classNames"`
// Name of the column with the context retrieved. Applies to RAG use cases.
// Providing the context enables RAG-specific metrics.
ContextColumnName param.Field[string] `json:"contextColumnName"`
// Name of the column with the cost associated with each row.
CostColumnName param.Field[string] `json:"costColumnName"`
FeatureNames param.Field[interface{}] `json:"featureNames"`
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
InputVariableNames param.Field[interface{}] `json:"inputVariableNames"`
// Name of the column with the labels. The data in this column must be
// **zero-indexed integers**, matching the list provided in `classNames`.
LabelColumnName param.Field[string] `json:"labelColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
Metadata param.Field[interface{}] `json:"metadata"`
// Name of the column with the total number of tokens.
NumOfTokenColumnName param.Field[string] `json:"numOfTokenColumnName"`
// Name of the column with the model outputs.
OutputColumnName param.Field[string] `json:"outputColumnName"`
// Name of the column with the model's predictions as **zero-indexed integers**.
PredictionsColumnName param.Field[string] `json:"predictionsColumnName"`
// Name of the column with the model's predictions as **lists of class
// probabilities**.
PredictionScoresColumnName param.Field[string] `json:"predictionScoresColumnName"`
Prompt param.Field[interface{}] `json:"prompt"`
// Name of the column with the questions. Applies to RAG use cases. Providing the
// question enables RAG-specific metrics.
QuestionColumnName param.Field[string] `json:"questionColumnName"`
// Name of the column with the session id.
SessionIDColumnName param.Field[string] `json:"sessionIdColumnName"`
// Name of the column with the targets (ground truth values).
TargetColumnName param.Field[string] `json:"targetColumnName"`
// Name of the column with the text data.
TextColumnName param.Field[string] `json:"textColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
// Name of the column with the user id.
UserIDColumnName param.Field[string] `json:"userIdColumnName"`
}
Configuration for the data stream. Depends on your **Openlayer project task type**.
func (InferencePipelineDataStreamParamsConfig) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfig) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigLlmData ¶
type InferencePipelineDataStreamParamsConfigLlmData struct {
// Name of the column with the model outputs.
OutputColumnName param.Field[string] `json:"outputColumnName" api:"required"`
// Name of the column with the context retrieved. Applies to RAG use cases.
// Providing the context enables RAG-specific metrics.
ContextColumnName param.Field[string] `json:"contextColumnName"`
// Name of the column with the cost associated with each row.
CostColumnName param.Field[string] `json:"costColumnName"`
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Array of input variable names. Each input variable should be a dataset column.
InputVariableNames param.Field[[]string] `json:"inputVariableNames"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Object with metadata.
Metadata param.Field[interface{}] `json:"metadata"`
// Name of the column with the total number of tokens.
NumOfTokenColumnName param.Field[string] `json:"numOfTokenColumnName"`
// Prompt for the LLM.
Prompt param.Field[[]InferencePipelineDataStreamParamsConfigLlmDataPrompt] `json:"prompt"`
// Name of the column with the questions. Applies to RAG use cases. Providing the
// question enables RAG-specific metrics.
QuestionColumnName param.Field[string] `json:"questionColumnName"`
// Name of the column with the session id.
SessionIDColumnName param.Field[string] `json:"sessionIdColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
// Name of the column with the user id.
UserIDColumnName param.Field[string] `json:"userIdColumnName"`
}
func (InferencePipelineDataStreamParamsConfigLlmData) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfigLlmData) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigLlmDataPrompt ¶
type InferencePipelineDataStreamParamsConfigLlmDataPrompt struct {
// Content of the prompt.
Content param.Field[string] `json:"content"`
// Role of the prompt.
Role param.Field[string] `json:"role"`
}
func (InferencePipelineDataStreamParamsConfigLlmDataPrompt) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfigLlmDataPrompt) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigTabularClassificationData ¶
type InferencePipelineDataStreamParamsConfigTabularClassificationData struct {
// List of class names indexed by label integer in the dataset. E.g. ["Retained",
// "Exited"] when 0, 1 are in your label column.
ClassNames param.Field[[]string] `json:"classNames" api:"required"`
// Array with the names of all categorical features in the dataset. E.g. ["Age",
// "Geography"].
CategoricalFeatureNames param.Field[[]string] `json:"categoricalFeatureNames"`
// Array with all input feature names.
FeatureNames param.Field[[]string] `json:"featureNames"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the labels. The data in this column must be
// **zero-indexed integers**, matching the list provided in `classNames`.
LabelColumnName param.Field[string] `json:"labelColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Object with metadata.
Metadata param.Field[interface{}] `json:"metadata"`
// Name of the column with the model's predictions as **zero-indexed integers**.
PredictionsColumnName param.Field[string] `json:"predictionsColumnName"`
// Name of the column with the model's predictions as **lists of class
// probabilities**.
PredictionScoresColumnName param.Field[string] `json:"predictionScoresColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (InferencePipelineDataStreamParamsConfigTabularClassificationData) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfigTabularClassificationData) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigTabularRegressionData ¶
type InferencePipelineDataStreamParamsConfigTabularRegressionData struct {
// Array with the names of all categorical features in the dataset. E.g. ["Gender",
// "Geography"].
CategoricalFeatureNames param.Field[[]string] `json:"categoricalFeatureNames"`
// Array with all input feature names.
FeatureNames param.Field[[]string] `json:"featureNames"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Object with metadata.
Metadata param.Field[interface{}] `json:"metadata"`
// Name of the column with the model's predictions.
PredictionsColumnName param.Field[string] `json:"predictionsColumnName"`
// Name of the column with the targets (ground truth values).
TargetColumnName param.Field[string] `json:"targetColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (InferencePipelineDataStreamParamsConfigTabularRegressionData) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfigTabularRegressionData) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigTextClassificationData ¶
type InferencePipelineDataStreamParamsConfigTextClassificationData struct {
// List of class names indexed by label integer in the dataset. E.g. ["Retained",
// "Exited"] when 0, 1 are in your label column.
ClassNames param.Field[[]string] `json:"classNames" api:"required"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the labels. The data in this column must be
// **zero-indexed integers**, matching the list provided in `classNames`.
LabelColumnName param.Field[string] `json:"labelColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Object with metadata.
Metadata param.Field[interface{}] `json:"metadata"`
// Name of the column with the model's predictions as **zero-indexed integers**.
PredictionsColumnName param.Field[string] `json:"predictionsColumnName"`
// Name of the column with the model's predictions as **lists of class
// probabilities**.
PredictionScoresColumnName param.Field[string] `json:"predictionScoresColumnName"`
// Name of the column with the text data.
TextColumnName param.Field[string] `json:"textColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (InferencePipelineDataStreamParamsConfigTextClassificationData) MarshalJSON ¶
func (r InferencePipelineDataStreamParamsConfigTextClassificationData) MarshalJSON() (data []byte, err error)
type InferencePipelineDataStreamParamsConfigUnion ¶
type InferencePipelineDataStreamParamsConfigUnion interface {
// contains filtered or unexported methods
}
Configuration for the data stream. Depends on your **Openlayer project task type**.
Satisfied by InferencePipelineDataStreamParamsConfigLlmData, InferencePipelineDataStreamParamsConfigTabularClassificationData, InferencePipelineDataStreamParamsConfigTabularRegressionData, InferencePipelineDataStreamParamsConfigTextClassificationData, InferencePipelineDataStreamParamsConfig.
type InferencePipelineDataStreamResponse ¶
type InferencePipelineDataStreamResponse struct {
Success InferencePipelineDataStreamResponseSuccess `json:"success" api:"required"`
JSON inferencePipelineDataStreamResponseJSON `json:"-"`
}
func (*InferencePipelineDataStreamResponse) UnmarshalJSON ¶
func (r *InferencePipelineDataStreamResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineDataStreamResponseSuccess ¶
type InferencePipelineDataStreamResponseSuccess bool
const (
InferencePipelineDataStreamResponseSuccessTrue InferencePipelineDataStreamResponseSuccess = true
)
func (InferencePipelineDataStreamResponseSuccess) IsKnown ¶
func (r InferencePipelineDataStreamResponseSuccess) IsKnown() bool
type InferencePipelineGetParams ¶
type InferencePipelineGetParams struct {
// Expand specific nested objects.
Expand param.Field[[]InferencePipelineGetParamsExpand] `query:"expand"`
}
func (InferencePipelineGetParams) URLQuery ¶
func (r InferencePipelineGetParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineGetParams's query parameters as `url.Values`.
type InferencePipelineGetParamsExpand ¶
type InferencePipelineGetParamsExpand string
const ( InferencePipelineGetParamsExpandProject InferencePipelineGetParamsExpand = "project" InferencePipelineGetParamsExpandWorkspace InferencePipelineGetParamsExpand = "workspace" )
func (InferencePipelineGetParamsExpand) IsKnown ¶
func (r InferencePipelineGetParamsExpand) IsKnown() bool
type InferencePipelineGetResponse ¶
type InferencePipelineGetResponse struct {
// The inference pipeline id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived" api:"required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description" api:"required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
Links InferencePipelineGetResponseLinks `json:"links" api:"required"`
// The inference pipeline name.
Name string `json:"name" api:"required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status InferencePipelineGetResponseStatus `json:"status" api:"required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
DataBackend InferencePipelineGetResponseDataBackend `json:"dataBackend" api:"nullable"`
// The last time the data was polled.
DateLastPolled time.Time `json:"dateLastPolled" api:"nullable" format:"date-time"`
Project InferencePipelineGetResponseProject `json:"project" api:"nullable"`
// The total number of records in the data backend.
TotalRecordsCount int64 `json:"totalRecordsCount" api:"nullable"`
Workspace InferencePipelineGetResponseWorkspace `json:"workspace" api:"nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON inferencePipelineGetResponseJSON `json:"-"`
}
func (*InferencePipelineGetResponse) UnmarshalJSON ¶
func (r *InferencePipelineGetResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackend ¶ added in v0.2.0
type InferencePipelineGetResponseDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"nullable" format:"uuid"`
// This field can have the runtime type of
// [InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig],
// [InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig],
// [InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig],
// [InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig],
// [InferencePipelineGetResponseDataBackendPostgresDataBackendConfig].
Config interface{} `json:"config"`
Database string `json:"database"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"nullable" format:"uuid"`
DatasetID string `json:"datasetId"`
PartitionType InferencePipelineGetResponseDataBackendPartitionType `json:"partitionType" api:"nullable"`
PostgresConnectionID string `json:"postgresConnectionId" api:"nullable" format:"uuid"`
ProjectID string `json:"projectId"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"nullable" format:"uuid"`
Schema string `json:"schema"`
SchemaName string `json:"schemaName"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"nullable" format:"uuid"`
Table string `json:"table" api:"nullable"`
TableID string `json:"tableId" api:"nullable"`
TableName string `json:"tableName"`
JSON inferencePipelineGetResponseDataBackendJSON `json:"-"`
// contains filtered or unexported fields
}
func (InferencePipelineGetResponseDataBackend) AsUnion ¶ added in v0.2.0
func (r InferencePipelineGetResponseDataBackend) AsUnion() InferencePipelineGetResponseDataBackendUnion
AsUnion returns a InferencePipelineGetResponseDataBackendUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are InferencePipelineGetResponseDataBackendBigQueryDataBackend, InferencePipelineGetResponseDataBackendDefaultDataBackend, InferencePipelineGetResponseDataBackendSnowflakeDataBackend, InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend, InferencePipelineGetResponseDataBackendRedshiftDataBackend, InferencePipelineGetResponseDataBackendPostgresDataBackend.
func (*InferencePipelineGetResponseDataBackend) UnmarshalJSON ¶ added in v0.2.0
func (r *InferencePipelineGetResponseDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendBackendType ¶ added in v0.2.0
type InferencePipelineGetResponseDataBackendBackendType string
const ( InferencePipelineGetResponseDataBackendBackendTypeBigquery InferencePipelineGetResponseDataBackendBackendType = "bigquery" InferencePipelineGetResponseDataBackendBackendTypeDefault InferencePipelineGetResponseDataBackendBackendType = "default" InferencePipelineGetResponseDataBackendBackendTypeSnowflake InferencePipelineGetResponseDataBackendBackendType = "snowflake" InferencePipelineGetResponseDataBackendBackendTypeDatabricksDtl InferencePipelineGetResponseDataBackendBackendType = "databricks_dtl" InferencePipelineGetResponseDataBackendBackendTypeRedshift InferencePipelineGetResponseDataBackendBackendType = "redshift" InferencePipelineGetResponseDataBackendBackendTypePostgres InferencePipelineGetResponseDataBackendBackendType = "postgres" )
func (InferencePipelineGetResponseDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendBigQueryDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendBigQueryDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"required,nullable" format:"uuid"`
DatasetID string `json:"datasetId" api:"required"`
ProjectID string `json:"projectId" api:"required"`
TableID string `json:"tableId" api:"required,nullable"`
PartitionType InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType `json:"partitionType" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendBigQueryDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendBigQueryDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendBigQueryDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendTypeBigquery InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType = "bigquery"
)
func (InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendBigQueryDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendBigQueryDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType string
const ( InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionTypeDay InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType = "DAY" InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionTypeMonth InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType = "MONTH" InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionTypeYear InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType = "YEAR" )
func (InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendBigQueryDataBackendPartitionType) IsKnown() bool
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType `json:"backendType" api:"required"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"required,nullable" format:"uuid"`
TableID string `json:"tableId" api:"required,nullable"`
JSON inferencePipelineGetResponseDataBackendDatabricksDtlDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendTypeDatabricksDtl InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType = "databricks_dtl"
)
func (InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendDefaultDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendDefaultDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType `json:"backendType" api:"required"`
JSON inferencePipelineGetResponseDataBackendDefaultDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendDefaultDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendDefaultDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendDefaultDataBackendBackendTypeDefault InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType = "default"
)
func (InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendDefaultDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendPartitionType ¶ added in v0.2.0
type InferencePipelineGetResponseDataBackendPartitionType string
const ( InferencePipelineGetResponseDataBackendPartitionTypeDay InferencePipelineGetResponseDataBackendPartitionType = "DAY" InferencePipelineGetResponseDataBackendPartitionTypeMonth InferencePipelineGetResponseDataBackendPartitionType = "MONTH" InferencePipelineGetResponseDataBackendPartitionTypeYear InferencePipelineGetResponseDataBackendPartitionType = "YEAR" )
func (InferencePipelineGetResponseDataBackendPartitionType) IsKnown ¶ added in v0.2.0
func (r InferencePipelineGetResponseDataBackendPartitionType) IsKnown() bool
type InferencePipelineGetResponseDataBackendPostgresDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendPostgresDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
PostgresConnectionID string `json:"postgresConnectionId" api:"required,nullable" format:"uuid"`
Schema string `json:"schema" api:"required"`
Table string `json:"table" api:"required,nullable"`
JSON inferencePipelineGetResponseDataBackendPostgresDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendPostgresDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendPostgresDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendPostgresDataBackendBackendTypePostgres InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType = "postgres"
)
func (InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendPostgresDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendPostgresDataBackendConfig ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendPostgresDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendPostgresDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendRedshiftDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendRedshiftDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType `json:"backendType" api:"required"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"required,nullable" format:"uuid"`
SchemaName string `json:"schemaName" api:"required"`
TableName string `json:"tableName" api:"required"`
JSON inferencePipelineGetResponseDataBackendRedshiftDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendRedshiftDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendRedshiftDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendTypeRedshift InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType = "redshift"
)
func (InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendRedshiftDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendRedshiftDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendSnowflakeDataBackend ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendSnowflakeDataBackend struct {
BackendType InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
Schema string `json:"schema" api:"required"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"required,nullable" format:"uuid"`
Table string `json:"table" api:"required,nullable"`
JSON inferencePipelineGetResponseDataBackendSnowflakeDataBackendJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendSnowflakeDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendSnowflakeDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType string
const (
InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendTypeSnowflake InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType = "snowflake"
)
func (InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineGetResponseDataBackendSnowflakeDataBackendBackendType) IsKnown() bool
type InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig ¶ added in v0.3.1
type InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineGetResponseDataBackendSnowflakeDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineGetResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseDataBackendUnion ¶ added in v0.2.0
type InferencePipelineGetResponseDataBackendUnion interface {
// contains filtered or unexported methods
}
Union satisfied by InferencePipelineGetResponseDataBackendBigQueryDataBackend, InferencePipelineGetResponseDataBackendDefaultDataBackend, InferencePipelineGetResponseDataBackendSnowflakeDataBackend, InferencePipelineGetResponseDataBackendDatabricksDtlDataBackend, InferencePipelineGetResponseDataBackendRedshiftDataBackend or InferencePipelineGetResponseDataBackendPostgresDataBackend.
type InferencePipelineGetResponseLinks ¶
type InferencePipelineGetResponseLinks struct {
App string `json:"app" api:"required"`
JSON inferencePipelineGetResponseLinksJSON `json:"-"`
}
func (*InferencePipelineGetResponseLinks) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseLinks) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseProject ¶
type InferencePipelineGetResponseProject struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links InferencePipelineGetResponseProjectLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source InferencePipelineGetResponseProjectSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType InferencePipelineGetResponseProjectTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo InferencePipelineGetResponseProjectGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON inferencePipelineGetResponseProjectJSON `json:"-"`
}
func (*InferencePipelineGetResponseProject) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseProject) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseProjectGitRepo ¶
type InferencePipelineGetResponseProjectGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON inferencePipelineGetResponseProjectGitRepoJSON `json:"-"`
}
func (*InferencePipelineGetResponseProjectGitRepo) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseProjectGitRepo) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseProjectLinks ¶
type InferencePipelineGetResponseProjectLinks struct {
App string `json:"app" api:"required"`
JSON inferencePipelineGetResponseProjectLinksJSON `json:"-"`
}
Links to the project.
func (*InferencePipelineGetResponseProjectLinks) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseProjectLinks) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseProjectSource ¶
type InferencePipelineGetResponseProjectSource string
The source of the project.
const ( InferencePipelineGetResponseProjectSourceWeb InferencePipelineGetResponseProjectSource = "web" InferencePipelineGetResponseProjectSourceAPI InferencePipelineGetResponseProjectSource = "api" )
func (InferencePipelineGetResponseProjectSource) IsKnown ¶
func (r InferencePipelineGetResponseProjectSource) IsKnown() bool
type InferencePipelineGetResponseProjectTaskType ¶
type InferencePipelineGetResponseProjectTaskType string
The task type of the project.
const ( InferencePipelineGetResponseProjectTaskTypeLlmBase InferencePipelineGetResponseProjectTaskType = "llm-base" InferencePipelineGetResponseProjectTaskTypeTabularClassification InferencePipelineGetResponseProjectTaskType = "tabular-classification" InferencePipelineGetResponseProjectTaskTypeTabularRegression InferencePipelineGetResponseProjectTaskType = "tabular-regression" InferencePipelineGetResponseProjectTaskTypeTextClassification InferencePipelineGetResponseProjectTaskType = "text-classification" )
func (InferencePipelineGetResponseProjectTaskType) IsKnown ¶
func (r InferencePipelineGetResponseProjectTaskType) IsKnown() bool
type InferencePipelineGetResponseStatus ¶
type InferencePipelineGetResponseStatus string
The status of test evaluation for the inference pipeline.
const ( InferencePipelineGetResponseStatusQueued InferencePipelineGetResponseStatus = "queued" InferencePipelineGetResponseStatusRunning InferencePipelineGetResponseStatus = "running" InferencePipelineGetResponseStatusPaused InferencePipelineGetResponseStatus = "paused" InferencePipelineGetResponseStatusFailed InferencePipelineGetResponseStatus = "failed" InferencePipelineGetResponseStatusCompleted InferencePipelineGetResponseStatus = "completed" InferencePipelineGetResponseStatusUnknown InferencePipelineGetResponseStatus = "unknown" )
func (InferencePipelineGetResponseStatus) IsKnown ¶
func (r InferencePipelineGetResponseStatus) IsKnown() bool
type InferencePipelineGetResponseWorkspace ¶
type InferencePipelineGetResponseWorkspace struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status InferencePipelineGetResponseWorkspaceStatus `json:"status" api:"required"`
MonthlyUsage []InferencePipelineGetResponseWorkspaceMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON inferencePipelineGetResponseWorkspaceJSON `json:"-"`
}
func (*InferencePipelineGetResponseWorkspace) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseWorkspace) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseWorkspaceMonthlyUsage ¶
type InferencePipelineGetResponseWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON inferencePipelineGetResponseWorkspaceMonthlyUsageJSON `json:"-"`
}
func (*InferencePipelineGetResponseWorkspaceMonthlyUsage) UnmarshalJSON ¶
func (r *InferencePipelineGetResponseWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetResponseWorkspaceStatus ¶
type InferencePipelineGetResponseWorkspaceStatus string
const ( InferencePipelineGetResponseWorkspaceStatusActive InferencePipelineGetResponseWorkspaceStatus = "active" InferencePipelineGetResponseWorkspaceStatusPastDue InferencePipelineGetResponseWorkspaceStatus = "past_due" InferencePipelineGetResponseWorkspaceStatusUnpaid InferencePipelineGetResponseWorkspaceStatus = "unpaid" InferencePipelineGetResponseWorkspaceStatusCanceled InferencePipelineGetResponseWorkspaceStatus = "canceled" InferencePipelineGetResponseWorkspaceStatusIncomplete InferencePipelineGetResponseWorkspaceStatus = "incomplete" InferencePipelineGetResponseWorkspaceStatusIncompleteExpired InferencePipelineGetResponseWorkspaceStatus = "incomplete_expired" InferencePipelineGetResponseWorkspaceStatusTrialing InferencePipelineGetResponseWorkspaceStatus = "trialing" InferencePipelineGetResponseWorkspaceStatusPaused InferencePipelineGetResponseWorkspaceStatus = "paused" )
func (InferencePipelineGetResponseWorkspaceStatus) IsKnown ¶
func (r InferencePipelineGetResponseWorkspaceStatus) IsKnown() bool
type InferencePipelineGetSessionsParams ¶ added in v0.7.0
type InferencePipelineGetSessionsParams struct {
// Whether or not to sort on the sortColumn in ascending order.
Asc param.Field[bool] `query:"asc"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Name of the column to sort on
SortColumn param.Field[string] `query:"sortColumn"`
ColumnFilters param.Field[[]InferencePipelineGetSessionsParamsColumnFilterUnion] `json:"columnFilters"`
ExcludeRowIDList param.Field[[]int64] `json:"excludeRowIdList"`
NotSearchQueryAnd param.Field[[]string] `json:"notSearchQueryAnd"`
NotSearchQueryOr param.Field[[]string] `json:"notSearchQueryOr"`
RowIDList param.Field[[]int64] `json:"rowIdList"`
SearchQueryAnd param.Field[[]string] `json:"searchQueryAnd"`
SearchQueryOr param.Field[[]string] `json:"searchQueryOr"`
}
func (InferencePipelineGetSessionsParams) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParams) MarshalJSON() (data []byte, err error)
func (InferencePipelineGetSessionsParams) URLQuery ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineGetSessionsParams's query parameters as `url.Values`.
type InferencePipelineGetSessionsParamsColumnFilter ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetSessionsParamsColumnFiltersOperator] `json:"operator" api:"required"`
Value param.Field[interface{}] `json:"value" api:"required"`
}
func (InferencePipelineGetSessionsParamsColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetSessionsParamsColumnFilterUnion ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFilterUnion interface {
// contains filtered or unexported methods
}
Satisfied by InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter, InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter, InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter, InferencePipelineGetSessionsParamsColumnFilter.
type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[float64] `json:"value" api:"required"`
}
func (InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator string
const ( InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorGreater InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = ">" InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorGreaterOrEquals InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = ">=" InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorIs InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = "is" InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorLess InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = "<" InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorLessOrEquals InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = "<=" InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperatorNotEquals InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator = "!=" )
func (InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersNumericColumnFilterOperator) IsKnown() bool
type InferencePipelineGetSessionsParamsColumnFiltersOperator ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersOperator string
const ( InferencePipelineGetSessionsParamsColumnFiltersOperatorContainsNone InferencePipelineGetSessionsParamsColumnFiltersOperator = "contains_none" InferencePipelineGetSessionsParamsColumnFiltersOperatorContainsAny InferencePipelineGetSessionsParamsColumnFiltersOperator = "contains_any" InferencePipelineGetSessionsParamsColumnFiltersOperatorContainsAll InferencePipelineGetSessionsParamsColumnFiltersOperator = "contains_all" InferencePipelineGetSessionsParamsColumnFiltersOperatorOneOf InferencePipelineGetSessionsParamsColumnFiltersOperator = "one_of" InferencePipelineGetSessionsParamsColumnFiltersOperatorNoneOf InferencePipelineGetSessionsParamsColumnFiltersOperator = "none_of" InferencePipelineGetSessionsParamsColumnFiltersOperatorGreater InferencePipelineGetSessionsParamsColumnFiltersOperator = ">" InferencePipelineGetSessionsParamsColumnFiltersOperatorGreaterOrEquals InferencePipelineGetSessionsParamsColumnFiltersOperator = ">=" InferencePipelineGetSessionsParamsColumnFiltersOperatorIs InferencePipelineGetSessionsParamsColumnFiltersOperator = "is" InferencePipelineGetSessionsParamsColumnFiltersOperatorLess InferencePipelineGetSessionsParamsColumnFiltersOperator = "<" InferencePipelineGetSessionsParamsColumnFiltersOperatorLessOrEquals InferencePipelineGetSessionsParamsColumnFiltersOperator = "<=" InferencePipelineGetSessionsParamsColumnFiltersOperatorNotEquals InferencePipelineGetSessionsParamsColumnFiltersOperator = "!=" )
func (InferencePipelineGetSessionsParamsColumnFiltersOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersOperator) IsKnown() bool
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[[]InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator string
const ( InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperatorContainsNone InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator = "contains_none" InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperatorContainsAny InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator = "contains_any" InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperatorContainsAll InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator = "contains_all" InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperatorOneOf InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator = "one_of" InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperatorNoneOf InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator = "none_of" )
func (InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterOperator) IsKnown() bool
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterValueUnion ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterValueUnion interface {
ImplementsInferencePipelineGetSessionsParamsColumnFiltersSetColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat.
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator string
const ( InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperatorIs InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator = "is" InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperatorNotEquals InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator = "!=" )
func (InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterOperator) IsKnown() bool
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterValueUnion ¶ added in v0.7.0
type InferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterValueUnion interface {
ImplementsInferencePipelineGetSessionsParamsColumnFiltersStringColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionBool.
type InferencePipelineGetSessionsResponse ¶ added in v0.7.0
type InferencePipelineGetSessionsResponse struct {
// Array of session aggregation data
Items []InferencePipelineGetSessionsResponseItem `json:"items" api:"required"`
JSON inferencePipelineGetSessionsResponseJSON `json:"-"`
}
func (*InferencePipelineGetSessionsResponse) UnmarshalJSON ¶ added in v0.7.0
func (r *InferencePipelineGetSessionsResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetSessionsResponseItem ¶ added in v0.7.0
type InferencePipelineGetSessionsResponseItem struct {
// The unique session identifier
ID string `json:"id" api:"required"`
// Total cost for the session
Cost float64 `json:"cost" api:"required"`
// Latest/most recent timestamp in the session
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// Timestamp of the first request in the session
DateOfFirstRecord time.Time `json:"dateOfFirstRecord" api:"required" format:"date-time"`
// Timestamp of the last request in the session
DateOfLastRecord time.Time `json:"dateOfLastRecord" api:"required" format:"date-time"`
// Duration between first and last request (in milliseconds)
Duration float64 `json:"duration" api:"required"`
// The complete first record in the session
FirstRecord map[string]interface{} `json:"firstRecord" api:"required"`
// The complete last record in the session
LastRecord map[string]interface{} `json:"lastRecord" api:"required"`
// Total latency for the session (in milliseconds)
Latency float64 `json:"latency" api:"required"`
// Total number of records/traces in the session
Records int64 `json:"records" api:"required"`
// Total token count for the session
Tokens float64 `json:"tokens" api:"required"`
// List of unique user IDs that participated in this session
UserIDs []string `json:"userIds" api:"required"`
JSON inferencePipelineGetSessionsResponseItemJSON `json:"-"`
}
func (*InferencePipelineGetSessionsResponseItem) UnmarshalJSON ¶ added in v0.7.0
func (r *InferencePipelineGetSessionsResponseItem) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetUsersParams ¶ added in v0.4.3
type InferencePipelineGetUsersParams struct {
// Whether or not to sort on the sortColumn in ascending order.
Asc param.Field[bool] `query:"asc"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Name of the column to sort on
SortColumn param.Field[string] `query:"sortColumn"`
ColumnFilters param.Field[[]InferencePipelineGetUsersParamsColumnFilterUnion] `json:"columnFilters"`
ExcludeRowIDList param.Field[[]int64] `json:"excludeRowIdList"`
NotSearchQueryAnd param.Field[[]string] `json:"notSearchQueryAnd"`
NotSearchQueryOr param.Field[[]string] `json:"notSearchQueryOr"`
RowIDList param.Field[[]int64] `json:"rowIdList"`
SearchQueryAnd param.Field[[]string] `json:"searchQueryAnd"`
SearchQueryOr param.Field[[]string] `json:"searchQueryOr"`
}
func (InferencePipelineGetUsersParams) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetUsersParams) MarshalJSON() (data []byte, err error)
func (InferencePipelineGetUsersParams) URLQuery ¶ added in v0.4.3
func (r InferencePipelineGetUsersParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineGetUsersParams's query parameters as `url.Values`.
type InferencePipelineGetUsersParamsColumnFilter ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetUsersParamsColumnFiltersOperator] `json:"operator" api:"required"`
Value param.Field[interface{}] `json:"value" api:"required"`
}
func (InferencePipelineGetUsersParamsColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetUsersParamsColumnFilterUnion ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFilterUnion interface {
// contains filtered or unexported methods
}
Satisfied by InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter, InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter, InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter, InferencePipelineGetUsersParamsColumnFilter.
type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[float64] `json:"value" api:"required"`
}
func (InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator string
const ( InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorGreater InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = ">" InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorGreaterOrEquals InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = ">=" InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorIs InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = "is" InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorLess InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = "<" InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorLessOrEquals InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = "<=" InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperatorNotEquals InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator = "!=" )
func (InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersNumericColumnFilterOperator) IsKnown() bool
type InferencePipelineGetUsersParamsColumnFiltersOperator ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersOperator string
const ( InferencePipelineGetUsersParamsColumnFiltersOperatorContainsNone InferencePipelineGetUsersParamsColumnFiltersOperator = "contains_none" InferencePipelineGetUsersParamsColumnFiltersOperatorContainsAny InferencePipelineGetUsersParamsColumnFiltersOperator = "contains_any" InferencePipelineGetUsersParamsColumnFiltersOperatorContainsAll InferencePipelineGetUsersParamsColumnFiltersOperator = "contains_all" InferencePipelineGetUsersParamsColumnFiltersOperatorOneOf InferencePipelineGetUsersParamsColumnFiltersOperator = "one_of" InferencePipelineGetUsersParamsColumnFiltersOperatorNoneOf InferencePipelineGetUsersParamsColumnFiltersOperator = "none_of" InferencePipelineGetUsersParamsColumnFiltersOperatorGreater InferencePipelineGetUsersParamsColumnFiltersOperator = ">" InferencePipelineGetUsersParamsColumnFiltersOperatorGreaterOrEquals InferencePipelineGetUsersParamsColumnFiltersOperator = ">=" InferencePipelineGetUsersParamsColumnFiltersOperatorIs InferencePipelineGetUsersParamsColumnFiltersOperator = "is" InferencePipelineGetUsersParamsColumnFiltersOperatorLess InferencePipelineGetUsersParamsColumnFiltersOperator = "<" InferencePipelineGetUsersParamsColumnFiltersOperatorLessOrEquals InferencePipelineGetUsersParamsColumnFiltersOperator = "<=" InferencePipelineGetUsersParamsColumnFiltersOperatorNotEquals InferencePipelineGetUsersParamsColumnFiltersOperator = "!=" )
func (InferencePipelineGetUsersParamsColumnFiltersOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersOperator) IsKnown() bool
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[[]InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersSetColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator string
const ( InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperatorContainsNone InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator = "contains_none" InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperatorContainsAny InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator = "contains_any" InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperatorContainsAll InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator = "contains_all" InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperatorOneOf InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator = "one_of" InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperatorNoneOf InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator = "none_of" )
func (InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterOperator) IsKnown() bool
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterValueUnion ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersSetColumnFilterValueUnion interface {
ImplementsInferencePipelineGetUsersParamsColumnFiltersSetColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat.
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter) MarshalJSON ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersStringColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator string
const ( InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperatorIs InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator = "is" InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperatorNotEquals InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator = "!=" )
func (InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator) IsKnown ¶ added in v0.7.0
func (r InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterOperator) IsKnown() bool
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterValueUnion ¶ added in v0.7.0
type InferencePipelineGetUsersParamsColumnFiltersStringColumnFilterValueUnion interface {
ImplementsInferencePipelineGetUsersParamsColumnFiltersStringColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionBool.
type InferencePipelineGetUsersResponse ¶ added in v0.4.3
type InferencePipelineGetUsersResponse struct {
// Array of user aggregation data
Items []InferencePipelineGetUsersResponseItem `json:"items" api:"required"`
JSON inferencePipelineGetUsersResponseJSON `json:"-"`
}
func (*InferencePipelineGetUsersResponse) UnmarshalJSON ¶ added in v0.4.3
func (r *InferencePipelineGetUsersResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineGetUsersResponseItem ¶ added in v0.4.3
type InferencePipelineGetUsersResponseItem struct {
// The unique user identifier
ID string `json:"id" api:"required"`
// Total cost for this user
Cost float64 `json:"cost" api:"required"`
// Timestamp of the user's first event/trace
DateOfFirstRecord time.Time `json:"dateOfFirstRecord" api:"required" format:"date-time"`
// Timestamp of the user's last event/trace
DateOfLastRecord time.Time `json:"dateOfLastRecord" api:"required" format:"date-time"`
// Total number of traces/rows for this user
Records int64 `json:"records" api:"required"`
// Count of unique sessions for this user
Sessions int64 `json:"sessions" api:"required"`
// Total token count for this user
Tokens float64 `json:"tokens" api:"required"`
JSON inferencePipelineGetUsersResponseItemJSON `json:"-"`
}
func (*InferencePipelineGetUsersResponseItem) UnmarshalJSON ¶ added in v0.4.3
func (r *InferencePipelineGetUsersResponseItem) UnmarshalJSON(data []byte) (err error)
type InferencePipelineRowGetResponse ¶ added in v0.7.1
type InferencePipelineRowGetResponse struct {
Row interface{} `json:"row"`
Success bool `json:"success"`
JSON inferencePipelineRowGetResponseJSON `json:"-"`
}
func (*InferencePipelineRowGetResponse) UnmarshalJSON ¶ added in v0.7.1
func (r *InferencePipelineRowGetResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineRowListParams ¶ added in v0.5.0
type InferencePipelineRowListParams struct {
// Whether or not to sort on the sortColumn in ascending order.
Asc param.Field[bool] `query:"asc"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Name of the column to sort on
SortColumn param.Field[string] `query:"sortColumn"`
ColumnFilters param.Field[[]InferencePipelineRowListParamsColumnFilterUnion] `json:"columnFilters"`
ExcludeRowIDList param.Field[[]int64] `json:"excludeRowIdList"`
NotSearchQueryAnd param.Field[[]string] `json:"notSearchQueryAnd"`
NotSearchQueryOr param.Field[[]string] `json:"notSearchQueryOr"`
RowIDList param.Field[[]int64] `json:"rowIdList"`
SearchQueryAnd param.Field[[]string] `json:"searchQueryAnd"`
SearchQueryOr param.Field[[]string] `json:"searchQueryOr"`
}
func (InferencePipelineRowListParams) MarshalJSON ¶ added in v0.5.0
func (r InferencePipelineRowListParams) MarshalJSON() (data []byte, err error)
func (InferencePipelineRowListParams) URLQuery ¶ added in v0.5.0
func (r InferencePipelineRowListParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineRowListParams's query parameters as `url.Values`.
type InferencePipelineRowListParamsColumnFilter ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineRowListParamsColumnFiltersOperator] `json:"operator" api:"required"`
Value param.Field[interface{}] `json:"value" api:"required"`
}
func (InferencePipelineRowListParamsColumnFilter) MarshalJSON ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineRowListParamsColumnFilterUnion ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFilterUnion interface {
// contains filtered or unexported methods
}
Satisfied by InferencePipelineRowListParamsColumnFiltersSetColumnFilter, InferencePipelineRowListParamsColumnFiltersNumericColumnFilter, InferencePipelineRowListParamsColumnFiltersStringColumnFilter, InferencePipelineRowListParamsColumnFilter.
type InferencePipelineRowListParamsColumnFiltersNumericColumnFilter ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[float64] `json:"value" api:"required"`
}
func (InferencePipelineRowListParamsColumnFiltersNumericColumnFilter) MarshalJSON ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersNumericColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator string
const ( InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorGreater InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = ">" InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorGreaterOrEquals InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = ">=" InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorIs InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = "is" InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorLess InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = "<" InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorLessOrEquals InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = "<=" InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperatorNotEquals InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator = "!=" )
func (InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator) IsKnown ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersNumericColumnFilterOperator) IsKnown() bool
type InferencePipelineRowListParamsColumnFiltersOperator ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersOperator string
const ( InferencePipelineRowListParamsColumnFiltersOperatorContainsNone InferencePipelineRowListParamsColumnFiltersOperator = "contains_none" InferencePipelineRowListParamsColumnFiltersOperatorContainsAny InferencePipelineRowListParamsColumnFiltersOperator = "contains_any" InferencePipelineRowListParamsColumnFiltersOperatorContainsAll InferencePipelineRowListParamsColumnFiltersOperator = "contains_all" InferencePipelineRowListParamsColumnFiltersOperatorOneOf InferencePipelineRowListParamsColumnFiltersOperator = "one_of" InferencePipelineRowListParamsColumnFiltersOperatorNoneOf InferencePipelineRowListParamsColumnFiltersOperator = "none_of" InferencePipelineRowListParamsColumnFiltersOperatorGreater InferencePipelineRowListParamsColumnFiltersOperator = ">" InferencePipelineRowListParamsColumnFiltersOperatorGreaterOrEquals InferencePipelineRowListParamsColumnFiltersOperator = ">=" InferencePipelineRowListParamsColumnFiltersOperatorIs InferencePipelineRowListParamsColumnFiltersOperator = "is" InferencePipelineRowListParamsColumnFiltersOperatorLess InferencePipelineRowListParamsColumnFiltersOperator = "<" InferencePipelineRowListParamsColumnFiltersOperatorLessOrEquals InferencePipelineRowListParamsColumnFiltersOperator = "<=" InferencePipelineRowListParamsColumnFiltersOperatorNotEquals InferencePipelineRowListParamsColumnFiltersOperator = "!=" )
func (InferencePipelineRowListParamsColumnFiltersOperator) IsKnown ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersOperator) IsKnown() bool
type InferencePipelineRowListParamsColumnFiltersSetColumnFilter ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[[]InferencePipelineRowListParamsColumnFiltersSetColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineRowListParamsColumnFiltersSetColumnFilter) MarshalJSON ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersSetColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator string
const ( InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperatorContainsNone InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator = "contains_none" InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperatorContainsAny InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator = "contains_any" InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperatorContainsAll InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator = "contains_all" InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperatorOneOf InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator = "one_of" InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperatorNoneOf InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator = "none_of" )
func (InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator) IsKnown ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersSetColumnFilterOperator) IsKnown() bool
type InferencePipelineRowListParamsColumnFiltersSetColumnFilterValueUnion ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersSetColumnFilterValueUnion interface {
ImplementsInferencePipelineRowListParamsColumnFiltersSetColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionFloat.
type InferencePipelineRowListParamsColumnFiltersStringColumnFilter ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement param.Field[string] `json:"measurement" api:"required"`
Operator param.Field[InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator] `json:"operator" api:"required"`
Value param.Field[InferencePipelineRowListParamsColumnFiltersStringColumnFilterValueUnion] `json:"value" api:"required"`
}
func (InferencePipelineRowListParamsColumnFiltersStringColumnFilter) MarshalJSON ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersStringColumnFilter) MarshalJSON() (data []byte, err error)
type InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator string
const ( InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperatorIs InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator = "is" InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperatorNotEquals InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator = "!=" )
func (InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator) IsKnown ¶ added in v0.5.0
func (r InferencePipelineRowListParamsColumnFiltersStringColumnFilterOperator) IsKnown() bool
type InferencePipelineRowListParamsColumnFiltersStringColumnFilterValueUnion ¶ added in v0.5.0
type InferencePipelineRowListParamsColumnFiltersStringColumnFilterValueUnion interface {
ImplementsInferencePipelineRowListParamsColumnFiltersStringColumnFilterValueUnion()
}
Satisfied by shared.UnionString, shared.UnionBool.
type InferencePipelineRowListResponse ¶ added in v0.5.0
type InferencePipelineRowListResponse struct {
Items []InferencePipelineRowListResponseItem `json:"items" api:"required"`
JSON inferencePipelineRowListResponseJSON `json:"-"`
}
func (*InferencePipelineRowListResponse) UnmarshalJSON ¶ added in v0.5.0
func (r *InferencePipelineRowListResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineRowListResponseItem ¶ added in v0.5.0
type InferencePipelineRowListResponseItem struct {
OpenlayerRowID int64 `json:"openlayer_row_id" api:"required"`
JSON inferencePipelineRowListResponseItemJSON `json:"-"`
}
func (*InferencePipelineRowListResponseItem) UnmarshalJSON ¶ added in v0.5.0
func (r *InferencePipelineRowListResponseItem) UnmarshalJSON(data []byte) (err error)
type InferencePipelineRowService ¶
type InferencePipelineRowService struct {
Options []option.RequestOption
}
InferencePipelineRowService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInferencePipelineRowService method instead.
func NewInferencePipelineRowService ¶
func NewInferencePipelineRowService(opts ...option.RequestOption) (r *InferencePipelineRowService)
NewInferencePipelineRowService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InferencePipelineRowService) Delete ¶ added in v0.7.1
func (r *InferencePipelineRowService) Delete(ctx context.Context, inferencePipelineID string, inferenceID string, opts ...option.RequestOption) (err error)
Delete a single inference pipeline row by inference ID. Only project admins can perform this action.
func (*InferencePipelineRowService) Get ¶ added in v0.7.1
func (r *InferencePipelineRowService) Get(ctx context.Context, inferencePipelineID string, inferenceID string, opts ...option.RequestOption) (res *InferencePipelineRowGetResponse, err error)
Fetch a single inference pipeline row by inference ID, including OTel steps.
func (*InferencePipelineRowService) List ¶ added in v0.5.0
func (r *InferencePipelineRowService) List(ctx context.Context, inferencePipelineID string, params InferencePipelineRowListParams, opts ...option.RequestOption) (res *InferencePipelineRowListResponse, err error)
A list of rows for an inference pipeline.
func (*InferencePipelineRowService) Update ¶
func (r *InferencePipelineRowService) Update(ctx context.Context, inferencePipelineID string, params InferencePipelineRowUpdateParams, opts ...option.RequestOption) (res *InferencePipelineRowUpdateResponse, err error)
Update an inference data point in an inference pipeline.
type InferencePipelineRowUpdateParams ¶
type InferencePipelineRowUpdateParams struct {
// Specify the inference id as a query param.
InferenceID param.Field[string] `query:"inferenceId" api:"required"`
Row param.Field[interface{}] `json:"row" api:"required"`
Config param.Field[InferencePipelineRowUpdateParamsConfig] `json:"config"`
}
func (InferencePipelineRowUpdateParams) MarshalJSON ¶
func (r InferencePipelineRowUpdateParams) MarshalJSON() (data []byte, err error)
func (InferencePipelineRowUpdateParams) URLQuery ¶
func (r InferencePipelineRowUpdateParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineRowUpdateParams's query parameters as `url.Values`.
type InferencePipelineRowUpdateParamsConfig ¶
type InferencePipelineRowUpdateParamsConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (InferencePipelineRowUpdateParamsConfig) MarshalJSON ¶
func (r InferencePipelineRowUpdateParamsConfig) MarshalJSON() (data []byte, err error)
type InferencePipelineRowUpdateResponse ¶
type InferencePipelineRowUpdateResponse struct {
Success InferencePipelineRowUpdateResponseSuccess `json:"success" api:"required"`
JSON inferencePipelineRowUpdateResponseJSON `json:"-"`
}
func (*InferencePipelineRowUpdateResponse) UnmarshalJSON ¶
func (r *InferencePipelineRowUpdateResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineRowUpdateResponseSuccess ¶
type InferencePipelineRowUpdateResponseSuccess bool
const (
InferencePipelineRowUpdateResponseSuccessTrue InferencePipelineRowUpdateResponseSuccess = true
)
func (InferencePipelineRowUpdateResponseSuccess) IsKnown ¶
func (r InferencePipelineRowUpdateResponseSuccess) IsKnown() bool
type InferencePipelineService ¶
type InferencePipelineService struct {
Options []option.RequestOption
Data *InferencePipelineDataService
Rows *InferencePipelineRowService
TestResults *InferencePipelineTestResultService
}
InferencePipelineService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInferencePipelineService method instead.
func NewInferencePipelineService ¶
func NewInferencePipelineService(opts ...option.RequestOption) (r *InferencePipelineService)
NewInferencePipelineService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InferencePipelineService) Delete ¶
func (r *InferencePipelineService) Delete(ctx context.Context, inferencePipelineID string, opts ...option.RequestOption) (err error)
Delete inference pipeline.
func (*InferencePipelineService) Get ¶
func (r *InferencePipelineService) Get(ctx context.Context, inferencePipelineID string, query InferencePipelineGetParams, opts ...option.RequestOption) (res *InferencePipelineGetResponse, err error)
Retrieve inference pipeline.
func (*InferencePipelineService) GetSessions ¶ added in v0.7.0
func (r *InferencePipelineService) GetSessions(ctx context.Context, inferencePipelineID string, params InferencePipelineGetSessionsParams, opts ...option.RequestOption) (res *InferencePipelineGetSessionsResponse, err error)
Get aggregated session data for an inference pipeline with pagination and metadata.
Returns a list of sessions for the inference pipeline, including activity statistics such as record counts, token usage, cost, latency, and the first and last records.
func (*InferencePipelineService) GetUsers ¶ added in v0.4.3
func (r *InferencePipelineService) GetUsers(ctx context.Context, inferencePipelineID string, params InferencePipelineGetUsersParams, opts ...option.RequestOption) (res *InferencePipelineGetUsersResponse, err error)
Get aggregated user data for an inference pipeline with pagination and metadata.
Returns a list of users who have interacted with the inference pipeline, including their activity statistics such as session counts, record counts, token usage, and costs.
func (*InferencePipelineService) Update ¶
func (r *InferencePipelineService) Update(ctx context.Context, inferencePipelineID string, body InferencePipelineUpdateParams, opts ...option.RequestOption) (res *InferencePipelineUpdateResponse, err error)
Update inference pipeline.
type InferencePipelineTestResultListParams ¶
type InferencePipelineTestResultListParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Filter list of test results by status. Available statuses are `running`,
// `passing`, `failing`, `skipped`, and `error`.
Status param.Field[InferencePipelineTestResultListParamsStatus] `query:"status"`
// Filter objects by test type. Available types are `integrity`, `consistency`,
// `performance`, `fairness`, and `robustness`.
Type param.Field[InferencePipelineTestResultListParamsType] `query:"type"`
}
func (InferencePipelineTestResultListParams) URLQuery ¶
func (r InferencePipelineTestResultListParams) URLQuery() (v url.Values)
URLQuery serializes InferencePipelineTestResultListParams's query parameters as `url.Values`.
type InferencePipelineTestResultListParamsStatus ¶
type InferencePipelineTestResultListParamsStatus string
Filter list of test results by status. Available statuses are `running`, `passing`, `failing`, `skipped`, and `error`.
const ( InferencePipelineTestResultListParamsStatusRunning InferencePipelineTestResultListParamsStatus = "running" InferencePipelineTestResultListParamsStatusPassing InferencePipelineTestResultListParamsStatus = "passing" InferencePipelineTestResultListParamsStatusFailing InferencePipelineTestResultListParamsStatus = "failing" InferencePipelineTestResultListParamsStatusSkipped InferencePipelineTestResultListParamsStatus = "skipped" InferencePipelineTestResultListParamsStatusError InferencePipelineTestResultListParamsStatus = "error" )
func (InferencePipelineTestResultListParamsStatus) IsKnown ¶
func (r InferencePipelineTestResultListParamsStatus) IsKnown() bool
type InferencePipelineTestResultListParamsType ¶
type InferencePipelineTestResultListParamsType string
Filter objects by test type. Available types are `integrity`, `consistency`, `performance`, `fairness`, and `robustness`.
const ( InferencePipelineTestResultListParamsTypeIntegrity InferencePipelineTestResultListParamsType = "integrity" InferencePipelineTestResultListParamsTypeConsistency InferencePipelineTestResultListParamsType = "consistency" InferencePipelineTestResultListParamsTypePerformance InferencePipelineTestResultListParamsType = "performance" InferencePipelineTestResultListParamsTypeFairness InferencePipelineTestResultListParamsType = "fairness" InferencePipelineTestResultListParamsTypeRobustness InferencePipelineTestResultListParamsType = "robustness" )
func (InferencePipelineTestResultListParamsType) IsKnown ¶
func (r InferencePipelineTestResultListParamsType) IsKnown() bool
type InferencePipelineTestResultListResponse ¶
type InferencePipelineTestResultListResponse struct {
Items []InferencePipelineTestResultListResponseItem `json:"items" api:"required"`
JSON inferencePipelineTestResultListResponseJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponse) UnmarshalJSON ¶
func (r *InferencePipelineTestResultListResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItem ¶
type InferencePipelineTestResultListResponseItem struct {
// Project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The data end date.
DateDataEnds time.Time `json:"dateDataEnds" api:"required,nullable" format:"date-time"`
// The data start date.
DateDataStarts time.Time `json:"dateDataStarts" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline id.
InferencePipelineID string `json:"inferencePipelineId" api:"required,nullable" format:"uuid"`
// The project version (commit) id.
ProjectVersionID string `json:"projectVersionId" api:"required,nullable" format:"uuid"`
// The status of the test.
Status InferencePipelineTestResultListResponseItemsStatus `json:"status" api:"required"`
// The status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
ExpectedValues []InferencePipelineTestResultListResponseItemsExpectedValue `json:"expectedValues"`
Goal InferencePipelineTestResultListResponseItemsGoal `json:"goal"`
// The test id.
GoalID string `json:"goalId" api:"nullable" format:"uuid"`
// The URL to the rows of the test result.
Rows string `json:"rows"`
// The body of the rows request.
RowsBody InferencePipelineTestResultListResponseItemsRowsBody `json:"rowsBody" api:"nullable"`
JSON inferencePipelineTestResultListResponseItemJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItem) UnmarshalJSON ¶
func (r *InferencePipelineTestResultListResponseItem) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsExpectedValue ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsExpectedValue struct {
// the lower threshold for the expected value
LowerThreshold float64 `json:"lowerThreshold" api:"nullable"`
// One of the `measurement` values in the test's thresholds
Measurement string `json:"measurement"`
// The upper threshold for the expected value
UpperThreshold float64 `json:"upperThreshold" api:"nullable"`
JSON inferencePipelineTestResultListResponseItemsExpectedValueJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsExpectedValue) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsExpectedValue) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsGoal ¶
type InferencePipelineTestResultListResponseItemsGoal struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype InferencePipelineTestResultListResponseItemsGoalSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []InferencePipelineTestResultListResponseItemsGoalThreshold `json:"thresholds" api:"required"`
// The test type.
Type InferencePipelineTestResultListResponseItemsGoalType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON inferencePipelineTestResultListResponseItemsGoalJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsGoal) UnmarshalJSON ¶
func (r *InferencePipelineTestResultListResponseItemsGoal) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsGoalSubtype ¶
type InferencePipelineTestResultListResponseItemsGoalSubtype string
The test subtype.
const ( InferencePipelineTestResultListResponseItemsGoalSubtypeAnomalousColumnCount InferencePipelineTestResultListResponseItemsGoalSubtype = "anomalousColumnCount" InferencePipelineTestResultListResponseItemsGoalSubtypeCharacterLength InferencePipelineTestResultListResponseItemsGoalSubtype = "characterLength" InferencePipelineTestResultListResponseItemsGoalSubtypeClassImbalanceRatio InferencePipelineTestResultListResponseItemsGoalSubtype = "classImbalanceRatio" InferencePipelineTestResultListResponseItemsGoalSubtypeExpectColumnAToBeInColumnB InferencePipelineTestResultListResponseItemsGoalSubtype = "expectColumnAToBeInColumnB" InferencePipelineTestResultListResponseItemsGoalSubtypeColumnAverage InferencePipelineTestResultListResponseItemsGoalSubtype = "columnAverage" InferencePipelineTestResultListResponseItemsGoalSubtypeColumnDrift InferencePipelineTestResultListResponseItemsGoalSubtype = "columnDrift" InferencePipelineTestResultListResponseItemsGoalSubtypeColumnStatistic InferencePipelineTestResultListResponseItemsGoalSubtype = "columnStatistic" InferencePipelineTestResultListResponseItemsGoalSubtypeColumnValuesMatch InferencePipelineTestResultListResponseItemsGoalSubtype = "columnValuesMatch" InferencePipelineTestResultListResponseItemsGoalSubtypeConflictingLabelRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "conflictingLabelRowCount" InferencePipelineTestResultListResponseItemsGoalSubtypeContainsPii InferencePipelineTestResultListResponseItemsGoalSubtype = "containsPii" InferencePipelineTestResultListResponseItemsGoalSubtypeContainsValidURL InferencePipelineTestResultListResponseItemsGoalSubtype = "containsValidUrl" InferencePipelineTestResultListResponseItemsGoalSubtypeCustomMetricThreshold InferencePipelineTestResultListResponseItemsGoalSubtype = "customMetricThreshold" InferencePipelineTestResultListResponseItemsGoalSubtypeDuplicateRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "duplicateRowCount" InferencePipelineTestResultListResponseItemsGoalSubtypeEmptyFeature InferencePipelineTestResultListResponseItemsGoalSubtype = "emptyFeature" InferencePipelineTestResultListResponseItemsGoalSubtypeEmptyFeatureCount InferencePipelineTestResultListResponseItemsGoalSubtype = "emptyFeatureCount" InferencePipelineTestResultListResponseItemsGoalSubtypeDriftedFeatureCount InferencePipelineTestResultListResponseItemsGoalSubtype = "driftedFeatureCount" InferencePipelineTestResultListResponseItemsGoalSubtypeFeatureMissingValues InferencePipelineTestResultListResponseItemsGoalSubtype = "featureMissingValues" InferencePipelineTestResultListResponseItemsGoalSubtypeFeatureValueValidation InferencePipelineTestResultListResponseItemsGoalSubtype = "featureValueValidation" InferencePipelineTestResultListResponseItemsGoalSubtypeGreatExpectations InferencePipelineTestResultListResponseItemsGoalSubtype = "greatExpectations" InferencePipelineTestResultListResponseItemsGoalSubtypeGroupByColumnStatsCheck InferencePipelineTestResultListResponseItemsGoalSubtype = "groupByColumnStatsCheck" InferencePipelineTestResultListResponseItemsGoalSubtypeIllFormedRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "illFormedRowCount" InferencePipelineTestResultListResponseItemsGoalSubtypeIsCode InferencePipelineTestResultListResponseItemsGoalSubtype = "isCode" InferencePipelineTestResultListResponseItemsGoalSubtypeIsJson InferencePipelineTestResultListResponseItemsGoalSubtype = "isJson" InferencePipelineTestResultListResponseItemsGoalSubtypeLlmRubricThresholdV2 InferencePipelineTestResultListResponseItemsGoalSubtype = "llmRubricThresholdV2" InferencePipelineTestResultListResponseItemsGoalSubtypeLabelDrift InferencePipelineTestResultListResponseItemsGoalSubtype = "labelDrift" InferencePipelineTestResultListResponseItemsGoalSubtypeMetricThreshold InferencePipelineTestResultListResponseItemsGoalSubtype = "metricThreshold" InferencePipelineTestResultListResponseItemsGoalSubtypeNewCategoryCount InferencePipelineTestResultListResponseItemsGoalSubtype = "newCategoryCount" InferencePipelineTestResultListResponseItemsGoalSubtypeNewLabelCount InferencePipelineTestResultListResponseItemsGoalSubtype = "newLabelCount" InferencePipelineTestResultListResponseItemsGoalSubtypeNullRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "nullRowCount" InferencePipelineTestResultListResponseItemsGoalSubtypeRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "rowCount" InferencePipelineTestResultListResponseItemsGoalSubtypePpScoreValueValidation InferencePipelineTestResultListResponseItemsGoalSubtype = "ppScoreValueValidation" InferencePipelineTestResultListResponseItemsGoalSubtypeQuasiConstantFeature InferencePipelineTestResultListResponseItemsGoalSubtype = "quasiConstantFeature" InferencePipelineTestResultListResponseItemsGoalSubtypeQuasiConstantFeatureCount InferencePipelineTestResultListResponseItemsGoalSubtype = "quasiConstantFeatureCount" InferencePipelineTestResultListResponseItemsGoalSubtypeSqlQuery InferencePipelineTestResultListResponseItemsGoalSubtype = "sqlQuery" InferencePipelineTestResultListResponseItemsGoalSubtypeDtypeValidation InferencePipelineTestResultListResponseItemsGoalSubtype = "dtypeValidation" InferencePipelineTestResultListResponseItemsGoalSubtypeSentenceLength InferencePipelineTestResultListResponseItemsGoalSubtype = "sentenceLength" InferencePipelineTestResultListResponseItemsGoalSubtypeSizeRatio InferencePipelineTestResultListResponseItemsGoalSubtype = "sizeRatio" InferencePipelineTestResultListResponseItemsGoalSubtypeSpecialCharactersRatio InferencePipelineTestResultListResponseItemsGoalSubtype = "specialCharactersRatio" InferencePipelineTestResultListResponseItemsGoalSubtypeStringValidation InferencePipelineTestResultListResponseItemsGoalSubtype = "stringValidation" InferencePipelineTestResultListResponseItemsGoalSubtypeTrainValLeakageRowCount InferencePipelineTestResultListResponseItemsGoalSubtype = "trainValLeakageRowCount" )
func (InferencePipelineTestResultListResponseItemsGoalSubtype) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsGoalSubtype) IsKnown() bool
type InferencePipelineTestResultListResponseItemsGoalThreshold ¶
type InferencePipelineTestResultListResponseItemsGoalThreshold struct {
// The insight name to be evaluated.
InsightName InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator InferencePipelineTestResultListResponseItemsGoalThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value InferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion `json:"value"`
JSON inferencePipelineTestResultListResponseItemsGoalThresholdJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsGoalThreshold) UnmarshalJSON ¶
func (r *InferencePipelineTestResultListResponseItemsGoalThreshold) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName string
The insight name to be evaluated.
const ( InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameCharacterLength InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "characterLength" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameClassImbalance InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "classImbalance" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameExpectColumnAToBeInColumnB InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "expectColumnAToBeInColumnB" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameColumnAverage InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "columnAverage" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameColumnDrift InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "columnDrift" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameColumnValuesMatch InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "columnValuesMatch" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameConfidenceDistribution InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "confidenceDistribution" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameConflictingLabelRowCount InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "conflictingLabelRowCount" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameContainsPii InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "containsPii" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameContainsValidURL InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "containsValidUrl" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameCustomMetric InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "customMetric" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameDuplicateRowCount InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "duplicateRowCount" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameEmptyFeatures InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "emptyFeatures" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameFeatureDrift InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "featureDrift" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameFeatureProfile InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "featureProfile" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameGreatExpectations InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "greatExpectations" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameGroupByColumnStatsCheck InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "groupByColumnStatsCheck" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameIllFormedRowCount InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "illFormedRowCount" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameIsCode InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "isCode" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameIsJson InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "isJson" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameLlmRubricV2 InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "llmRubricV2" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameLabelDrift InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "labelDrift" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameMetrics InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "metrics" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameNewCategories InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "newCategories" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameNewLabels InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "newLabels" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameNullRowCount InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "nullRowCount" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNamePpScore InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "ppScore" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameQuasiConstantFeatures InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "quasiConstantFeatures" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameSentenceLength InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "sentenceLength" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameSizeRatio InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "sizeRatio" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameSpecialCharacters InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "specialCharacters" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameStringValidation InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "stringValidation" InferencePipelineTestResultListResponseItemsGoalThresholdsInsightNameTrainValLeakageRowCount InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName = "trainValLeakageRowCount" )
func (InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsGoalThresholdsInsightName) IsKnown() bool
type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON inferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameterJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON ¶
func (r *InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsGoalThresholdsOperator ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsOperator string
The operator to be used for the evaluation.
const ( InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorIs InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "is" InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreater InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = ">" InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreaterOrEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = ">=" InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLess InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "<" InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLessOrEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "<=" InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorNotEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "!=" )
func (InferencePipelineTestResultListResponseItemsGoalThresholdsOperator) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsGoalThresholdsOperator) IsKnown() bool
type InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeAutomatic InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode = "automatic" InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeManual InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode = "manual" )
func (InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode) IsKnown() bool
type InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray []string
func (InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray) ImplementsInferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion ¶
func (r InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray) ImplementsInferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion()
type InferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion ¶
type InferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion interface {
ImplementsInferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or InferencePipelineTestResultListResponseItemsGoalThresholdsValueArray.
type InferencePipelineTestResultListResponseItemsGoalType ¶
type InferencePipelineTestResultListResponseItemsGoalType string
The test type.
const ( InferencePipelineTestResultListResponseItemsGoalTypeIntegrity InferencePipelineTestResultListResponseItemsGoalType = "integrity" InferencePipelineTestResultListResponseItemsGoalTypeConsistency InferencePipelineTestResultListResponseItemsGoalType = "consistency" InferencePipelineTestResultListResponseItemsGoalTypePerformance InferencePipelineTestResultListResponseItemsGoalType = "performance" )
func (InferencePipelineTestResultListResponseItemsGoalType) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsGoalType) IsKnown() bool
type InferencePipelineTestResultListResponseItemsRowsBody ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBody struct {
ColumnFilters []InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter `json:"columnFilters" api:"nullable"`
ExcludeRowIDList []int64 `json:"excludeRowIdList" api:"nullable"`
NotSearchQueryAnd []string `json:"notSearchQueryAnd" api:"nullable"`
NotSearchQueryOr []string `json:"notSearchQueryOr" api:"nullable"`
RowIDList []int64 `json:"rowIdList" api:"nullable"`
SearchQueryAnd []string `json:"searchQueryAnd" api:"nullable"`
SearchQueryOr []string `json:"searchQueryOr" api:"nullable"`
JSON inferencePipelineTestResultListResponseItemsRowsBodyJSON `json:"-"`
}
The body of the rows request.
func (*InferencePipelineTestResultListResponseItemsRowsBody) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsRowsBody) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator `json:"operator" api:"required"`
// This field can have the runtime type of
// [[]InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion],
// [float64],
// [InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion].
Value interface{} `json:"value" api:"required"`
JSON inferencePipelineTestResultListResponseItemsRowsBodyColumnFilterJSON `json:"-"`
// contains filtered or unexported fields
}
func (InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter) AsUnion ¶ added in v0.4.0
func (r InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter) AsUnion() InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersUnion
AsUnion returns a InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter, InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter, InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter.
func (*InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsRowsBodyColumnFilter) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator `json:"operator" api:"required"`
Value float64 `json:"value" api:"required,nullable"`
JSON inferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator string
const ( InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreater InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreaterOrEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">=" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorIs InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "is" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLess InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLessOrEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<=" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorNotEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "!=" )
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator string
const ( InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsNone InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_none" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsAny InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_any" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorContainsAll InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "contains_all" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorOneOf InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "one_of" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorNoneOf InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "none_of" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorGreater InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = ">" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorGreaterOrEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = ">=" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorIs InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "is" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorLess InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "<" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorLessOrEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "<=" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperatorNotEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator = "!=" )
func (InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator) IsKnown ¶ added in v0.4.0
func (r InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersOperator) IsKnown() bool
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator `json:"operator" api:"required"`
Value []InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion `json:"value" api:"required"`
JSON inferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator string
const ( InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsNone InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_none" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAny InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_any" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAll InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_all" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorOneOf InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "one_of" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorNoneOf InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "none_of" )
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion interface {
ImplementsInferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionFloat.
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator `json:"operator" api:"required"`
Value InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion `json:"value" api:"required"`
JSON inferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterJSON `json:"-"`
}
func (*InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON(data []byte) (err error)
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator string
const ( InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorIs InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "is" InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorNotEquals InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "!=" )
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion interface {
ImplementsInferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionBool.
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersUnion ¶ added in v0.4.0
type InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersSetColumnFilter, InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersNumericColumnFilter or InferencePipelineTestResultListResponseItemsRowsBodyColumnFiltersStringColumnFilter.
type InferencePipelineTestResultListResponseItemsStatus ¶
type InferencePipelineTestResultListResponseItemsStatus string
The status of the test.
const ( InferencePipelineTestResultListResponseItemsStatusRunning InferencePipelineTestResultListResponseItemsStatus = "running" InferencePipelineTestResultListResponseItemsStatusPassing InferencePipelineTestResultListResponseItemsStatus = "passing" InferencePipelineTestResultListResponseItemsStatusFailing InferencePipelineTestResultListResponseItemsStatus = "failing" InferencePipelineTestResultListResponseItemsStatusSkipped InferencePipelineTestResultListResponseItemsStatus = "skipped" InferencePipelineTestResultListResponseItemsStatusError InferencePipelineTestResultListResponseItemsStatus = "error" )
func (InferencePipelineTestResultListResponseItemsStatus) IsKnown ¶
func (r InferencePipelineTestResultListResponseItemsStatus) IsKnown() bool
type InferencePipelineTestResultService ¶
type InferencePipelineTestResultService struct {
Options []option.RequestOption
}
InferencePipelineTestResultService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInferencePipelineTestResultService method instead.
func NewInferencePipelineTestResultService ¶
func NewInferencePipelineTestResultService(opts ...option.RequestOption) (r *InferencePipelineTestResultService)
NewInferencePipelineTestResultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InferencePipelineTestResultService) List ¶
func (r *InferencePipelineTestResultService) List(ctx context.Context, inferencePipelineID string, query InferencePipelineTestResultListParams, opts ...option.RequestOption) (res *InferencePipelineTestResultListResponse, err error)
List the latest test results for an inference pipeline.
type InferencePipelineUpdateParams ¶
type InferencePipelineUpdateParams struct {
// The inference pipeline description.
Description param.Field[string] `json:"description"`
// The inference pipeline name.
Name param.Field[string] `json:"name"`
// The storage uri of your reference dataset. We recommend using the Python SDK or
// the UI to handle your reference dataset updates.
ReferenceDatasetUri param.Field[string] `json:"referenceDatasetUri"`
}
func (InferencePipelineUpdateParams) MarshalJSON ¶
func (r InferencePipelineUpdateParams) MarshalJSON() (data []byte, err error)
type InferencePipelineUpdateResponse ¶
type InferencePipelineUpdateResponse struct {
// The inference pipeline id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived" api:"required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description" api:"required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
Links InferencePipelineUpdateResponseLinks `json:"links" api:"required"`
// The inference pipeline name.
Name string `json:"name" api:"required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status InferencePipelineUpdateResponseStatus `json:"status" api:"required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
DataBackend InferencePipelineUpdateResponseDataBackend `json:"dataBackend" api:"nullable"`
// The last time the data was polled.
DateLastPolled time.Time `json:"dateLastPolled" api:"nullable" format:"date-time"`
Project InferencePipelineUpdateResponseProject `json:"project" api:"nullable"`
// The total number of records in the data backend.
TotalRecordsCount int64 `json:"totalRecordsCount" api:"nullable"`
Workspace InferencePipelineUpdateResponseWorkspace `json:"workspace" api:"nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON inferencePipelineUpdateResponseJSON `json:"-"`
}
func (*InferencePipelineUpdateResponse) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponse) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackend ¶ added in v0.2.0
type InferencePipelineUpdateResponseDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"nullable" format:"uuid"`
// This field can have the runtime type of
// [InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig],
// [InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig],
// [InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig],
// [InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig],
// [InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig].
Config interface{} `json:"config"`
Database string `json:"database"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"nullable" format:"uuid"`
DatasetID string `json:"datasetId"`
PartitionType InferencePipelineUpdateResponseDataBackendPartitionType `json:"partitionType" api:"nullable"`
PostgresConnectionID string `json:"postgresConnectionId" api:"nullable" format:"uuid"`
ProjectID string `json:"projectId"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"nullable" format:"uuid"`
Schema string `json:"schema"`
SchemaName string `json:"schemaName"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"nullable" format:"uuid"`
Table string `json:"table" api:"nullable"`
TableID string `json:"tableId" api:"nullable"`
TableName string `json:"tableName"`
JSON inferencePipelineUpdateResponseDataBackendJSON `json:"-"`
// contains filtered or unexported fields
}
func (InferencePipelineUpdateResponseDataBackend) AsUnion ¶ added in v0.2.0
func (r InferencePipelineUpdateResponseDataBackend) AsUnion() InferencePipelineUpdateResponseDataBackendUnion
AsUnion returns a InferencePipelineUpdateResponseDataBackendUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are InferencePipelineUpdateResponseDataBackendBigQueryDataBackend, InferencePipelineUpdateResponseDataBackendDefaultDataBackend, InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend, InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend, InferencePipelineUpdateResponseDataBackendRedshiftDataBackend, InferencePipelineUpdateResponseDataBackendPostgresDataBackend.
func (*InferencePipelineUpdateResponseDataBackend) UnmarshalJSON ¶ added in v0.2.0
func (r *InferencePipelineUpdateResponseDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendBackendType ¶ added in v0.2.0
type InferencePipelineUpdateResponseDataBackendBackendType string
const ( InferencePipelineUpdateResponseDataBackendBackendTypeBigquery InferencePipelineUpdateResponseDataBackendBackendType = "bigquery" InferencePipelineUpdateResponseDataBackendBackendTypeDefault InferencePipelineUpdateResponseDataBackendBackendType = "default" InferencePipelineUpdateResponseDataBackendBackendTypeSnowflake InferencePipelineUpdateResponseDataBackendBackendType = "snowflake" InferencePipelineUpdateResponseDataBackendBackendTypeDatabricksDtl InferencePipelineUpdateResponseDataBackendBackendType = "databricks_dtl" InferencePipelineUpdateResponseDataBackendBackendTypeRedshift InferencePipelineUpdateResponseDataBackendBackendType = "redshift" InferencePipelineUpdateResponseDataBackendBackendTypePostgres InferencePipelineUpdateResponseDataBackendBackendType = "postgres" )
func (InferencePipelineUpdateResponseDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"required,nullable" format:"uuid"`
DatasetID string `json:"datasetId" api:"required"`
ProjectID string `json:"projectId" api:"required"`
TableID string `json:"tableId" api:"required,nullable"`
PartitionType InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType `json:"partitionType" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendBigQueryDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendBigQueryDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendBigQueryDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendTypeBigquery InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType = "bigquery"
)
func (InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendBigQueryDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType string
const ( InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionTypeDay InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType = "DAY" InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionTypeMonth InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType = "MONTH" InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionTypeYear InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType = "YEAR" )
func (InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendBigQueryDataBackendPartitionType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendType `json:"backendType" api:"required"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"required,nullable" format:"uuid"`
TableID string `json:"tableId" api:"required,nullable"`
JSON inferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendTypeDatabricksDtl InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendBackendType = "databricks_dtl"
)
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendDefaultDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendDefaultDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType `json:"backendType" api:"required"`
JSON inferencePipelineUpdateResponseDataBackendDefaultDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendDefaultDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendDefaultDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendTypeDefault InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType = "default"
)
func (InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendDefaultDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendPartitionType ¶ added in v0.2.0
type InferencePipelineUpdateResponseDataBackendPartitionType string
const ( InferencePipelineUpdateResponseDataBackendPartitionTypeDay InferencePipelineUpdateResponseDataBackendPartitionType = "DAY" InferencePipelineUpdateResponseDataBackendPartitionTypeMonth InferencePipelineUpdateResponseDataBackendPartitionType = "MONTH" InferencePipelineUpdateResponseDataBackendPartitionTypeYear InferencePipelineUpdateResponseDataBackendPartitionType = "YEAR" )
func (InferencePipelineUpdateResponseDataBackendPartitionType) IsKnown ¶ added in v0.2.0
func (r InferencePipelineUpdateResponseDataBackendPartitionType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendPostgresDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendPostgresDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
PostgresConnectionID string `json:"postgresConnectionId" api:"required,nullable" format:"uuid"`
Schema string `json:"schema" api:"required"`
Table string `json:"table" api:"required,nullable"`
JSON inferencePipelineUpdateResponseDataBackendPostgresDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendPostgresDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendPostgresDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendTypePostgres InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType = "postgres"
)
func (InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendPostgresDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendPostgresDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType `json:"backendType" api:"required"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"required,nullable" format:"uuid"`
SchemaName string `json:"schemaName" api:"required"`
TableName string `json:"tableName" api:"required"`
JSON inferencePipelineUpdateResponseDataBackendRedshiftDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendRedshiftDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendRedshiftDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendTypeRedshift InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType = "redshift"
)
func (InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendRedshiftDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend struct {
BackendType InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
Schema string `json:"schema" api:"required"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"required,nullable" format:"uuid"`
Table string `json:"table" api:"required,nullable"`
JSON inferencePipelineUpdateResponseDataBackendSnowflakeDataBackendJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType string
const (
InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendTypeSnowflake InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType = "snowflake"
)
func (InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendBackendType) IsKnown() bool
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig ¶ added in v0.3.1
type InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON inferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfigJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *InferencePipelineUpdateResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseDataBackendUnion ¶ added in v0.2.0
type InferencePipelineUpdateResponseDataBackendUnion interface {
// contains filtered or unexported methods
}
Union satisfied by InferencePipelineUpdateResponseDataBackendBigQueryDataBackend, InferencePipelineUpdateResponseDataBackendDefaultDataBackend, InferencePipelineUpdateResponseDataBackendSnowflakeDataBackend, InferencePipelineUpdateResponseDataBackendDatabricksDtlDataBackend, InferencePipelineUpdateResponseDataBackendRedshiftDataBackend or InferencePipelineUpdateResponseDataBackendPostgresDataBackend.
type InferencePipelineUpdateResponseLinks ¶
type InferencePipelineUpdateResponseLinks struct {
App string `json:"app" api:"required"`
JSON inferencePipelineUpdateResponseLinksJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseLinks) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseLinks) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseProject ¶
type InferencePipelineUpdateResponseProject struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links InferencePipelineUpdateResponseProjectLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source InferencePipelineUpdateResponseProjectSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType InferencePipelineUpdateResponseProjectTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo InferencePipelineUpdateResponseProjectGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON inferencePipelineUpdateResponseProjectJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseProject) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseProject) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseProjectGitRepo ¶
type InferencePipelineUpdateResponseProjectGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON inferencePipelineUpdateResponseProjectGitRepoJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseProjectGitRepo) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseProjectGitRepo) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseProjectLinks ¶
type InferencePipelineUpdateResponseProjectLinks struct {
App string `json:"app" api:"required"`
JSON inferencePipelineUpdateResponseProjectLinksJSON `json:"-"`
}
Links to the project.
func (*InferencePipelineUpdateResponseProjectLinks) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseProjectLinks) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseProjectSource ¶
type InferencePipelineUpdateResponseProjectSource string
The source of the project.
const ( InferencePipelineUpdateResponseProjectSourceWeb InferencePipelineUpdateResponseProjectSource = "web" InferencePipelineUpdateResponseProjectSourceAPI InferencePipelineUpdateResponseProjectSource = "api" )
func (InferencePipelineUpdateResponseProjectSource) IsKnown ¶
func (r InferencePipelineUpdateResponseProjectSource) IsKnown() bool
type InferencePipelineUpdateResponseProjectTaskType ¶
type InferencePipelineUpdateResponseProjectTaskType string
The task type of the project.
const ( InferencePipelineUpdateResponseProjectTaskTypeLlmBase InferencePipelineUpdateResponseProjectTaskType = "llm-base" InferencePipelineUpdateResponseProjectTaskTypeTabularClassification InferencePipelineUpdateResponseProjectTaskType = "tabular-classification" InferencePipelineUpdateResponseProjectTaskTypeTabularRegression InferencePipelineUpdateResponseProjectTaskType = "tabular-regression" InferencePipelineUpdateResponseProjectTaskTypeTextClassification InferencePipelineUpdateResponseProjectTaskType = "text-classification" )
func (InferencePipelineUpdateResponseProjectTaskType) IsKnown ¶
func (r InferencePipelineUpdateResponseProjectTaskType) IsKnown() bool
type InferencePipelineUpdateResponseStatus ¶
type InferencePipelineUpdateResponseStatus string
The status of test evaluation for the inference pipeline.
const ( InferencePipelineUpdateResponseStatusQueued InferencePipelineUpdateResponseStatus = "queued" InferencePipelineUpdateResponseStatusRunning InferencePipelineUpdateResponseStatus = "running" InferencePipelineUpdateResponseStatusPaused InferencePipelineUpdateResponseStatus = "paused" InferencePipelineUpdateResponseStatusFailed InferencePipelineUpdateResponseStatus = "failed" InferencePipelineUpdateResponseStatusCompleted InferencePipelineUpdateResponseStatus = "completed" InferencePipelineUpdateResponseStatusUnknown InferencePipelineUpdateResponseStatus = "unknown" )
func (InferencePipelineUpdateResponseStatus) IsKnown ¶
func (r InferencePipelineUpdateResponseStatus) IsKnown() bool
type InferencePipelineUpdateResponseWorkspace ¶
type InferencePipelineUpdateResponseWorkspace struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status InferencePipelineUpdateResponseWorkspaceStatus `json:"status" api:"required"`
MonthlyUsage []InferencePipelineUpdateResponseWorkspaceMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON inferencePipelineUpdateResponseWorkspaceJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseWorkspace) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseWorkspace) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseWorkspaceMonthlyUsage ¶
type InferencePipelineUpdateResponseWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON inferencePipelineUpdateResponseWorkspaceMonthlyUsageJSON `json:"-"`
}
func (*InferencePipelineUpdateResponseWorkspaceMonthlyUsage) UnmarshalJSON ¶
func (r *InferencePipelineUpdateResponseWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type InferencePipelineUpdateResponseWorkspaceStatus ¶
type InferencePipelineUpdateResponseWorkspaceStatus string
const ( InferencePipelineUpdateResponseWorkspaceStatusActive InferencePipelineUpdateResponseWorkspaceStatus = "active" InferencePipelineUpdateResponseWorkspaceStatusPastDue InferencePipelineUpdateResponseWorkspaceStatus = "past_due" InferencePipelineUpdateResponseWorkspaceStatusUnpaid InferencePipelineUpdateResponseWorkspaceStatus = "unpaid" InferencePipelineUpdateResponseWorkspaceStatusCanceled InferencePipelineUpdateResponseWorkspaceStatus = "canceled" InferencePipelineUpdateResponseWorkspaceStatusIncomplete InferencePipelineUpdateResponseWorkspaceStatus = "incomplete" InferencePipelineUpdateResponseWorkspaceStatusIncompleteExpired InferencePipelineUpdateResponseWorkspaceStatus = "incomplete_expired" InferencePipelineUpdateResponseWorkspaceStatusTrialing InferencePipelineUpdateResponseWorkspaceStatus = "trialing" InferencePipelineUpdateResponseWorkspaceStatusPaused InferencePipelineUpdateResponseWorkspaceStatus = "paused" )
func (InferencePipelineUpdateResponseWorkspaceStatus) IsKnown ¶
func (r InferencePipelineUpdateResponseWorkspaceStatus) IsKnown() bool
type ProjectCommitListParams ¶
type ProjectCommitListParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (ProjectCommitListParams) URLQuery ¶
func (r ProjectCommitListParams) URLQuery() (v url.Values)
URLQuery serializes ProjectCommitListParams's query parameters as `url.Values`.
type ProjectCommitListResponse ¶
type ProjectCommitListResponse struct {
Items []ProjectCommitListResponseItem `json:"items" api:"required"`
JSON projectCommitListResponseJSON `json:"-"`
}
func (*ProjectCommitListResponse) UnmarshalJSON ¶
func (r *ProjectCommitListResponse) UnmarshalJSON(data []byte) (err error)
type ProjectCommitListResponseItem ¶
type ProjectCommitListResponseItem struct {
// The project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The details of a commit (project version).
Commit ProjectCommitListResponseItemsCommit `json:"commit" api:"required"`
// The commit archive date.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The project version (commit) creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The number of tests that are failing for the commit.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The number of tests that are passing for the commit.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The commit status. Initially, the commit is `queued`, then, it switches to
// `running`. Finally, it can be `paused`, `failed`, or `completed`.
Status ProjectCommitListResponseItemsStatus `json:"status" api:"required"`
// The commit status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests for the commit.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// Whether the commit is archived.
Archived bool `json:"archived" api:"nullable"`
// The deployment status associated with the commit's model.
DeploymentStatus string `json:"deploymentStatus"`
Links ProjectCommitListResponseItemsLinks `json:"links"`
JSON projectCommitListResponseItemJSON `json:"-"`
}
func (*ProjectCommitListResponseItem) UnmarshalJSON ¶
func (r *ProjectCommitListResponseItem) UnmarshalJSON(data []byte) (err error)
type ProjectCommitListResponseItemsCommit ¶
type ProjectCommitListResponseItemsCommit struct {
// The commit id.
ID string `json:"id" api:"required" format:"uuid"`
// The author id of the commit.
AuthorID string `json:"authorId" api:"required" format:"uuid"`
// The size of the commit bundle in bytes.
FileSize int64 `json:"fileSize" api:"required,nullable"`
// The commit message.
Message string `json:"message" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The storage URI where the commit bundle is stored.
StorageUri string `json:"storageUri" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// The commit creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The ref of the corresponding git commit.
GitCommitRef string `json:"gitCommitRef"`
// The SHA of the corresponding git commit.
GitCommitSha int64 `json:"gitCommitSha"`
// The URL of the corresponding git commit.
GitCommitURL string `json:"gitCommitUrl"`
JSON projectCommitListResponseItemsCommitJSON `json:"-"`
}
The details of a commit (project version).
func (*ProjectCommitListResponseItemsCommit) UnmarshalJSON ¶
func (r *ProjectCommitListResponseItemsCommit) UnmarshalJSON(data []byte) (err error)
type ProjectCommitListResponseItemsLinks ¶
type ProjectCommitListResponseItemsLinks struct {
App string `json:"app" api:"required"`
JSON projectCommitListResponseItemsLinksJSON `json:"-"`
}
func (*ProjectCommitListResponseItemsLinks) UnmarshalJSON ¶
func (r *ProjectCommitListResponseItemsLinks) UnmarshalJSON(data []byte) (err error)
type ProjectCommitListResponseItemsStatus ¶
type ProjectCommitListResponseItemsStatus string
The commit status. Initially, the commit is `queued`, then, it switches to `running`. Finally, it can be `paused`, `failed`, or `completed`.
const ( ProjectCommitListResponseItemsStatusQueued ProjectCommitListResponseItemsStatus = "queued" ProjectCommitListResponseItemsStatusRunning ProjectCommitListResponseItemsStatus = "running" ProjectCommitListResponseItemsStatusPaused ProjectCommitListResponseItemsStatus = "paused" ProjectCommitListResponseItemsStatusFailed ProjectCommitListResponseItemsStatus = "failed" ProjectCommitListResponseItemsStatusCompleted ProjectCommitListResponseItemsStatus = "completed" ProjectCommitListResponseItemsStatusUnknown ProjectCommitListResponseItemsStatus = "unknown" )
func (ProjectCommitListResponseItemsStatus) IsKnown ¶
func (r ProjectCommitListResponseItemsStatus) IsKnown() bool
type ProjectCommitNewParams ¶
type ProjectCommitNewParams struct {
// The details of a commit (project version).
Commit param.Field[ProjectCommitNewParamsCommit] `json:"commit" api:"required"`
// The storage URI where the commit bundle is stored.
StorageUri param.Field[string] `json:"storageUri" api:"required"`
// Whether the commit is archived.
Archived param.Field[bool] `json:"archived"`
// The deployment status associated with the commit's model.
DeploymentStatus param.Field[string] `json:"deploymentStatus"`
}
func (ProjectCommitNewParams) MarshalJSON ¶
func (r ProjectCommitNewParams) MarshalJSON() (data []byte, err error)
type ProjectCommitNewParamsCommit ¶
type ProjectCommitNewParamsCommit struct {
// The commit message.
Message param.Field[string] `json:"message" api:"required"`
}
The details of a commit (project version).
func (ProjectCommitNewParamsCommit) MarshalJSON ¶
func (r ProjectCommitNewParamsCommit) MarshalJSON() (data []byte, err error)
type ProjectCommitNewResponse ¶
type ProjectCommitNewResponse struct {
// The project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The details of a commit (project version).
Commit ProjectCommitNewResponseCommit `json:"commit" api:"required"`
// The commit archive date.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The project version (commit) creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The number of tests that are failing for the commit.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The number of tests that are passing for the commit.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The commit status. Initially, the commit is `queued`, then, it switches to
// `running`. Finally, it can be `paused`, `failed`, or `completed`.
Status ProjectCommitNewResponseStatus `json:"status" api:"required"`
// The commit status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests for the commit.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// Whether the commit is archived.
Archived bool `json:"archived" api:"nullable"`
// The deployment status associated with the commit's model.
DeploymentStatus string `json:"deploymentStatus"`
Links ProjectCommitNewResponseLinks `json:"links"`
JSON projectCommitNewResponseJSON `json:"-"`
}
func (*ProjectCommitNewResponse) UnmarshalJSON ¶
func (r *ProjectCommitNewResponse) UnmarshalJSON(data []byte) (err error)
type ProjectCommitNewResponseCommit ¶
type ProjectCommitNewResponseCommit struct {
// The commit id.
ID string `json:"id" api:"required" format:"uuid"`
// The author id of the commit.
AuthorID string `json:"authorId" api:"required" format:"uuid"`
// The size of the commit bundle in bytes.
FileSize int64 `json:"fileSize" api:"required,nullable"`
// The commit message.
Message string `json:"message" api:"required"`
// The model id.
MlModelID string `json:"mlModelId" api:"required,nullable" format:"uuid"`
// The storage URI where the commit bundle is stored.
StorageUri string `json:"storageUri" api:"required"`
// The training dataset id.
TrainingDatasetID string `json:"trainingDatasetId" api:"required,nullable" format:"uuid"`
// The validation dataset id.
ValidationDatasetID string `json:"validationDatasetId" api:"required,nullable" format:"uuid"`
// The commit creation date.
DateCreated time.Time `json:"dateCreated" format:"date-time"`
// The ref of the corresponding git commit.
GitCommitRef string `json:"gitCommitRef"`
// The SHA of the corresponding git commit.
GitCommitSha int64 `json:"gitCommitSha"`
// The URL of the corresponding git commit.
GitCommitURL string `json:"gitCommitUrl"`
JSON projectCommitNewResponseCommitJSON `json:"-"`
}
The details of a commit (project version).
func (*ProjectCommitNewResponseCommit) UnmarshalJSON ¶
func (r *ProjectCommitNewResponseCommit) UnmarshalJSON(data []byte) (err error)
type ProjectCommitNewResponseLinks ¶
type ProjectCommitNewResponseLinks struct {
App string `json:"app" api:"required"`
JSON projectCommitNewResponseLinksJSON `json:"-"`
}
func (*ProjectCommitNewResponseLinks) UnmarshalJSON ¶
func (r *ProjectCommitNewResponseLinks) UnmarshalJSON(data []byte) (err error)
type ProjectCommitNewResponseStatus ¶
type ProjectCommitNewResponseStatus string
The commit status. Initially, the commit is `queued`, then, it switches to `running`. Finally, it can be `paused`, `failed`, or `completed`.
const ( ProjectCommitNewResponseStatusQueued ProjectCommitNewResponseStatus = "queued" ProjectCommitNewResponseStatusRunning ProjectCommitNewResponseStatus = "running" ProjectCommitNewResponseStatusPaused ProjectCommitNewResponseStatus = "paused" ProjectCommitNewResponseStatusFailed ProjectCommitNewResponseStatus = "failed" ProjectCommitNewResponseStatusCompleted ProjectCommitNewResponseStatus = "completed" ProjectCommitNewResponseStatusUnknown ProjectCommitNewResponseStatus = "unknown" )
func (ProjectCommitNewResponseStatus) IsKnown ¶
func (r ProjectCommitNewResponseStatus) IsKnown() bool
type ProjectCommitService ¶
type ProjectCommitService struct {
Options []option.RequestOption
}
ProjectCommitService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProjectCommitService method instead.
func NewProjectCommitService ¶
func NewProjectCommitService(opts ...option.RequestOption) (r *ProjectCommitService)
NewProjectCommitService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ProjectCommitService) List ¶
func (r *ProjectCommitService) List(ctx context.Context, projectID string, query ProjectCommitListParams, opts ...option.RequestOption) (res *ProjectCommitListResponse, err error)
List the commits (project versions) in a project.
func (*ProjectCommitService) New ¶
func (r *ProjectCommitService) New(ctx context.Context, projectID string, body ProjectCommitNewParams, opts ...option.RequestOption) (res *ProjectCommitNewResponse, err error)
Create a new commit (project version) in a project.
type ProjectInferencePipelineListParams ¶
type ProjectInferencePipelineListParams struct {
// Filter list of items by name.
Name param.Field[string] `query:"name"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (ProjectInferencePipelineListParams) URLQuery ¶
func (r ProjectInferencePipelineListParams) URLQuery() (v url.Values)
URLQuery serializes ProjectInferencePipelineListParams's query parameters as `url.Values`.
type ProjectInferencePipelineListResponse ¶
type ProjectInferencePipelineListResponse struct {
Items []ProjectInferencePipelineListResponseItem `json:"items" api:"required"`
JSON projectInferencePipelineListResponseJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponse) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponse) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItem ¶
type ProjectInferencePipelineListResponseItem struct {
// The inference pipeline id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived" api:"required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description" api:"required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
Links ProjectInferencePipelineListResponseItemsLinks `json:"links" api:"required"`
// The inference pipeline name.
Name string `json:"name" api:"required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status ProjectInferencePipelineListResponseItemsStatus `json:"status" api:"required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
DataBackend ProjectInferencePipelineListResponseItemsDataBackend `json:"dataBackend" api:"nullable"`
// The last time the data was polled.
DateLastPolled time.Time `json:"dateLastPolled" api:"nullable" format:"date-time"`
Project ProjectInferencePipelineListResponseItemsProject `json:"project" api:"nullable"`
// The total number of records in the data backend.
TotalRecordsCount int64 `json:"totalRecordsCount" api:"nullable"`
Workspace ProjectInferencePipelineListResponseItemsWorkspace `json:"workspace" api:"nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON projectInferencePipelineListResponseItemJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItem) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItem) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackend ¶ added in v0.2.0
type ProjectInferencePipelineListResponseItemsDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"nullable" format:"uuid"`
// This field can have the runtime type of
// [ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig],
// [ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig],
// [ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig],
// [ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig],
// [ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig].
Config interface{} `json:"config"`
Database string `json:"database"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"nullable" format:"uuid"`
DatasetID string `json:"datasetId"`
PartitionType ProjectInferencePipelineListResponseItemsDataBackendPartitionType `json:"partitionType" api:"nullable"`
PostgresConnectionID string `json:"postgresConnectionId" api:"nullable" format:"uuid"`
ProjectID string `json:"projectId"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"nullable" format:"uuid"`
Schema string `json:"schema"`
SchemaName string `json:"schemaName"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"nullable" format:"uuid"`
Table string `json:"table" api:"nullable"`
TableID string `json:"tableId" api:"nullable"`
TableName string `json:"tableName"`
JSON projectInferencePipelineListResponseItemsDataBackendJSON `json:"-"`
// contains filtered or unexported fields
}
func (ProjectInferencePipelineListResponseItemsDataBackend) AsUnion ¶ added in v0.2.0
func (r ProjectInferencePipelineListResponseItemsDataBackend) AsUnion() ProjectInferencePipelineListResponseItemsDataBackendUnion
AsUnion returns a ProjectInferencePipelineListResponseItemsDataBackendUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend, ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend, ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend, ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend, ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend, ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend.
func (*ProjectInferencePipelineListResponseItemsDataBackend) UnmarshalJSON ¶ added in v0.2.0
func (r *ProjectInferencePipelineListResponseItemsDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendBackendType ¶ added in v0.2.0
type ProjectInferencePipelineListResponseItemsDataBackendBackendType string
const ( ProjectInferencePipelineListResponseItemsDataBackendBackendTypeBigquery ProjectInferencePipelineListResponseItemsDataBackendBackendType = "bigquery" ProjectInferencePipelineListResponseItemsDataBackendBackendTypeDefault ProjectInferencePipelineListResponseItemsDataBackendBackendType = "default" ProjectInferencePipelineListResponseItemsDataBackendBackendTypeSnowflake ProjectInferencePipelineListResponseItemsDataBackendBackendType = "snowflake" ProjectInferencePipelineListResponseItemsDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineListResponseItemsDataBackendBackendType = "databricks_dtl" ProjectInferencePipelineListResponseItemsDataBackendBackendTypeRedshift ProjectInferencePipelineListResponseItemsDataBackendBackendType = "redshift" ProjectInferencePipelineListResponseItemsDataBackendBackendTypePostgres ProjectInferencePipelineListResponseItemsDataBackendBackendType = "postgres" )
func (ProjectInferencePipelineListResponseItemsDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineListResponseItemsDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"required,nullable" format:"uuid"`
DatasetID string `json:"datasetId" api:"required"`
ProjectID string `json:"projectId" api:"required"`
TableID string `json:"tableId" api:"required,nullable"`
PartitionType ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType `json:"partitionType" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendTypeBigquery ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendBackendType = "bigquery"
)
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType string
const ( ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionTypeDay ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType = "DAY" ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionTypeMonth ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType = "MONTH" ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionTypeYear ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackendPartitionType = "YEAR" )
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendType `json:"backendType" api:"required"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"required,nullable" format:"uuid"`
TableID string `json:"tableId" api:"required,nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendBackendType = "databricks_dtl"
)
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendType `json:"backendType" api:"required"`
JSON projectInferencePipelineListResponseItemsDataBackendDefaultDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendTypeDefault ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackendBackendType = "default"
)
type ProjectInferencePipelineListResponseItemsDataBackendPartitionType ¶ added in v0.2.0
type ProjectInferencePipelineListResponseItemsDataBackendPartitionType string
const ( ProjectInferencePipelineListResponseItemsDataBackendPartitionTypeDay ProjectInferencePipelineListResponseItemsDataBackendPartitionType = "DAY" ProjectInferencePipelineListResponseItemsDataBackendPartitionTypeMonth ProjectInferencePipelineListResponseItemsDataBackendPartitionType = "MONTH" ProjectInferencePipelineListResponseItemsDataBackendPartitionTypeYear ProjectInferencePipelineListResponseItemsDataBackendPartitionType = "YEAR" )
func (ProjectInferencePipelineListResponseItemsDataBackendPartitionType) IsKnown ¶ added in v0.2.0
func (r ProjectInferencePipelineListResponseItemsDataBackendPartitionType) IsKnown() bool
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
PostgresConnectionID string `json:"postgresConnectionId" api:"required,nullable" format:"uuid"`
Schema string `json:"schema" api:"required"`
Table string `json:"table" api:"required,nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendPostgresDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendTypePostgres ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendBackendType = "postgres"
)
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendType `json:"backendType" api:"required"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"required,nullable" format:"uuid"`
SchemaName string `json:"schemaName" api:"required"`
TableName string `json:"tableName" api:"required"`
JSON projectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendTypeRedshift ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendBackendType = "redshift"
)
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend struct {
BackendType ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
Schema string `json:"schema" api:"required"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"required,nullable" format:"uuid"`
Table string `json:"table" api:"required,nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendType string
const (
ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendTypeSnowflake ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendBackendType = "snowflake"
)
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsDataBackendUnion ¶ added in v0.2.0
type ProjectInferencePipelineListResponseItemsDataBackendUnion interface {
// contains filtered or unexported methods
}
Union satisfied by ProjectInferencePipelineListResponseItemsDataBackendBigQueryDataBackend, ProjectInferencePipelineListResponseItemsDataBackendDefaultDataBackend, ProjectInferencePipelineListResponseItemsDataBackendSnowflakeDataBackend, ProjectInferencePipelineListResponseItemsDataBackendDatabricksDtlDataBackend, ProjectInferencePipelineListResponseItemsDataBackendRedshiftDataBackend or ProjectInferencePipelineListResponseItemsDataBackendPostgresDataBackend.
type ProjectInferencePipelineListResponseItemsLinks ¶
type ProjectInferencePipelineListResponseItemsLinks struct {
App string `json:"app" api:"required"`
JSON projectInferencePipelineListResponseItemsLinksJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsLinks) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsLinks) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsProject ¶
type ProjectInferencePipelineListResponseItemsProject struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links ProjectInferencePipelineListResponseItemsProjectLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source ProjectInferencePipelineListResponseItemsProjectSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType ProjectInferencePipelineListResponseItemsProjectTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo ProjectInferencePipelineListResponseItemsProjectGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON projectInferencePipelineListResponseItemsProjectJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsProject) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsProject) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsProjectGitRepo ¶
type ProjectInferencePipelineListResponseItemsProjectGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectInferencePipelineListResponseItemsProjectGitRepoJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsProjectGitRepo) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsProjectGitRepo) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsProjectLinks ¶
type ProjectInferencePipelineListResponseItemsProjectLinks struct {
App string `json:"app" api:"required"`
JSON projectInferencePipelineListResponseItemsProjectLinksJSON `json:"-"`
}
Links to the project.
func (*ProjectInferencePipelineListResponseItemsProjectLinks) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsProjectLinks) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsProjectSource ¶
type ProjectInferencePipelineListResponseItemsProjectSource string
The source of the project.
const ( ProjectInferencePipelineListResponseItemsProjectSourceWeb ProjectInferencePipelineListResponseItemsProjectSource = "web" ProjectInferencePipelineListResponseItemsProjectSourceAPI ProjectInferencePipelineListResponseItemsProjectSource = "api" )
func (ProjectInferencePipelineListResponseItemsProjectSource) IsKnown ¶
func (r ProjectInferencePipelineListResponseItemsProjectSource) IsKnown() bool
type ProjectInferencePipelineListResponseItemsProjectTaskType ¶
type ProjectInferencePipelineListResponseItemsProjectTaskType string
The task type of the project.
const ( ProjectInferencePipelineListResponseItemsProjectTaskTypeLlmBase ProjectInferencePipelineListResponseItemsProjectTaskType = "llm-base" ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularClassification ProjectInferencePipelineListResponseItemsProjectTaskType = "tabular-classification" ProjectInferencePipelineListResponseItemsProjectTaskTypeTabularRegression ProjectInferencePipelineListResponseItemsProjectTaskType = "tabular-regression" ProjectInferencePipelineListResponseItemsProjectTaskTypeTextClassification ProjectInferencePipelineListResponseItemsProjectTaskType = "text-classification" )
func (ProjectInferencePipelineListResponseItemsProjectTaskType) IsKnown ¶
func (r ProjectInferencePipelineListResponseItemsProjectTaskType) IsKnown() bool
type ProjectInferencePipelineListResponseItemsStatus ¶
type ProjectInferencePipelineListResponseItemsStatus string
The status of test evaluation for the inference pipeline.
const ( ProjectInferencePipelineListResponseItemsStatusQueued ProjectInferencePipelineListResponseItemsStatus = "queued" ProjectInferencePipelineListResponseItemsStatusRunning ProjectInferencePipelineListResponseItemsStatus = "running" ProjectInferencePipelineListResponseItemsStatusPaused ProjectInferencePipelineListResponseItemsStatus = "paused" ProjectInferencePipelineListResponseItemsStatusFailed ProjectInferencePipelineListResponseItemsStatus = "failed" ProjectInferencePipelineListResponseItemsStatusCompleted ProjectInferencePipelineListResponseItemsStatus = "completed" ProjectInferencePipelineListResponseItemsStatusUnknown ProjectInferencePipelineListResponseItemsStatus = "unknown" )
func (ProjectInferencePipelineListResponseItemsStatus) IsKnown ¶
func (r ProjectInferencePipelineListResponseItemsStatus) IsKnown() bool
type ProjectInferencePipelineListResponseItemsWorkspace ¶
type ProjectInferencePipelineListResponseItemsWorkspace struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status ProjectInferencePipelineListResponseItemsWorkspaceStatus `json:"status" api:"required"`
MonthlyUsage []ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON projectInferencePipelineListResponseItemsWorkspaceJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsWorkspace) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsWorkspace) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage ¶
type ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON projectInferencePipelineListResponseItemsWorkspaceMonthlyUsageJSON `json:"-"`
}
func (*ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage) UnmarshalJSON ¶
func (r *ProjectInferencePipelineListResponseItemsWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineListResponseItemsWorkspaceStatus ¶
type ProjectInferencePipelineListResponseItemsWorkspaceStatus string
const ( ProjectInferencePipelineListResponseItemsWorkspaceStatusActive ProjectInferencePipelineListResponseItemsWorkspaceStatus = "active" ProjectInferencePipelineListResponseItemsWorkspaceStatusPastDue ProjectInferencePipelineListResponseItemsWorkspaceStatus = "past_due" ProjectInferencePipelineListResponseItemsWorkspaceStatusUnpaid ProjectInferencePipelineListResponseItemsWorkspaceStatus = "unpaid" ProjectInferencePipelineListResponseItemsWorkspaceStatusCanceled ProjectInferencePipelineListResponseItemsWorkspaceStatus = "canceled" ProjectInferencePipelineListResponseItemsWorkspaceStatusIncomplete ProjectInferencePipelineListResponseItemsWorkspaceStatus = "incomplete" ProjectInferencePipelineListResponseItemsWorkspaceStatusIncompleteExpired ProjectInferencePipelineListResponseItemsWorkspaceStatus = "incomplete_expired" ProjectInferencePipelineListResponseItemsWorkspaceStatusTrialing ProjectInferencePipelineListResponseItemsWorkspaceStatus = "trialing" ProjectInferencePipelineListResponseItemsWorkspaceStatusPaused ProjectInferencePipelineListResponseItemsWorkspaceStatus = "paused" )
func (ProjectInferencePipelineListResponseItemsWorkspaceStatus) IsKnown ¶
func (r ProjectInferencePipelineListResponseItemsWorkspaceStatus) IsKnown() bool
type ProjectInferencePipelineNewParams ¶
type ProjectInferencePipelineNewParams struct {
// The inference pipeline description.
Description param.Field[string] `json:"description" api:"required"`
// The inference pipeline name.
Name param.Field[string] `json:"name" api:"required"`
DataBackend param.Field[ProjectInferencePipelineNewParamsDataBackendUnion] `json:"dataBackend"`
Project param.Field[ProjectInferencePipelineNewParamsProject] `json:"project"`
Workspace param.Field[ProjectInferencePipelineNewParamsWorkspace] `json:"workspace"`
}
func (ProjectInferencePipelineNewParams) MarshalJSON ¶
func (r ProjectInferencePipelineNewParams) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackend ¶ added in v0.2.0
type ProjectInferencePipelineNewParamsDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendBackendType] `json:"backendType" api:"required"`
BigqueryConnectionID param.Field[string] `json:"bigqueryConnectionId" format:"uuid"`
Config param.Field[interface{}] `json:"config"`
Database param.Field[string] `json:"database"`
DatabricksDtlConnectionID param.Field[string] `json:"databricksDtlConnectionId" format:"uuid"`
DatasetID param.Field[string] `json:"datasetId"`
PartitionType param.Field[ProjectInferencePipelineNewParamsDataBackendPartitionType] `json:"partitionType"`
PostgresConnectionID param.Field[string] `json:"postgresConnectionId" format:"uuid"`
ProjectID param.Field[string] `json:"projectId"`
RedshiftConnectionID param.Field[string] `json:"redshiftConnectionId" format:"uuid"`
Schema param.Field[string] `json:"schema"`
SchemaName param.Field[string] `json:"schemaName"`
SnowflakeConnectionID param.Field[string] `json:"snowflakeConnectionId" format:"uuid"`
Table param.Field[string] `json:"table"`
TableID param.Field[string] `json:"tableId"`
TableName param.Field[string] `json:"tableName"`
}
func (ProjectInferencePipelineNewParamsDataBackend) MarshalJSON ¶ added in v0.2.0
func (r ProjectInferencePipelineNewParamsDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendBackendType ¶ added in v0.2.0
type ProjectInferencePipelineNewParamsDataBackendBackendType string
const ( ProjectInferencePipelineNewParamsDataBackendBackendTypeBigquery ProjectInferencePipelineNewParamsDataBackendBackendType = "bigquery" ProjectInferencePipelineNewParamsDataBackendBackendTypeDefault ProjectInferencePipelineNewParamsDataBackendBackendType = "default" ProjectInferencePipelineNewParamsDataBackendBackendTypeSnowflake ProjectInferencePipelineNewParamsDataBackendBackendType = "snowflake" ProjectInferencePipelineNewParamsDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineNewParamsDataBackendBackendType = "databricks_dtl" ProjectInferencePipelineNewParamsDataBackendBackendTypeRedshift ProjectInferencePipelineNewParamsDataBackendBackendType = "redshift" ProjectInferencePipelineNewParamsDataBackendBackendTypePostgres ProjectInferencePipelineNewParamsDataBackendBackendType = "postgres" )
func (ProjectInferencePipelineNewParamsDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType] `json:"backendType" api:"required"`
BigqueryConnectionID param.Field[string] `json:"bigqueryConnectionId" api:"required" format:"uuid"`
Config param.Field[ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig] `json:"config" api:"required"`
DatasetID param.Field[string] `json:"datasetId" api:"required"`
ProjectID param.Field[string] `json:"projectId" api:"required"`
TableID param.Field[string] `json:"tableId" api:"required"`
PartitionType param.Field[ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType] `json:"partitionType"`
}
func (ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendTypeBigquery ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType = "bigquery"
)
func (ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendConfig) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType string
const ( ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionTypeDay ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType = "DAY" ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionTypeMonth ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType = "MONTH" ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionTypeYear ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType = "YEAR" )
func (ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackendPartitionType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendType] `json:"backendType" api:"required"`
Config param.Field[ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig] `json:"config" api:"required"`
DatabricksDtlConnectionID param.Field[string] `json:"databricksDtlConnectionId" api:"required" format:"uuid"`
TableID param.Field[string] `json:"tableId" api:"required"`
}
func (ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendBackendType = "databricks_dtl"
)
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackendConfig) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType] `json:"backendType" api:"required"`
}
func (ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendTypeDefault ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType = "default"
)
func (ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendDefaultDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendPartitionType ¶ added in v0.2.0
type ProjectInferencePipelineNewParamsDataBackendPartitionType string
const ( ProjectInferencePipelineNewParamsDataBackendPartitionTypeDay ProjectInferencePipelineNewParamsDataBackendPartitionType = "DAY" ProjectInferencePipelineNewParamsDataBackendPartitionTypeMonth ProjectInferencePipelineNewParamsDataBackendPartitionType = "MONTH" ProjectInferencePipelineNewParamsDataBackendPartitionTypeYear ProjectInferencePipelineNewParamsDataBackendPartitionType = "YEAR" )
func (ProjectInferencePipelineNewParamsDataBackendPartitionType) IsKnown ¶ added in v0.2.0
func (r ProjectInferencePipelineNewParamsDataBackendPartitionType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType] `json:"backendType" api:"required"`
Config param.Field[ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig] `json:"config" api:"required"`
Database param.Field[string] `json:"database" api:"required"`
PostgresConnectionID param.Field[string] `json:"postgresConnectionId" api:"required" format:"uuid"`
Schema param.Field[string] `json:"schema" api:"required"`
Table param.Field[string] `json:"table" api:"required"`
}
func (ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendTypePostgres ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType = "postgres"
)
func (ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendPostgresDataBackendConfig) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType] `json:"backendType" api:"required"`
Config param.Field[ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig] `json:"config" api:"required"`
RedshiftConnectionID param.Field[string] `json:"redshiftConnectionId" api:"required" format:"uuid"`
SchemaName param.Field[string] `json:"schemaName" api:"required"`
TableName param.Field[string] `json:"tableName" api:"required"`
}
func (ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendTypeRedshift ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType = "redshift"
)
func (ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackendConfig) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend struct {
BackendType param.Field[ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType] `json:"backendType" api:"required"`
Config param.Field[ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig] `json:"config" api:"required"`
Database param.Field[string] `json:"database" api:"required"`
Schema param.Field[string] `json:"schema" api:"required"`
SnowflakeConnectionID param.Field[string] `json:"snowflakeConnectionId" api:"required" format:"uuid"`
Table param.Field[string] `json:"table" api:"required"`
}
func (ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType string
const (
ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendTypeSnowflake ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType = "snowflake"
)
func (ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName param.Field[string] `json:"groundTruthColumnName"`
// Name of the column with human feedback.
HumanFeedbackColumnName param.Field[string] `json:"humanFeedbackColumnName"`
// Name of the column with the inference ids. This is useful if you want to update
// rows at a later point in time. If not provided, a unique id is generated by
// Openlayer.
InferenceIDColumnName param.Field[string] `json:"inferenceIdColumnName"`
// Name of the column with the latencies.
LatencyColumnName param.Field[string] `json:"latencyColumnName"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName param.Field[string] `json:"timestampColumnName"`
}
func (ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig) MarshalJSON ¶ added in v0.3.1
func (r ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackendConfig) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsDataBackendUnion ¶ added in v0.2.0
type ProjectInferencePipelineNewParamsDataBackendUnion interface {
// contains filtered or unexported methods
}
Satisfied by ProjectInferencePipelineNewParamsDataBackendBigQueryDataBackend, ProjectInferencePipelineNewParamsDataBackendDefaultDataBackend, ProjectInferencePipelineNewParamsDataBackendSnowflakeDataBackend, ProjectInferencePipelineNewParamsDataBackendDatabricksDtlDataBackend, ProjectInferencePipelineNewParamsDataBackendRedshiftDataBackend, ProjectInferencePipelineNewParamsDataBackendPostgresDataBackend, ProjectInferencePipelineNewParamsDataBackend.
type ProjectInferencePipelineNewParamsProject ¶
type ProjectInferencePipelineNewParamsProject struct {
// The project name.
Name param.Field[string] `json:"name" api:"required"`
// The task type of the project.
TaskType param.Field[ProjectInferencePipelineNewParamsProjectTaskType] `json:"taskType" api:"required"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays param.Field[int64] `json:"dataRetentionDays"`
// The project description.
Description param.Field[string] `json:"description"`
// Who developed the model used in this project.
ModelDeveloper param.Field[string] `json:"modelDeveloper"`
// The kinds of model used in this project.
ModelTypes param.Field[[]string] `json:"modelTypes"`
// What the system in this project is intended to do.
Purpose param.Field[string] `json:"purpose"`
}
func (ProjectInferencePipelineNewParamsProject) MarshalJSON ¶
func (r ProjectInferencePipelineNewParamsProject) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsProjectGitRepo ¶
type ProjectInferencePipelineNewParamsProjectGitRepo struct {
GitAccountID param.Field[string] `json:"gitAccountId" api:"required" format:"uuid"`
GitID param.Field[int64] `json:"gitId" api:"required"`
Branch param.Field[string] `json:"branch"`
RootDir param.Field[string] `json:"rootDir"`
}
func (ProjectInferencePipelineNewParamsProjectGitRepo) MarshalJSON ¶
func (r ProjectInferencePipelineNewParamsProjectGitRepo) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsProjectLinks ¶
type ProjectInferencePipelineNewParamsProjectLinks struct {
App param.Field[string] `json:"app" api:"required"`
}
Links to the project.
func (ProjectInferencePipelineNewParamsProjectLinks) MarshalJSON ¶
func (r ProjectInferencePipelineNewParamsProjectLinks) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsProjectSource ¶
type ProjectInferencePipelineNewParamsProjectSource string
The source of the project.
const ( ProjectInferencePipelineNewParamsProjectSourceWeb ProjectInferencePipelineNewParamsProjectSource = "web" ProjectInferencePipelineNewParamsProjectSourceAPI ProjectInferencePipelineNewParamsProjectSource = "api" )
func (ProjectInferencePipelineNewParamsProjectSource) IsKnown ¶
func (r ProjectInferencePipelineNewParamsProjectSource) IsKnown() bool
type ProjectInferencePipelineNewParamsProjectTaskType ¶
type ProjectInferencePipelineNewParamsProjectTaskType string
The task type of the project.
const ( ProjectInferencePipelineNewParamsProjectTaskTypeLlmBase ProjectInferencePipelineNewParamsProjectTaskType = "llm-base" ProjectInferencePipelineNewParamsProjectTaskTypeTabularClassification ProjectInferencePipelineNewParamsProjectTaskType = "tabular-classification" ProjectInferencePipelineNewParamsProjectTaskTypeTabularRegression ProjectInferencePipelineNewParamsProjectTaskType = "tabular-regression" ProjectInferencePipelineNewParamsProjectTaskTypeTextClassification ProjectInferencePipelineNewParamsProjectTaskType = "text-classification" )
func (ProjectInferencePipelineNewParamsProjectTaskType) IsKnown ¶
func (r ProjectInferencePipelineNewParamsProjectTaskType) IsKnown() bool
type ProjectInferencePipelineNewParamsWorkspace ¶
type ProjectInferencePipelineNewParamsWorkspace struct {
// The workspace name.
Name param.Field[string] `json:"name" api:"required"`
// The workspace slug.
Slug param.Field[string] `json:"slug" api:"required"`
// The workspace invite code.
InviteCode param.Field[string] `json:"inviteCode"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess param.Field[bool] `json:"samlOnlyAccess"`
WildcardDomains param.Field[[]string] `json:"wildcardDomains"`
}
func (ProjectInferencePipelineNewParamsWorkspace) MarshalJSON ¶
func (r ProjectInferencePipelineNewParamsWorkspace) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage ¶
type ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage struct {
ExecutionTimeMs param.Field[int64] `json:"executionTimeMs"`
MonthYear param.Field[time.Time] `json:"monthYear" format:"date"`
PredictionCount param.Field[int64] `json:"predictionCount"`
}
func (ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage) MarshalJSON ¶
func (r ProjectInferencePipelineNewParamsWorkspaceMonthlyUsage) MarshalJSON() (data []byte, err error)
type ProjectInferencePipelineNewParamsWorkspaceStatus ¶
type ProjectInferencePipelineNewParamsWorkspaceStatus string
const ( ProjectInferencePipelineNewParamsWorkspaceStatusActive ProjectInferencePipelineNewParamsWorkspaceStatus = "active" ProjectInferencePipelineNewParamsWorkspaceStatusPastDue ProjectInferencePipelineNewParamsWorkspaceStatus = "past_due" ProjectInferencePipelineNewParamsWorkspaceStatusUnpaid ProjectInferencePipelineNewParamsWorkspaceStatus = "unpaid" ProjectInferencePipelineNewParamsWorkspaceStatusCanceled ProjectInferencePipelineNewParamsWorkspaceStatus = "canceled" ProjectInferencePipelineNewParamsWorkspaceStatusIncomplete ProjectInferencePipelineNewParamsWorkspaceStatus = "incomplete" ProjectInferencePipelineNewParamsWorkspaceStatusIncompleteExpired ProjectInferencePipelineNewParamsWorkspaceStatus = "incomplete_expired" ProjectInferencePipelineNewParamsWorkspaceStatusTrialing ProjectInferencePipelineNewParamsWorkspaceStatus = "trialing" ProjectInferencePipelineNewParamsWorkspaceStatusPaused ProjectInferencePipelineNewParamsWorkspaceStatus = "paused" )
func (ProjectInferencePipelineNewParamsWorkspaceStatus) IsKnown ¶
func (r ProjectInferencePipelineNewParamsWorkspaceStatus) IsKnown() bool
type ProjectInferencePipelineNewResponse ¶
type ProjectInferencePipelineNewResponse struct {
// The inference pipeline id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last test evaluation date.
DateLastEvaluated time.Time `json:"dateLastEvaluated" api:"required,nullable" format:"date-time"`
// The last data sample received date.
DateLastSampleReceived time.Time `json:"dateLastSampleReceived" api:"required,nullable" format:"date-time"`
// The next test evaluation date.
DateOfNextEvaluation time.Time `json:"dateOfNextEvaluation" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline description.
Description string `json:"description" api:"required,nullable"`
// The number of tests failing.
FailingGoalCount int64 `json:"failingGoalCount" api:"required"`
Links ProjectInferencePipelineNewResponseLinks `json:"links" api:"required"`
// The inference pipeline name.
Name string `json:"name" api:"required"`
// The number of tests passing.
PassingGoalCount int64 `json:"passingGoalCount" api:"required"`
// The project id.
ProjectID string `json:"projectId" api:"required" format:"uuid"`
// The status of test evaluation for the inference pipeline.
Status ProjectInferencePipelineNewResponseStatus `json:"status" api:"required"`
// The status message of test evaluation for the inference pipeline.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
// The total number of tests.
TotalGoalCount int64 `json:"totalGoalCount" api:"required"`
DataBackend ProjectInferencePipelineNewResponseDataBackend `json:"dataBackend" api:"nullable"`
// The last time the data was polled.
DateLastPolled time.Time `json:"dateLastPolled" api:"nullable" format:"date-time"`
Project ProjectInferencePipelineNewResponseProject `json:"project" api:"nullable"`
// The total number of records in the data backend.
TotalRecordsCount int64 `json:"totalRecordsCount" api:"nullable"`
Workspace ProjectInferencePipelineNewResponseWorkspace `json:"workspace" api:"nullable"`
// The workspace id.
WorkspaceID string `json:"workspaceId" format:"uuid"`
JSON projectInferencePipelineNewResponseJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponse) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponse) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackend ¶ added in v0.2.0
type ProjectInferencePipelineNewResponseDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"nullable" format:"uuid"`
// This field can have the runtime type of
// [ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig],
// [ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig],
// [ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig],
// [ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig],
// [ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig].
Config interface{} `json:"config"`
Database string `json:"database"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"nullable" format:"uuid"`
DatasetID string `json:"datasetId"`
PartitionType ProjectInferencePipelineNewResponseDataBackendPartitionType `json:"partitionType" api:"nullable"`
PostgresConnectionID string `json:"postgresConnectionId" api:"nullable" format:"uuid"`
ProjectID string `json:"projectId"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"nullable" format:"uuid"`
Schema string `json:"schema"`
SchemaName string `json:"schemaName"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"nullable" format:"uuid"`
Table string `json:"table" api:"nullable"`
TableID string `json:"tableId" api:"nullable"`
TableName string `json:"tableName"`
JSON projectInferencePipelineNewResponseDataBackendJSON `json:"-"`
// contains filtered or unexported fields
}
func (ProjectInferencePipelineNewResponseDataBackend) AsUnion ¶ added in v0.2.0
func (r ProjectInferencePipelineNewResponseDataBackend) AsUnion() ProjectInferencePipelineNewResponseDataBackendUnion
AsUnion returns a ProjectInferencePipelineNewResponseDataBackendUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend, ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend, ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend, ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend, ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend, ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend.
func (*ProjectInferencePipelineNewResponseDataBackend) UnmarshalJSON ¶ added in v0.2.0
func (r *ProjectInferencePipelineNewResponseDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendBackendType ¶ added in v0.2.0
type ProjectInferencePipelineNewResponseDataBackendBackendType string
const ( ProjectInferencePipelineNewResponseDataBackendBackendTypeBigquery ProjectInferencePipelineNewResponseDataBackendBackendType = "bigquery" ProjectInferencePipelineNewResponseDataBackendBackendTypeDefault ProjectInferencePipelineNewResponseDataBackendBackendType = "default" ProjectInferencePipelineNewResponseDataBackendBackendTypeSnowflake ProjectInferencePipelineNewResponseDataBackendBackendType = "snowflake" ProjectInferencePipelineNewResponseDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineNewResponseDataBackendBackendType = "databricks_dtl" ProjectInferencePipelineNewResponseDataBackendBackendTypeRedshift ProjectInferencePipelineNewResponseDataBackendBackendType = "redshift" ProjectInferencePipelineNewResponseDataBackendBackendTypePostgres ProjectInferencePipelineNewResponseDataBackendBackendType = "postgres" )
func (ProjectInferencePipelineNewResponseDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewResponseDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType `json:"backendType" api:"required"`
BigqueryConnectionID string `json:"bigqueryConnectionId" api:"required,nullable" format:"uuid"`
DatasetID string `json:"datasetId" api:"required"`
ProjectID string `json:"projectId" api:"required"`
TableID string `json:"tableId" api:"required,nullable"`
PartitionType ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType `json:"partitionType" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendBigQueryDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendTypeBigquery ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType = "bigquery"
)
func (ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType string
const ( ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionTypeDay ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType = "DAY" ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionTypeMonth ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType = "MONTH" ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionTypeYear ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackendPartitionType = "YEAR" )
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendType `json:"backendType" api:"required"`
DatabricksDtlConnectionID string `json:"databricksDtlConnectionId" api:"required,nullable" format:"uuid"`
TableID string `json:"tableId" api:"required,nullable"`
JSON projectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendTypeDatabricksDtl ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendBackendType = "databricks_dtl"
)
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType `json:"backendType" api:"required"`
JSON projectInferencePipelineNewResponseDataBackendDefaultDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendTypeDefault ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType = "default"
)
func (ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewResponseDataBackendDefaultDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendPartitionType ¶ added in v0.2.0
type ProjectInferencePipelineNewResponseDataBackendPartitionType string
const ( ProjectInferencePipelineNewResponseDataBackendPartitionTypeDay ProjectInferencePipelineNewResponseDataBackendPartitionType = "DAY" ProjectInferencePipelineNewResponseDataBackendPartitionTypeMonth ProjectInferencePipelineNewResponseDataBackendPartitionType = "MONTH" ProjectInferencePipelineNewResponseDataBackendPartitionTypeYear ProjectInferencePipelineNewResponseDataBackendPartitionType = "YEAR" )
func (ProjectInferencePipelineNewResponseDataBackendPartitionType) IsKnown ¶ added in v0.2.0
func (r ProjectInferencePipelineNewResponseDataBackendPartitionType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
PostgresConnectionID string `json:"postgresConnectionId" api:"required,nullable" format:"uuid"`
Schema string `json:"schema" api:"required"`
Table string `json:"table" api:"required,nullable"`
JSON projectInferencePipelineNewResponseDataBackendPostgresDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendTypePostgres ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType = "postgres"
)
func (ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendPostgresDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendPostgresDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType `json:"backendType" api:"required"`
RedshiftConnectionID string `json:"redshiftConnectionId" api:"required,nullable" format:"uuid"`
SchemaName string `json:"schemaName" api:"required"`
TableName string `json:"tableName" api:"required"`
JSON projectInferencePipelineNewResponseDataBackendRedshiftDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendTypeRedshift ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType = "redshift"
)
func (ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType) IsKnown ¶ added in v0.3.1
func (r ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendBackendType) IsKnown() bool
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend struct {
BackendType ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendType `json:"backendType" api:"required"`
Database string `json:"database" api:"required"`
Schema string `json:"schema" api:"required"`
SnowflakeConnectionID string `json:"snowflakeConnectionId" api:"required,nullable" format:"uuid"`
Table string `json:"table" api:"required,nullable"`
JSON projectInferencePipelineNewResponseDataBackendSnowflakeDataBackendJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendType ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendType string
const (
ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendTypeSnowflake ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendBackendType = "snowflake"
)
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig ¶ added in v0.3.1
type ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig struct {
// Name of the column with the ground truths.
GroundTruthColumnName string `json:"groundTruthColumnName" api:"nullable"`
// Name of the column with human feedback.
HumanFeedbackColumnName string `json:"humanFeedbackColumnName" api:"nullable"`
// Name of the column with the latencies.
LatencyColumnName string `json:"latencyColumnName" api:"nullable"`
// Name of the column with the timestamps. Timestamps must be in UNIX sec format.
// If not provided, the upload timestamp is used.
TimestampColumnName string `json:"timestampColumnName" api:"nullable"`
JSON projectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfigJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON ¶ added in v0.3.1
func (r *ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackendConfig) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseDataBackendUnion ¶ added in v0.2.0
type ProjectInferencePipelineNewResponseDataBackendUnion interface {
// contains filtered or unexported methods
}
Union satisfied by ProjectInferencePipelineNewResponseDataBackendBigQueryDataBackend, ProjectInferencePipelineNewResponseDataBackendDefaultDataBackend, ProjectInferencePipelineNewResponseDataBackendSnowflakeDataBackend, ProjectInferencePipelineNewResponseDataBackendDatabricksDtlDataBackend, ProjectInferencePipelineNewResponseDataBackendRedshiftDataBackend or ProjectInferencePipelineNewResponseDataBackendPostgresDataBackend.
type ProjectInferencePipelineNewResponseLinks ¶
type ProjectInferencePipelineNewResponseLinks struct {
App string `json:"app" api:"required"`
JSON projectInferencePipelineNewResponseLinksJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseLinks) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseLinks) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseProject ¶
type ProjectInferencePipelineNewResponseProject struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links ProjectInferencePipelineNewResponseProjectLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source ProjectInferencePipelineNewResponseProjectSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType ProjectInferencePipelineNewResponseProjectTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo ProjectInferencePipelineNewResponseProjectGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON projectInferencePipelineNewResponseProjectJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseProject) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseProject) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseProjectGitRepo ¶
type ProjectInferencePipelineNewResponseProjectGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectInferencePipelineNewResponseProjectGitRepoJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseProjectGitRepo) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseProjectGitRepo) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseProjectLinks ¶
type ProjectInferencePipelineNewResponseProjectLinks struct {
App string `json:"app" api:"required"`
JSON projectInferencePipelineNewResponseProjectLinksJSON `json:"-"`
}
Links to the project.
func (*ProjectInferencePipelineNewResponseProjectLinks) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseProjectLinks) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseProjectSource ¶
type ProjectInferencePipelineNewResponseProjectSource string
The source of the project.
const ( ProjectInferencePipelineNewResponseProjectSourceWeb ProjectInferencePipelineNewResponseProjectSource = "web" ProjectInferencePipelineNewResponseProjectSourceAPI ProjectInferencePipelineNewResponseProjectSource = "api" )
func (ProjectInferencePipelineNewResponseProjectSource) IsKnown ¶
func (r ProjectInferencePipelineNewResponseProjectSource) IsKnown() bool
type ProjectInferencePipelineNewResponseProjectTaskType ¶
type ProjectInferencePipelineNewResponseProjectTaskType string
The task type of the project.
const ( ProjectInferencePipelineNewResponseProjectTaskTypeLlmBase ProjectInferencePipelineNewResponseProjectTaskType = "llm-base" ProjectInferencePipelineNewResponseProjectTaskTypeTabularClassification ProjectInferencePipelineNewResponseProjectTaskType = "tabular-classification" ProjectInferencePipelineNewResponseProjectTaskTypeTabularRegression ProjectInferencePipelineNewResponseProjectTaskType = "tabular-regression" ProjectInferencePipelineNewResponseProjectTaskTypeTextClassification ProjectInferencePipelineNewResponseProjectTaskType = "text-classification" )
func (ProjectInferencePipelineNewResponseProjectTaskType) IsKnown ¶
func (r ProjectInferencePipelineNewResponseProjectTaskType) IsKnown() bool
type ProjectInferencePipelineNewResponseStatus ¶
type ProjectInferencePipelineNewResponseStatus string
The status of test evaluation for the inference pipeline.
const ( ProjectInferencePipelineNewResponseStatusQueued ProjectInferencePipelineNewResponseStatus = "queued" ProjectInferencePipelineNewResponseStatusRunning ProjectInferencePipelineNewResponseStatus = "running" ProjectInferencePipelineNewResponseStatusPaused ProjectInferencePipelineNewResponseStatus = "paused" ProjectInferencePipelineNewResponseStatusFailed ProjectInferencePipelineNewResponseStatus = "failed" ProjectInferencePipelineNewResponseStatusCompleted ProjectInferencePipelineNewResponseStatus = "completed" ProjectInferencePipelineNewResponseStatusUnknown ProjectInferencePipelineNewResponseStatus = "unknown" )
func (ProjectInferencePipelineNewResponseStatus) IsKnown ¶
func (r ProjectInferencePipelineNewResponseStatus) IsKnown() bool
type ProjectInferencePipelineNewResponseWorkspace ¶
type ProjectInferencePipelineNewResponseWorkspace struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status ProjectInferencePipelineNewResponseWorkspaceStatus `json:"status" api:"required"`
MonthlyUsage []ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON projectInferencePipelineNewResponseWorkspaceJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseWorkspace) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseWorkspace) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage ¶
type ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON projectInferencePipelineNewResponseWorkspaceMonthlyUsageJSON `json:"-"`
}
func (*ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage) UnmarshalJSON ¶
func (r *ProjectInferencePipelineNewResponseWorkspaceMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type ProjectInferencePipelineNewResponseWorkspaceStatus ¶
type ProjectInferencePipelineNewResponseWorkspaceStatus string
const ( ProjectInferencePipelineNewResponseWorkspaceStatusActive ProjectInferencePipelineNewResponseWorkspaceStatus = "active" ProjectInferencePipelineNewResponseWorkspaceStatusPastDue ProjectInferencePipelineNewResponseWorkspaceStatus = "past_due" ProjectInferencePipelineNewResponseWorkspaceStatusUnpaid ProjectInferencePipelineNewResponseWorkspaceStatus = "unpaid" ProjectInferencePipelineNewResponseWorkspaceStatusCanceled ProjectInferencePipelineNewResponseWorkspaceStatus = "canceled" ProjectInferencePipelineNewResponseWorkspaceStatusIncomplete ProjectInferencePipelineNewResponseWorkspaceStatus = "incomplete" ProjectInferencePipelineNewResponseWorkspaceStatusIncompleteExpired ProjectInferencePipelineNewResponseWorkspaceStatus = "incomplete_expired" ProjectInferencePipelineNewResponseWorkspaceStatusTrialing ProjectInferencePipelineNewResponseWorkspaceStatus = "trialing" ProjectInferencePipelineNewResponseWorkspaceStatusPaused ProjectInferencePipelineNewResponseWorkspaceStatus = "paused" )
func (ProjectInferencePipelineNewResponseWorkspaceStatus) IsKnown ¶
func (r ProjectInferencePipelineNewResponseWorkspaceStatus) IsKnown() bool
type ProjectInferencePipelineService ¶
type ProjectInferencePipelineService struct {
Options []option.RequestOption
}
ProjectInferencePipelineService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProjectInferencePipelineService method instead.
func NewProjectInferencePipelineService ¶
func NewProjectInferencePipelineService(opts ...option.RequestOption) (r *ProjectInferencePipelineService)
NewProjectInferencePipelineService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ProjectInferencePipelineService) List ¶
func (r *ProjectInferencePipelineService) List(ctx context.Context, projectID string, query ProjectInferencePipelineListParams, opts ...option.RequestOption) (res *ProjectInferencePipelineListResponse, err error)
List the inference pipelines in a project.
func (*ProjectInferencePipelineService) New ¶
func (r *ProjectInferencePipelineService) New(ctx context.Context, projectID string, body ProjectInferencePipelineNewParams, opts ...option.RequestOption) (res *ProjectInferencePipelineNewResponse, err error)
Create an inference pipeline in a project.
type ProjectListParams ¶
type ProjectListParams struct {
// Filter list of items by project name.
Name param.Field[string] `query:"name"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Filter list of items by task type.
TaskType param.Field[ProjectListParamsTaskType] `query:"taskType"`
}
func (ProjectListParams) URLQuery ¶
func (r ProjectListParams) URLQuery() (v url.Values)
URLQuery serializes ProjectListParams's query parameters as `url.Values`.
type ProjectListParamsTaskType ¶
type ProjectListParamsTaskType string
Filter list of items by task type.
const ( ProjectListParamsTaskTypeLlmBase ProjectListParamsTaskType = "llm-base" ProjectListParamsTaskTypeTabularClassification ProjectListParamsTaskType = "tabular-classification" ProjectListParamsTaskTypeTabularRegression ProjectListParamsTaskType = "tabular-regression" ProjectListParamsTaskTypeTextClassification ProjectListParamsTaskType = "text-classification" )
func (ProjectListParamsTaskType) IsKnown ¶
func (r ProjectListParamsTaskType) IsKnown() bool
type ProjectListResponse ¶
type ProjectListResponse struct {
Items []ProjectListResponseItem `json:"items" api:"required"`
JSON projectListResponseJSON `json:"-"`
}
func (*ProjectListResponse) UnmarshalJSON ¶
func (r *ProjectListResponse) UnmarshalJSON(data []byte) (err error)
type ProjectListResponseItem ¶
type ProjectListResponseItem struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links ProjectListResponseItemsLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source ProjectListResponseItemsSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType ProjectListResponseItemsTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo ProjectListResponseItemsGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON projectListResponseItemJSON `json:"-"`
}
func (*ProjectListResponseItem) UnmarshalJSON ¶
func (r *ProjectListResponseItem) UnmarshalJSON(data []byte) (err error)
type ProjectListResponseItemsGitRepo ¶
type ProjectListResponseItemsGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectListResponseItemsGitRepoJSON `json:"-"`
}
func (*ProjectListResponseItemsGitRepo) UnmarshalJSON ¶
func (r *ProjectListResponseItemsGitRepo) UnmarshalJSON(data []byte) (err error)
type ProjectListResponseItemsLinks ¶
type ProjectListResponseItemsLinks struct {
App string `json:"app" api:"required"`
JSON projectListResponseItemsLinksJSON `json:"-"`
}
Links to the project.
func (*ProjectListResponseItemsLinks) UnmarshalJSON ¶
func (r *ProjectListResponseItemsLinks) UnmarshalJSON(data []byte) (err error)
type ProjectListResponseItemsSource ¶
type ProjectListResponseItemsSource string
The source of the project.
const ( ProjectListResponseItemsSourceWeb ProjectListResponseItemsSource = "web" ProjectListResponseItemsSourceAPI ProjectListResponseItemsSource = "api" )
func (ProjectListResponseItemsSource) IsKnown ¶
func (r ProjectListResponseItemsSource) IsKnown() bool
type ProjectListResponseItemsTaskType ¶
type ProjectListResponseItemsTaskType string
The task type of the project.
const ( ProjectListResponseItemsTaskTypeLlmBase ProjectListResponseItemsTaskType = "llm-base" ProjectListResponseItemsTaskTypeTabularClassification ProjectListResponseItemsTaskType = "tabular-classification" ProjectListResponseItemsTaskTypeTabularRegression ProjectListResponseItemsTaskType = "tabular-regression" ProjectListResponseItemsTaskTypeTextClassification ProjectListResponseItemsTaskType = "text-classification" )
func (ProjectListResponseItemsTaskType) IsKnown ¶
func (r ProjectListResponseItemsTaskType) IsKnown() bool
type ProjectNewParams ¶
type ProjectNewParams struct {
// The project name.
Name param.Field[string] `json:"name" api:"required"`
// The task type of the project.
TaskType param.Field[ProjectNewParamsTaskType] `json:"taskType" api:"required"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays param.Field[int64] `json:"dataRetentionDays"`
// The project description.
Description param.Field[string] `json:"description"`
// Who developed the model used in this project.
ModelDeveloper param.Field[string] `json:"modelDeveloper"`
// The kinds of model used in this project.
ModelTypes param.Field[[]string] `json:"modelTypes"`
// What the system in this project is intended to do.
Purpose param.Field[string] `json:"purpose"`
}
func (ProjectNewParams) MarshalJSON ¶
func (r ProjectNewParams) MarshalJSON() (data []byte, err error)
type ProjectNewParamsTaskType ¶
type ProjectNewParamsTaskType string
The task type of the project.
const ( ProjectNewParamsTaskTypeLlmBase ProjectNewParamsTaskType = "llm-base" ProjectNewParamsTaskTypeTabularClassification ProjectNewParamsTaskType = "tabular-classification" ProjectNewParamsTaskTypeTabularRegression ProjectNewParamsTaskType = "tabular-regression" ProjectNewParamsTaskTypeTextClassification ProjectNewParamsTaskType = "text-classification" )
func (ProjectNewParamsTaskType) IsKnown ¶
func (r ProjectNewParamsTaskType) IsKnown() bool
type ProjectNewResponse ¶
type ProjectNewResponse struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links ProjectNewResponseLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source ProjectNewResponseSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType ProjectNewResponseTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo ProjectNewResponseGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON projectNewResponseJSON `json:"-"`
}
func (*ProjectNewResponse) UnmarshalJSON ¶
func (r *ProjectNewResponse) UnmarshalJSON(data []byte) (err error)
type ProjectNewResponseGitRepo ¶
type ProjectNewResponseGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectNewResponseGitRepoJSON `json:"-"`
}
func (*ProjectNewResponseGitRepo) UnmarshalJSON ¶
func (r *ProjectNewResponseGitRepo) UnmarshalJSON(data []byte) (err error)
type ProjectNewResponseLinks ¶
type ProjectNewResponseLinks struct {
App string `json:"app" api:"required"`
JSON projectNewResponseLinksJSON `json:"-"`
}
Links to the project.
func (*ProjectNewResponseLinks) UnmarshalJSON ¶
func (r *ProjectNewResponseLinks) UnmarshalJSON(data []byte) (err error)
type ProjectNewResponseSource ¶
type ProjectNewResponseSource string
The source of the project.
const ( ProjectNewResponseSourceWeb ProjectNewResponseSource = "web" ProjectNewResponseSourceAPI ProjectNewResponseSource = "api" )
func (ProjectNewResponseSource) IsKnown ¶
func (r ProjectNewResponseSource) IsKnown() bool
type ProjectNewResponseTaskType ¶
type ProjectNewResponseTaskType string
The task type of the project.
const ( ProjectNewResponseTaskTypeLlmBase ProjectNewResponseTaskType = "llm-base" ProjectNewResponseTaskTypeTabularClassification ProjectNewResponseTaskType = "tabular-classification" ProjectNewResponseTaskTypeTabularRegression ProjectNewResponseTaskType = "tabular-regression" ProjectNewResponseTaskTypeTextClassification ProjectNewResponseTaskType = "text-classification" )
func (ProjectNewResponseTaskType) IsKnown ¶
func (r ProjectNewResponseTaskType) IsKnown() bool
type ProjectService ¶
type ProjectService struct {
Options []option.RequestOption
Commits *ProjectCommitService
InferencePipelines *ProjectInferencePipelineService
Tests *ProjectTestService
}
ProjectService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProjectService method instead.
func NewProjectService ¶
func NewProjectService(opts ...option.RequestOption) (r *ProjectService)
NewProjectService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ProjectService) Delete ¶ added in v0.4.1
func (r *ProjectService) Delete(ctx context.Context, projectID string, opts ...option.RequestOption) (err error)
Delete a project by its ID.
func (*ProjectService) List ¶
func (r *ProjectService) List(ctx context.Context, query ProjectListParams, opts ...option.RequestOption) (res *ProjectListResponse, err error)
List your workspace's projects.
func (*ProjectService) New ¶
func (r *ProjectService) New(ctx context.Context, body ProjectNewParams, opts ...option.RequestOption) (res *ProjectNewResponse, err error)
Create a project in your workspace.
func (*ProjectService) Update ¶ added in v0.9.0
func (r *ProjectService) Update(ctx context.Context, projectID string, body ProjectUpdateParams, opts ...option.RequestOption) (res *ProjectUpdateResponse, err error)
Update a project's metadata.
type ProjectTestListParams ¶
type ProjectTestListParams struct {
// Filter for archived tests.
IncludeArchived param.Field[bool] `query:"includeArchived"`
// Retrive tests created by a specific project version.
OriginVersionID param.Field[string] `query:"originVersionId" format:"uuid"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Filter for suggested tests.
Suggested param.Field[bool] `query:"suggested"`
// Filter objects by test type. Available types are `integrity`, `consistency`,
// `performance`, `fairness`, and `robustness`.
Type param.Field[ProjectTestListParamsType] `query:"type"`
// Retrive tests with usesProductionData (monitoring).
UsesProductionData param.Field[bool] `query:"usesProductionData"`
}
func (ProjectTestListParams) URLQuery ¶
func (r ProjectTestListParams) URLQuery() (v url.Values)
URLQuery serializes ProjectTestListParams's query parameters as `url.Values`.
type ProjectTestListParamsType ¶
type ProjectTestListParamsType string
Filter objects by test type. Available types are `integrity`, `consistency`, `performance`, `fairness`, and `robustness`.
const ( ProjectTestListParamsTypeIntegrity ProjectTestListParamsType = "integrity" ProjectTestListParamsTypeConsistency ProjectTestListParamsType = "consistency" ProjectTestListParamsTypePerformance ProjectTestListParamsType = "performance" ProjectTestListParamsTypeFairness ProjectTestListParamsType = "fairness" ProjectTestListParamsTypeRobustness ProjectTestListParamsType = "robustness" )
func (ProjectTestListParamsType) IsKnown ¶
func (r ProjectTestListParamsType) IsKnown() bool
type ProjectTestListResponse ¶
type ProjectTestListResponse struct {
Items []ProjectTestListResponseItem `json:"items" api:"required"`
JSON projectTestListResponseJSON `json:"-"`
}
func (*ProjectTestListResponse) UnmarshalJSON ¶
func (r *ProjectTestListResponse) UnmarshalJSON(data []byte) (err error)
type ProjectTestListResponseItem ¶
type ProjectTestListResponseItem struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype ProjectTestListResponseItemsSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []ProjectTestListResponseItemsThreshold `json:"thresholds" api:"required"`
// The test type.
Type ProjectTestListResponseItemsType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines bool `json:"defaultToAllPipelines" api:"nullable"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines []string `json:"excludePipelines" api:"nullable" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData bool `json:"includeHistoricalData" api:"nullable"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines []string `json:"includePipelines" api:"nullable" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON projectTestListResponseItemJSON `json:"-"`
}
func (*ProjectTestListResponseItem) UnmarshalJSON ¶
func (r *ProjectTestListResponseItem) UnmarshalJSON(data []byte) (err error)
type ProjectTestListResponseItemsSubtype ¶
type ProjectTestListResponseItemsSubtype string
The test subtype.
const ( ProjectTestListResponseItemsSubtypeAnomalousColumnCount ProjectTestListResponseItemsSubtype = "anomalousColumnCount" ProjectTestListResponseItemsSubtypeCharacterLength ProjectTestListResponseItemsSubtype = "characterLength" ProjectTestListResponseItemsSubtypeClassImbalanceRatio ProjectTestListResponseItemsSubtype = "classImbalanceRatio" ProjectTestListResponseItemsSubtypeExpectColumnAToBeInColumnB ProjectTestListResponseItemsSubtype = "expectColumnAToBeInColumnB" ProjectTestListResponseItemsSubtypeColumnAverage ProjectTestListResponseItemsSubtype = "columnAverage" ProjectTestListResponseItemsSubtypeColumnDrift ProjectTestListResponseItemsSubtype = "columnDrift" ProjectTestListResponseItemsSubtypeColumnStatistic ProjectTestListResponseItemsSubtype = "columnStatistic" ProjectTestListResponseItemsSubtypeColumnValuesMatch ProjectTestListResponseItemsSubtype = "columnValuesMatch" ProjectTestListResponseItemsSubtypeConflictingLabelRowCount ProjectTestListResponseItemsSubtype = "conflictingLabelRowCount" ProjectTestListResponseItemsSubtypeContainsPii ProjectTestListResponseItemsSubtype = "containsPii" ProjectTestListResponseItemsSubtypeContainsValidURL ProjectTestListResponseItemsSubtype = "containsValidUrl" ProjectTestListResponseItemsSubtypeCustomMetricThreshold ProjectTestListResponseItemsSubtype = "customMetricThreshold" ProjectTestListResponseItemsSubtypeDuplicateRowCount ProjectTestListResponseItemsSubtype = "duplicateRowCount" ProjectTestListResponseItemsSubtypeEmptyFeature ProjectTestListResponseItemsSubtype = "emptyFeature" ProjectTestListResponseItemsSubtypeEmptyFeatureCount ProjectTestListResponseItemsSubtype = "emptyFeatureCount" ProjectTestListResponseItemsSubtypeDriftedFeatureCount ProjectTestListResponseItemsSubtype = "driftedFeatureCount" ProjectTestListResponseItemsSubtypeFeatureMissingValues ProjectTestListResponseItemsSubtype = "featureMissingValues" ProjectTestListResponseItemsSubtypeFeatureValueValidation ProjectTestListResponseItemsSubtype = "featureValueValidation" ProjectTestListResponseItemsSubtypeGreatExpectations ProjectTestListResponseItemsSubtype = "greatExpectations" ProjectTestListResponseItemsSubtypeGroupByColumnStatsCheck ProjectTestListResponseItemsSubtype = "groupByColumnStatsCheck" ProjectTestListResponseItemsSubtypeIllFormedRowCount ProjectTestListResponseItemsSubtype = "illFormedRowCount" ProjectTestListResponseItemsSubtypeIsCode ProjectTestListResponseItemsSubtype = "isCode" ProjectTestListResponseItemsSubtypeIsJson ProjectTestListResponseItemsSubtype = "isJson" ProjectTestListResponseItemsSubtypeLlmRubricThresholdV2 ProjectTestListResponseItemsSubtype = "llmRubricThresholdV2" ProjectTestListResponseItemsSubtypeLabelDrift ProjectTestListResponseItemsSubtype = "labelDrift" ProjectTestListResponseItemsSubtypeMetricThreshold ProjectTestListResponseItemsSubtype = "metricThreshold" ProjectTestListResponseItemsSubtypeNewCategoryCount ProjectTestListResponseItemsSubtype = "newCategoryCount" ProjectTestListResponseItemsSubtypeNewLabelCount ProjectTestListResponseItemsSubtype = "newLabelCount" ProjectTestListResponseItemsSubtypeNullRowCount ProjectTestListResponseItemsSubtype = "nullRowCount" ProjectTestListResponseItemsSubtypeRowCount ProjectTestListResponseItemsSubtype = "rowCount" ProjectTestListResponseItemsSubtypePpScoreValueValidation ProjectTestListResponseItemsSubtype = "ppScoreValueValidation" ProjectTestListResponseItemsSubtypeQuasiConstantFeature ProjectTestListResponseItemsSubtype = "quasiConstantFeature" ProjectTestListResponseItemsSubtypeQuasiConstantFeatureCount ProjectTestListResponseItemsSubtype = "quasiConstantFeatureCount" ProjectTestListResponseItemsSubtypeSqlQuery ProjectTestListResponseItemsSubtype = "sqlQuery" ProjectTestListResponseItemsSubtypeDtypeValidation ProjectTestListResponseItemsSubtype = "dtypeValidation" ProjectTestListResponseItemsSubtypeSentenceLength ProjectTestListResponseItemsSubtype = "sentenceLength" ProjectTestListResponseItemsSubtypeSizeRatio ProjectTestListResponseItemsSubtype = "sizeRatio" ProjectTestListResponseItemsSubtypeSpecialCharactersRatio ProjectTestListResponseItemsSubtype = "specialCharactersRatio" ProjectTestListResponseItemsSubtypeStringValidation ProjectTestListResponseItemsSubtype = "stringValidation" ProjectTestListResponseItemsSubtypeTrainValLeakageRowCount ProjectTestListResponseItemsSubtype = "trainValLeakageRowCount" )
func (ProjectTestListResponseItemsSubtype) IsKnown ¶
func (r ProjectTestListResponseItemsSubtype) IsKnown() bool
type ProjectTestListResponseItemsThreshold ¶
type ProjectTestListResponseItemsThreshold struct {
// The insight name to be evaluated.
InsightName ProjectTestListResponseItemsThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []ProjectTestListResponseItemsThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator ProjectTestListResponseItemsThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode ProjectTestListResponseItemsThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value ProjectTestListResponseItemsThresholdsValueUnion `json:"value"`
JSON projectTestListResponseItemsThresholdJSON `json:"-"`
}
func (*ProjectTestListResponseItemsThreshold) UnmarshalJSON ¶
func (r *ProjectTestListResponseItemsThreshold) UnmarshalJSON(data []byte) (err error)
type ProjectTestListResponseItemsThresholdsInsightName ¶
type ProjectTestListResponseItemsThresholdsInsightName string
The insight name to be evaluated.
const ( ProjectTestListResponseItemsThresholdsInsightNameCharacterLength ProjectTestListResponseItemsThresholdsInsightName = "characterLength" ProjectTestListResponseItemsThresholdsInsightNameClassImbalance ProjectTestListResponseItemsThresholdsInsightName = "classImbalance" ProjectTestListResponseItemsThresholdsInsightNameExpectColumnAToBeInColumnB ProjectTestListResponseItemsThresholdsInsightName = "expectColumnAToBeInColumnB" ProjectTestListResponseItemsThresholdsInsightNameColumnAverage ProjectTestListResponseItemsThresholdsInsightName = "columnAverage" ProjectTestListResponseItemsThresholdsInsightNameColumnDrift ProjectTestListResponseItemsThresholdsInsightName = "columnDrift" ProjectTestListResponseItemsThresholdsInsightNameColumnValuesMatch ProjectTestListResponseItemsThresholdsInsightName = "columnValuesMatch" ProjectTestListResponseItemsThresholdsInsightNameConfidenceDistribution ProjectTestListResponseItemsThresholdsInsightName = "confidenceDistribution" ProjectTestListResponseItemsThresholdsInsightNameConflictingLabelRowCount ProjectTestListResponseItemsThresholdsInsightName = "conflictingLabelRowCount" ProjectTestListResponseItemsThresholdsInsightNameContainsPii ProjectTestListResponseItemsThresholdsInsightName = "containsPii" ProjectTestListResponseItemsThresholdsInsightNameContainsValidURL ProjectTestListResponseItemsThresholdsInsightName = "containsValidUrl" ProjectTestListResponseItemsThresholdsInsightNameCustomMetric ProjectTestListResponseItemsThresholdsInsightName = "customMetric" ProjectTestListResponseItemsThresholdsInsightNameDuplicateRowCount ProjectTestListResponseItemsThresholdsInsightName = "duplicateRowCount" ProjectTestListResponseItemsThresholdsInsightNameEmptyFeatures ProjectTestListResponseItemsThresholdsInsightName = "emptyFeatures" ProjectTestListResponseItemsThresholdsInsightNameFeatureDrift ProjectTestListResponseItemsThresholdsInsightName = "featureDrift" ProjectTestListResponseItemsThresholdsInsightNameFeatureProfile ProjectTestListResponseItemsThresholdsInsightName = "featureProfile" ProjectTestListResponseItemsThresholdsInsightNameGreatExpectations ProjectTestListResponseItemsThresholdsInsightName = "greatExpectations" ProjectTestListResponseItemsThresholdsInsightNameGroupByColumnStatsCheck ProjectTestListResponseItemsThresholdsInsightName = "groupByColumnStatsCheck" ProjectTestListResponseItemsThresholdsInsightNameIllFormedRowCount ProjectTestListResponseItemsThresholdsInsightName = "illFormedRowCount" ProjectTestListResponseItemsThresholdsInsightNameIsCode ProjectTestListResponseItemsThresholdsInsightName = "isCode" ProjectTestListResponseItemsThresholdsInsightNameIsJson ProjectTestListResponseItemsThresholdsInsightName = "isJson" ProjectTestListResponseItemsThresholdsInsightNameLlmRubricV2 ProjectTestListResponseItemsThresholdsInsightName = "llmRubricV2" ProjectTestListResponseItemsThresholdsInsightNameLabelDrift ProjectTestListResponseItemsThresholdsInsightName = "labelDrift" ProjectTestListResponseItemsThresholdsInsightNameMetrics ProjectTestListResponseItemsThresholdsInsightName = "metrics" ProjectTestListResponseItemsThresholdsInsightNameNewCategories ProjectTestListResponseItemsThresholdsInsightName = "newCategories" ProjectTestListResponseItemsThresholdsInsightNameNewLabels ProjectTestListResponseItemsThresholdsInsightName = "newLabels" ProjectTestListResponseItemsThresholdsInsightNameNullRowCount ProjectTestListResponseItemsThresholdsInsightName = "nullRowCount" ProjectTestListResponseItemsThresholdsInsightNamePpScore ProjectTestListResponseItemsThresholdsInsightName = "ppScore" ProjectTestListResponseItemsThresholdsInsightNameQuasiConstantFeatures ProjectTestListResponseItemsThresholdsInsightName = "quasiConstantFeatures" ProjectTestListResponseItemsThresholdsInsightNameSentenceLength ProjectTestListResponseItemsThresholdsInsightName = "sentenceLength" ProjectTestListResponseItemsThresholdsInsightNameSizeRatio ProjectTestListResponseItemsThresholdsInsightName = "sizeRatio" ProjectTestListResponseItemsThresholdsInsightNameSpecialCharacters ProjectTestListResponseItemsThresholdsInsightName = "specialCharacters" ProjectTestListResponseItemsThresholdsInsightNameStringValidation ProjectTestListResponseItemsThresholdsInsightName = "stringValidation" ProjectTestListResponseItemsThresholdsInsightNameTrainValLeakageRowCount ProjectTestListResponseItemsThresholdsInsightName = "trainValLeakageRowCount" )
func (ProjectTestListResponseItemsThresholdsInsightName) IsKnown ¶
func (r ProjectTestListResponseItemsThresholdsInsightName) IsKnown() bool
type ProjectTestListResponseItemsThresholdsInsightParameter ¶
type ProjectTestListResponseItemsThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON projectTestListResponseItemsThresholdsInsightParameterJSON `json:"-"`
}
func (*ProjectTestListResponseItemsThresholdsInsightParameter) UnmarshalJSON ¶
func (r *ProjectTestListResponseItemsThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type ProjectTestListResponseItemsThresholdsOperator ¶
type ProjectTestListResponseItemsThresholdsOperator string
The operator to be used for the evaluation.
const ( ProjectTestListResponseItemsThresholdsOperatorIs ProjectTestListResponseItemsThresholdsOperator = "is" ProjectTestListResponseItemsThresholdsOperatorGreater ProjectTestListResponseItemsThresholdsOperator = ">" ProjectTestListResponseItemsThresholdsOperatorGreaterOrEquals ProjectTestListResponseItemsThresholdsOperator = ">=" ProjectTestListResponseItemsThresholdsOperatorLess ProjectTestListResponseItemsThresholdsOperator = "<" ProjectTestListResponseItemsThresholdsOperatorLessOrEquals ProjectTestListResponseItemsThresholdsOperator = "<=" ProjectTestListResponseItemsThresholdsOperatorNotEquals ProjectTestListResponseItemsThresholdsOperator = "!=" )
func (ProjectTestListResponseItemsThresholdsOperator) IsKnown ¶
func (r ProjectTestListResponseItemsThresholdsOperator) IsKnown() bool
type ProjectTestListResponseItemsThresholdsThresholdMode ¶
type ProjectTestListResponseItemsThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( ProjectTestListResponseItemsThresholdsThresholdModeAutomatic ProjectTestListResponseItemsThresholdsThresholdMode = "automatic" ProjectTestListResponseItemsThresholdsThresholdModeManual ProjectTestListResponseItemsThresholdsThresholdMode = "manual" )
func (ProjectTestListResponseItemsThresholdsThresholdMode) IsKnown ¶
func (r ProjectTestListResponseItemsThresholdsThresholdMode) IsKnown() bool
type ProjectTestListResponseItemsThresholdsValueArray ¶
type ProjectTestListResponseItemsThresholdsValueArray []string
func (ProjectTestListResponseItemsThresholdsValueArray) ImplementsProjectTestListResponseItemsThresholdsValueUnion ¶
func (r ProjectTestListResponseItemsThresholdsValueArray) ImplementsProjectTestListResponseItemsThresholdsValueUnion()
type ProjectTestListResponseItemsThresholdsValueUnion ¶
type ProjectTestListResponseItemsThresholdsValueUnion interface {
ImplementsProjectTestListResponseItemsThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or ProjectTestListResponseItemsThresholdsValueArray.
type ProjectTestListResponseItemsType ¶
type ProjectTestListResponseItemsType string
The test type.
const ( ProjectTestListResponseItemsTypeIntegrity ProjectTestListResponseItemsType = "integrity" ProjectTestListResponseItemsTypeConsistency ProjectTestListResponseItemsType = "consistency" ProjectTestListResponseItemsTypePerformance ProjectTestListResponseItemsType = "performance" )
func (ProjectTestListResponseItemsType) IsKnown ¶
func (r ProjectTestListResponseItemsType) IsKnown() bool
type ProjectTestNewParams ¶
type ProjectTestNewParams struct {
// The test description.
Description param.Field[interface{}] `json:"description" api:"required"`
// The test name.
Name param.Field[string] `json:"name" api:"required"`
// The test subtype.
Subtype param.Field[ProjectTestNewParamsSubtype] `json:"subtype" api:"required"`
Thresholds param.Field[[]ProjectTestNewParamsThreshold] `json:"thresholds" api:"required"`
// The test type.
Type param.Field[ProjectTestNewParamsType] `json:"type" api:"required"`
// Whether the test is archived.
Archived param.Field[bool] `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines param.Field[bool] `json:"defaultToAllPipelines"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow param.Field[float64] `json:"delayWindow"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow param.Field[float64] `json:"evaluationWindow"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines param.Field[[]string] `json:"excludePipelines" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData param.Field[bool] `json:"includeHistoricalData"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines param.Field[[]string] `json:"includePipelines" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel param.Field[bool] `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData param.Field[bool] `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset param.Field[bool] `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset param.Field[bool] `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset param.Field[bool] `json:"usesValidationDataset"`
}
func (ProjectTestNewParams) MarshalJSON ¶
func (r ProjectTestNewParams) MarshalJSON() (data []byte, err error)
type ProjectTestNewParamsSubtype ¶
type ProjectTestNewParamsSubtype string
The test subtype.
const ( ProjectTestNewParamsSubtypeAnomalousColumnCount ProjectTestNewParamsSubtype = "anomalousColumnCount" ProjectTestNewParamsSubtypeCharacterLength ProjectTestNewParamsSubtype = "characterLength" ProjectTestNewParamsSubtypeClassImbalanceRatio ProjectTestNewParamsSubtype = "classImbalanceRatio" ProjectTestNewParamsSubtypeExpectColumnAToBeInColumnB ProjectTestNewParamsSubtype = "expectColumnAToBeInColumnB" ProjectTestNewParamsSubtypeColumnAverage ProjectTestNewParamsSubtype = "columnAverage" ProjectTestNewParamsSubtypeColumnDrift ProjectTestNewParamsSubtype = "columnDrift" ProjectTestNewParamsSubtypeColumnStatistic ProjectTestNewParamsSubtype = "columnStatistic" ProjectTestNewParamsSubtypeColumnValuesMatch ProjectTestNewParamsSubtype = "columnValuesMatch" ProjectTestNewParamsSubtypeConflictingLabelRowCount ProjectTestNewParamsSubtype = "conflictingLabelRowCount" ProjectTestNewParamsSubtypeContainsPii ProjectTestNewParamsSubtype = "containsPii" ProjectTestNewParamsSubtypeContainsValidURL ProjectTestNewParamsSubtype = "containsValidUrl" ProjectTestNewParamsSubtypeCustomMetricThreshold ProjectTestNewParamsSubtype = "customMetricThreshold" ProjectTestNewParamsSubtypeDuplicateRowCount ProjectTestNewParamsSubtype = "duplicateRowCount" ProjectTestNewParamsSubtypeEmptyFeature ProjectTestNewParamsSubtype = "emptyFeature" ProjectTestNewParamsSubtypeEmptyFeatureCount ProjectTestNewParamsSubtype = "emptyFeatureCount" ProjectTestNewParamsSubtypeDriftedFeatureCount ProjectTestNewParamsSubtype = "driftedFeatureCount" ProjectTestNewParamsSubtypeFeatureMissingValues ProjectTestNewParamsSubtype = "featureMissingValues" ProjectTestNewParamsSubtypeFeatureValueValidation ProjectTestNewParamsSubtype = "featureValueValidation" ProjectTestNewParamsSubtypeGreatExpectations ProjectTestNewParamsSubtype = "greatExpectations" ProjectTestNewParamsSubtypeGroupByColumnStatsCheck ProjectTestNewParamsSubtype = "groupByColumnStatsCheck" ProjectTestNewParamsSubtypeIllFormedRowCount ProjectTestNewParamsSubtype = "illFormedRowCount" ProjectTestNewParamsSubtypeIsCode ProjectTestNewParamsSubtype = "isCode" ProjectTestNewParamsSubtypeIsJson ProjectTestNewParamsSubtype = "isJson" ProjectTestNewParamsSubtypeLlmRubricThresholdV2 ProjectTestNewParamsSubtype = "llmRubricThresholdV2" ProjectTestNewParamsSubtypeLabelDrift ProjectTestNewParamsSubtype = "labelDrift" ProjectTestNewParamsSubtypeMetricThreshold ProjectTestNewParamsSubtype = "metricThreshold" ProjectTestNewParamsSubtypeNewCategoryCount ProjectTestNewParamsSubtype = "newCategoryCount" ProjectTestNewParamsSubtypeNewLabelCount ProjectTestNewParamsSubtype = "newLabelCount" ProjectTestNewParamsSubtypeNullRowCount ProjectTestNewParamsSubtype = "nullRowCount" ProjectTestNewParamsSubtypeRowCount ProjectTestNewParamsSubtype = "rowCount" ProjectTestNewParamsSubtypePpScoreValueValidation ProjectTestNewParamsSubtype = "ppScoreValueValidation" ProjectTestNewParamsSubtypeQuasiConstantFeature ProjectTestNewParamsSubtype = "quasiConstantFeature" ProjectTestNewParamsSubtypeQuasiConstantFeatureCount ProjectTestNewParamsSubtype = "quasiConstantFeatureCount" ProjectTestNewParamsSubtypeSqlQuery ProjectTestNewParamsSubtype = "sqlQuery" ProjectTestNewParamsSubtypeDtypeValidation ProjectTestNewParamsSubtype = "dtypeValidation" ProjectTestNewParamsSubtypeSentenceLength ProjectTestNewParamsSubtype = "sentenceLength" ProjectTestNewParamsSubtypeSizeRatio ProjectTestNewParamsSubtype = "sizeRatio" ProjectTestNewParamsSubtypeSpecialCharactersRatio ProjectTestNewParamsSubtype = "specialCharactersRatio" ProjectTestNewParamsSubtypeStringValidation ProjectTestNewParamsSubtype = "stringValidation" ProjectTestNewParamsSubtypeTrainValLeakageRowCount ProjectTestNewParamsSubtype = "trainValLeakageRowCount" )
func (ProjectTestNewParamsSubtype) IsKnown ¶
func (r ProjectTestNewParamsSubtype) IsKnown() bool
type ProjectTestNewParamsThreshold ¶
type ProjectTestNewParamsThreshold struct {
// The insight name to be evaluated.
InsightName param.Field[ProjectTestNewParamsThresholdsInsightName] `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters param.Field[[]ProjectTestNewParamsThresholdsInsightParameter] `json:"insightParameters"`
// The measurement to be evaluated.
Measurement param.Field[string] `json:"measurement"`
// The operator to be used for the evaluation.
Operator param.Field[ProjectTestNewParamsThresholdsOperator] `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode param.Field[ProjectTestNewParamsThresholdsThresholdMode] `json:"thresholdMode"`
// The value to be compared.
Value param.Field[ProjectTestNewParamsThresholdsValueUnion] `json:"value"`
}
func (ProjectTestNewParamsThreshold) MarshalJSON ¶
func (r ProjectTestNewParamsThreshold) MarshalJSON() (data []byte, err error)
type ProjectTestNewParamsThresholdsInsightName ¶
type ProjectTestNewParamsThresholdsInsightName string
The insight name to be evaluated.
const ( ProjectTestNewParamsThresholdsInsightNameCharacterLength ProjectTestNewParamsThresholdsInsightName = "characterLength" ProjectTestNewParamsThresholdsInsightNameClassImbalance ProjectTestNewParamsThresholdsInsightName = "classImbalance" ProjectTestNewParamsThresholdsInsightNameExpectColumnAToBeInColumnB ProjectTestNewParamsThresholdsInsightName = "expectColumnAToBeInColumnB" ProjectTestNewParamsThresholdsInsightNameColumnAverage ProjectTestNewParamsThresholdsInsightName = "columnAverage" ProjectTestNewParamsThresholdsInsightNameColumnDrift ProjectTestNewParamsThresholdsInsightName = "columnDrift" ProjectTestNewParamsThresholdsInsightNameColumnValuesMatch ProjectTestNewParamsThresholdsInsightName = "columnValuesMatch" ProjectTestNewParamsThresholdsInsightNameConfidenceDistribution ProjectTestNewParamsThresholdsInsightName = "confidenceDistribution" ProjectTestNewParamsThresholdsInsightNameConflictingLabelRowCount ProjectTestNewParamsThresholdsInsightName = "conflictingLabelRowCount" ProjectTestNewParamsThresholdsInsightNameContainsPii ProjectTestNewParamsThresholdsInsightName = "containsPii" ProjectTestNewParamsThresholdsInsightNameContainsValidURL ProjectTestNewParamsThresholdsInsightName = "containsValidUrl" ProjectTestNewParamsThresholdsInsightNameCustomMetric ProjectTestNewParamsThresholdsInsightName = "customMetric" ProjectTestNewParamsThresholdsInsightNameDuplicateRowCount ProjectTestNewParamsThresholdsInsightName = "duplicateRowCount" ProjectTestNewParamsThresholdsInsightNameEmptyFeatures ProjectTestNewParamsThresholdsInsightName = "emptyFeatures" ProjectTestNewParamsThresholdsInsightNameFeatureDrift ProjectTestNewParamsThresholdsInsightName = "featureDrift" ProjectTestNewParamsThresholdsInsightNameFeatureProfile ProjectTestNewParamsThresholdsInsightName = "featureProfile" ProjectTestNewParamsThresholdsInsightNameGreatExpectations ProjectTestNewParamsThresholdsInsightName = "greatExpectations" ProjectTestNewParamsThresholdsInsightNameGroupByColumnStatsCheck ProjectTestNewParamsThresholdsInsightName = "groupByColumnStatsCheck" ProjectTestNewParamsThresholdsInsightNameIllFormedRowCount ProjectTestNewParamsThresholdsInsightName = "illFormedRowCount" ProjectTestNewParamsThresholdsInsightNameIsCode ProjectTestNewParamsThresholdsInsightName = "isCode" ProjectTestNewParamsThresholdsInsightNameIsJson ProjectTestNewParamsThresholdsInsightName = "isJson" ProjectTestNewParamsThresholdsInsightNameLlmRubricV2 ProjectTestNewParamsThresholdsInsightName = "llmRubricV2" ProjectTestNewParamsThresholdsInsightNameLabelDrift ProjectTestNewParamsThresholdsInsightName = "labelDrift" ProjectTestNewParamsThresholdsInsightNameMetrics ProjectTestNewParamsThresholdsInsightName = "metrics" ProjectTestNewParamsThresholdsInsightNameNewCategories ProjectTestNewParamsThresholdsInsightName = "newCategories" ProjectTestNewParamsThresholdsInsightNameNewLabels ProjectTestNewParamsThresholdsInsightName = "newLabels" ProjectTestNewParamsThresholdsInsightNameNullRowCount ProjectTestNewParamsThresholdsInsightName = "nullRowCount" ProjectTestNewParamsThresholdsInsightNamePpScore ProjectTestNewParamsThresholdsInsightName = "ppScore" ProjectTestNewParamsThresholdsInsightNameQuasiConstantFeatures ProjectTestNewParamsThresholdsInsightName = "quasiConstantFeatures" ProjectTestNewParamsThresholdsInsightNameSentenceLength ProjectTestNewParamsThresholdsInsightName = "sentenceLength" ProjectTestNewParamsThresholdsInsightNameSizeRatio ProjectTestNewParamsThresholdsInsightName = "sizeRatio" ProjectTestNewParamsThresholdsInsightNameSpecialCharacters ProjectTestNewParamsThresholdsInsightName = "specialCharacters" ProjectTestNewParamsThresholdsInsightNameStringValidation ProjectTestNewParamsThresholdsInsightName = "stringValidation" ProjectTestNewParamsThresholdsInsightNameTrainValLeakageRowCount ProjectTestNewParamsThresholdsInsightName = "trainValLeakageRowCount" )
func (ProjectTestNewParamsThresholdsInsightName) IsKnown ¶
func (r ProjectTestNewParamsThresholdsInsightName) IsKnown() bool
type ProjectTestNewParamsThresholdsInsightParameter ¶
type ProjectTestNewParamsThresholdsInsightParameter struct {
// The name of the insight filter.
Name param.Field[string] `json:"name" api:"required"`
Value param.Field[interface{}] `json:"value" api:"required"`
}
func (ProjectTestNewParamsThresholdsInsightParameter) MarshalJSON ¶
func (r ProjectTestNewParamsThresholdsInsightParameter) MarshalJSON() (data []byte, err error)
type ProjectTestNewParamsThresholdsOperator ¶
type ProjectTestNewParamsThresholdsOperator string
The operator to be used for the evaluation.
const ( ProjectTestNewParamsThresholdsOperatorIs ProjectTestNewParamsThresholdsOperator = "is" ProjectTestNewParamsThresholdsOperatorGreater ProjectTestNewParamsThresholdsOperator = ">" ProjectTestNewParamsThresholdsOperatorGreaterOrEquals ProjectTestNewParamsThresholdsOperator = ">=" ProjectTestNewParamsThresholdsOperatorLess ProjectTestNewParamsThresholdsOperator = "<" ProjectTestNewParamsThresholdsOperatorLessOrEquals ProjectTestNewParamsThresholdsOperator = "<=" ProjectTestNewParamsThresholdsOperatorNotEquals ProjectTestNewParamsThresholdsOperator = "!=" )
func (ProjectTestNewParamsThresholdsOperator) IsKnown ¶
func (r ProjectTestNewParamsThresholdsOperator) IsKnown() bool
type ProjectTestNewParamsThresholdsThresholdMode ¶
type ProjectTestNewParamsThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( ProjectTestNewParamsThresholdsThresholdModeAutomatic ProjectTestNewParamsThresholdsThresholdMode = "automatic" ProjectTestNewParamsThresholdsThresholdModeManual ProjectTestNewParamsThresholdsThresholdMode = "manual" )
func (ProjectTestNewParamsThresholdsThresholdMode) IsKnown ¶
func (r ProjectTestNewParamsThresholdsThresholdMode) IsKnown() bool
type ProjectTestNewParamsThresholdsValueArray ¶
type ProjectTestNewParamsThresholdsValueArray []string
func (ProjectTestNewParamsThresholdsValueArray) ImplementsProjectTestNewParamsThresholdsValueUnion ¶
func (r ProjectTestNewParamsThresholdsValueArray) ImplementsProjectTestNewParamsThresholdsValueUnion()
type ProjectTestNewParamsThresholdsValueUnion ¶
type ProjectTestNewParamsThresholdsValueUnion interface {
ImplementsProjectTestNewParamsThresholdsValueUnion()
}
The value to be compared.
Satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString, ProjectTestNewParamsThresholdsValueArray.
type ProjectTestNewParamsType ¶
type ProjectTestNewParamsType string
The test type.
const ( ProjectTestNewParamsTypeIntegrity ProjectTestNewParamsType = "integrity" ProjectTestNewParamsTypeConsistency ProjectTestNewParamsType = "consistency" ProjectTestNewParamsTypePerformance ProjectTestNewParamsType = "performance" )
func (ProjectTestNewParamsType) IsKnown ¶
func (r ProjectTestNewParamsType) IsKnown() bool
type ProjectTestNewResponse ¶
type ProjectTestNewResponse struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype ProjectTestNewResponseSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []ProjectTestNewResponseThreshold `json:"thresholds" api:"required"`
// The test type.
Type ProjectTestNewResponseType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines bool `json:"defaultToAllPipelines" api:"nullable"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines []string `json:"excludePipelines" api:"nullable" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData bool `json:"includeHistoricalData" api:"nullable"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines []string `json:"includePipelines" api:"nullable" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON projectTestNewResponseJSON `json:"-"`
}
func (*ProjectTestNewResponse) UnmarshalJSON ¶
func (r *ProjectTestNewResponse) UnmarshalJSON(data []byte) (err error)
type ProjectTestNewResponseSubtype ¶
type ProjectTestNewResponseSubtype string
The test subtype.
const ( ProjectTestNewResponseSubtypeAnomalousColumnCount ProjectTestNewResponseSubtype = "anomalousColumnCount" ProjectTestNewResponseSubtypeCharacterLength ProjectTestNewResponseSubtype = "characterLength" ProjectTestNewResponseSubtypeClassImbalanceRatio ProjectTestNewResponseSubtype = "classImbalanceRatio" ProjectTestNewResponseSubtypeExpectColumnAToBeInColumnB ProjectTestNewResponseSubtype = "expectColumnAToBeInColumnB" ProjectTestNewResponseSubtypeColumnAverage ProjectTestNewResponseSubtype = "columnAverage" ProjectTestNewResponseSubtypeColumnDrift ProjectTestNewResponseSubtype = "columnDrift" ProjectTestNewResponseSubtypeColumnStatistic ProjectTestNewResponseSubtype = "columnStatistic" ProjectTestNewResponseSubtypeColumnValuesMatch ProjectTestNewResponseSubtype = "columnValuesMatch" ProjectTestNewResponseSubtypeConflictingLabelRowCount ProjectTestNewResponseSubtype = "conflictingLabelRowCount" ProjectTestNewResponseSubtypeContainsPii ProjectTestNewResponseSubtype = "containsPii" ProjectTestNewResponseSubtypeContainsValidURL ProjectTestNewResponseSubtype = "containsValidUrl" ProjectTestNewResponseSubtypeCustomMetricThreshold ProjectTestNewResponseSubtype = "customMetricThreshold" ProjectTestNewResponseSubtypeDuplicateRowCount ProjectTestNewResponseSubtype = "duplicateRowCount" ProjectTestNewResponseSubtypeEmptyFeature ProjectTestNewResponseSubtype = "emptyFeature" ProjectTestNewResponseSubtypeEmptyFeatureCount ProjectTestNewResponseSubtype = "emptyFeatureCount" ProjectTestNewResponseSubtypeDriftedFeatureCount ProjectTestNewResponseSubtype = "driftedFeatureCount" ProjectTestNewResponseSubtypeFeatureMissingValues ProjectTestNewResponseSubtype = "featureMissingValues" ProjectTestNewResponseSubtypeFeatureValueValidation ProjectTestNewResponseSubtype = "featureValueValidation" ProjectTestNewResponseSubtypeGreatExpectations ProjectTestNewResponseSubtype = "greatExpectations" ProjectTestNewResponseSubtypeGroupByColumnStatsCheck ProjectTestNewResponseSubtype = "groupByColumnStatsCheck" ProjectTestNewResponseSubtypeIllFormedRowCount ProjectTestNewResponseSubtype = "illFormedRowCount" ProjectTestNewResponseSubtypeIsCode ProjectTestNewResponseSubtype = "isCode" ProjectTestNewResponseSubtypeIsJson ProjectTestNewResponseSubtype = "isJson" ProjectTestNewResponseSubtypeLlmRubricThresholdV2 ProjectTestNewResponseSubtype = "llmRubricThresholdV2" ProjectTestNewResponseSubtypeLabelDrift ProjectTestNewResponseSubtype = "labelDrift" ProjectTestNewResponseSubtypeMetricThreshold ProjectTestNewResponseSubtype = "metricThreshold" ProjectTestNewResponseSubtypeNewCategoryCount ProjectTestNewResponseSubtype = "newCategoryCount" ProjectTestNewResponseSubtypeNewLabelCount ProjectTestNewResponseSubtype = "newLabelCount" ProjectTestNewResponseSubtypeNullRowCount ProjectTestNewResponseSubtype = "nullRowCount" ProjectTestNewResponseSubtypeRowCount ProjectTestNewResponseSubtype = "rowCount" ProjectTestNewResponseSubtypePpScoreValueValidation ProjectTestNewResponseSubtype = "ppScoreValueValidation" ProjectTestNewResponseSubtypeQuasiConstantFeature ProjectTestNewResponseSubtype = "quasiConstantFeature" ProjectTestNewResponseSubtypeQuasiConstantFeatureCount ProjectTestNewResponseSubtype = "quasiConstantFeatureCount" ProjectTestNewResponseSubtypeSqlQuery ProjectTestNewResponseSubtype = "sqlQuery" ProjectTestNewResponseSubtypeDtypeValidation ProjectTestNewResponseSubtype = "dtypeValidation" ProjectTestNewResponseSubtypeSentenceLength ProjectTestNewResponseSubtype = "sentenceLength" ProjectTestNewResponseSubtypeSizeRatio ProjectTestNewResponseSubtype = "sizeRatio" ProjectTestNewResponseSubtypeSpecialCharactersRatio ProjectTestNewResponseSubtype = "specialCharactersRatio" ProjectTestNewResponseSubtypeStringValidation ProjectTestNewResponseSubtype = "stringValidation" ProjectTestNewResponseSubtypeTrainValLeakageRowCount ProjectTestNewResponseSubtype = "trainValLeakageRowCount" )
func (ProjectTestNewResponseSubtype) IsKnown ¶
func (r ProjectTestNewResponseSubtype) IsKnown() bool
type ProjectTestNewResponseThreshold ¶
type ProjectTestNewResponseThreshold struct {
// The insight name to be evaluated.
InsightName ProjectTestNewResponseThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []ProjectTestNewResponseThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator ProjectTestNewResponseThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode ProjectTestNewResponseThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value ProjectTestNewResponseThresholdsValueUnion `json:"value"`
JSON projectTestNewResponseThresholdJSON `json:"-"`
}
func (*ProjectTestNewResponseThreshold) UnmarshalJSON ¶
func (r *ProjectTestNewResponseThreshold) UnmarshalJSON(data []byte) (err error)
type ProjectTestNewResponseThresholdsInsightName ¶
type ProjectTestNewResponseThresholdsInsightName string
The insight name to be evaluated.
const ( ProjectTestNewResponseThresholdsInsightNameCharacterLength ProjectTestNewResponseThresholdsInsightName = "characterLength" ProjectTestNewResponseThresholdsInsightNameClassImbalance ProjectTestNewResponseThresholdsInsightName = "classImbalance" ProjectTestNewResponseThresholdsInsightNameExpectColumnAToBeInColumnB ProjectTestNewResponseThresholdsInsightName = "expectColumnAToBeInColumnB" ProjectTestNewResponseThresholdsInsightNameColumnAverage ProjectTestNewResponseThresholdsInsightName = "columnAverage" ProjectTestNewResponseThresholdsInsightNameColumnDrift ProjectTestNewResponseThresholdsInsightName = "columnDrift" ProjectTestNewResponseThresholdsInsightNameColumnValuesMatch ProjectTestNewResponseThresholdsInsightName = "columnValuesMatch" ProjectTestNewResponseThresholdsInsightNameConfidenceDistribution ProjectTestNewResponseThresholdsInsightName = "confidenceDistribution" ProjectTestNewResponseThresholdsInsightNameConflictingLabelRowCount ProjectTestNewResponseThresholdsInsightName = "conflictingLabelRowCount" ProjectTestNewResponseThresholdsInsightNameContainsPii ProjectTestNewResponseThresholdsInsightName = "containsPii" ProjectTestNewResponseThresholdsInsightNameContainsValidURL ProjectTestNewResponseThresholdsInsightName = "containsValidUrl" ProjectTestNewResponseThresholdsInsightNameCustomMetric ProjectTestNewResponseThresholdsInsightName = "customMetric" ProjectTestNewResponseThresholdsInsightNameDuplicateRowCount ProjectTestNewResponseThresholdsInsightName = "duplicateRowCount" ProjectTestNewResponseThresholdsInsightNameEmptyFeatures ProjectTestNewResponseThresholdsInsightName = "emptyFeatures" ProjectTestNewResponseThresholdsInsightNameFeatureDrift ProjectTestNewResponseThresholdsInsightName = "featureDrift" ProjectTestNewResponseThresholdsInsightNameFeatureProfile ProjectTestNewResponseThresholdsInsightName = "featureProfile" ProjectTestNewResponseThresholdsInsightNameGreatExpectations ProjectTestNewResponseThresholdsInsightName = "greatExpectations" ProjectTestNewResponseThresholdsInsightNameGroupByColumnStatsCheck ProjectTestNewResponseThresholdsInsightName = "groupByColumnStatsCheck" ProjectTestNewResponseThresholdsInsightNameIllFormedRowCount ProjectTestNewResponseThresholdsInsightName = "illFormedRowCount" ProjectTestNewResponseThresholdsInsightNameIsCode ProjectTestNewResponseThresholdsInsightName = "isCode" ProjectTestNewResponseThresholdsInsightNameIsJson ProjectTestNewResponseThresholdsInsightName = "isJson" ProjectTestNewResponseThresholdsInsightNameLlmRubricV2 ProjectTestNewResponseThresholdsInsightName = "llmRubricV2" ProjectTestNewResponseThresholdsInsightNameLabelDrift ProjectTestNewResponseThresholdsInsightName = "labelDrift" ProjectTestNewResponseThresholdsInsightNameMetrics ProjectTestNewResponseThresholdsInsightName = "metrics" ProjectTestNewResponseThresholdsInsightNameNewCategories ProjectTestNewResponseThresholdsInsightName = "newCategories" ProjectTestNewResponseThresholdsInsightNameNewLabels ProjectTestNewResponseThresholdsInsightName = "newLabels" ProjectTestNewResponseThresholdsInsightNameNullRowCount ProjectTestNewResponseThresholdsInsightName = "nullRowCount" ProjectTestNewResponseThresholdsInsightNamePpScore ProjectTestNewResponseThresholdsInsightName = "ppScore" ProjectTestNewResponseThresholdsInsightNameQuasiConstantFeatures ProjectTestNewResponseThresholdsInsightName = "quasiConstantFeatures" ProjectTestNewResponseThresholdsInsightNameSentenceLength ProjectTestNewResponseThresholdsInsightName = "sentenceLength" ProjectTestNewResponseThresholdsInsightNameSizeRatio ProjectTestNewResponseThresholdsInsightName = "sizeRatio" ProjectTestNewResponseThresholdsInsightNameSpecialCharacters ProjectTestNewResponseThresholdsInsightName = "specialCharacters" ProjectTestNewResponseThresholdsInsightNameStringValidation ProjectTestNewResponseThresholdsInsightName = "stringValidation" ProjectTestNewResponseThresholdsInsightNameTrainValLeakageRowCount ProjectTestNewResponseThresholdsInsightName = "trainValLeakageRowCount" )
func (ProjectTestNewResponseThresholdsInsightName) IsKnown ¶
func (r ProjectTestNewResponseThresholdsInsightName) IsKnown() bool
type ProjectTestNewResponseThresholdsInsightParameter ¶
type ProjectTestNewResponseThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON projectTestNewResponseThresholdsInsightParameterJSON `json:"-"`
}
func (*ProjectTestNewResponseThresholdsInsightParameter) UnmarshalJSON ¶
func (r *ProjectTestNewResponseThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type ProjectTestNewResponseThresholdsOperator ¶
type ProjectTestNewResponseThresholdsOperator string
The operator to be used for the evaluation.
const ( ProjectTestNewResponseThresholdsOperatorIs ProjectTestNewResponseThresholdsOperator = "is" ProjectTestNewResponseThresholdsOperatorGreater ProjectTestNewResponseThresholdsOperator = ">" ProjectTestNewResponseThresholdsOperatorGreaterOrEquals ProjectTestNewResponseThresholdsOperator = ">=" ProjectTestNewResponseThresholdsOperatorLess ProjectTestNewResponseThresholdsOperator = "<" ProjectTestNewResponseThresholdsOperatorLessOrEquals ProjectTestNewResponseThresholdsOperator = "<=" ProjectTestNewResponseThresholdsOperatorNotEquals ProjectTestNewResponseThresholdsOperator = "!=" )
func (ProjectTestNewResponseThresholdsOperator) IsKnown ¶
func (r ProjectTestNewResponseThresholdsOperator) IsKnown() bool
type ProjectTestNewResponseThresholdsThresholdMode ¶
type ProjectTestNewResponseThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( ProjectTestNewResponseThresholdsThresholdModeAutomatic ProjectTestNewResponseThresholdsThresholdMode = "automatic" ProjectTestNewResponseThresholdsThresholdModeManual ProjectTestNewResponseThresholdsThresholdMode = "manual" )
func (ProjectTestNewResponseThresholdsThresholdMode) IsKnown ¶
func (r ProjectTestNewResponseThresholdsThresholdMode) IsKnown() bool
type ProjectTestNewResponseThresholdsValueArray ¶
type ProjectTestNewResponseThresholdsValueArray []string
func (ProjectTestNewResponseThresholdsValueArray) ImplementsProjectTestNewResponseThresholdsValueUnion ¶
func (r ProjectTestNewResponseThresholdsValueArray) ImplementsProjectTestNewResponseThresholdsValueUnion()
type ProjectTestNewResponseThresholdsValueUnion ¶
type ProjectTestNewResponseThresholdsValueUnion interface {
ImplementsProjectTestNewResponseThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or ProjectTestNewResponseThresholdsValueArray.
type ProjectTestNewResponseType ¶
type ProjectTestNewResponseType string
The test type.
const ( ProjectTestNewResponseTypeIntegrity ProjectTestNewResponseType = "integrity" ProjectTestNewResponseTypeConsistency ProjectTestNewResponseType = "consistency" ProjectTestNewResponseTypePerformance ProjectTestNewResponseType = "performance" )
func (ProjectTestNewResponseType) IsKnown ¶
func (r ProjectTestNewResponseType) IsKnown() bool
type ProjectTestService ¶
type ProjectTestService struct {
Options []option.RequestOption
}
ProjectTestService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProjectTestService method instead.
func NewProjectTestService ¶
func NewProjectTestService(opts ...option.RequestOption) (r *ProjectTestService)
NewProjectTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ProjectTestService) List ¶
func (r *ProjectTestService) List(ctx context.Context, projectID string, query ProjectTestListParams, opts ...option.RequestOption) (res *ProjectTestListResponse, err error)
List tests under a project.
func (*ProjectTestService) New ¶
func (r *ProjectTestService) New(ctx context.Context, projectID string, body ProjectTestNewParams, opts ...option.RequestOption) (res *ProjectTestNewResponse, err error)
Create a test.
func (*ProjectTestService) Update ¶
func (r *ProjectTestService) Update(ctx context.Context, projectID string, body ProjectTestUpdateParams, opts ...option.RequestOption) (res *ProjectTestUpdateResponse, err error)
Update tests.
type ProjectTestUpdateParams ¶
type ProjectTestUpdateParams struct {
Payloads param.Field[[]ProjectTestUpdateParamsPayload] `json:"payloads" api:"required"`
}
func (ProjectTestUpdateParams) MarshalJSON ¶
func (r ProjectTestUpdateParams) MarshalJSON() (data []byte, err error)
type ProjectTestUpdateParamsPayload ¶
type ProjectTestUpdateParamsPayload struct {
ID param.Field[string] `json:"id" api:"required" format:"uuid"`
// Whether the test is archived.
Archived param.Field[bool] `json:"archived"`
// The test description.
Description param.Field[interface{}] `json:"description"`
// The test name.
Name param.Field[string] `json:"name"`
Suggested param.Field[ProjectTestUpdateParamsPayloadsSuggested] `json:"suggested"`
Thresholds param.Field[[]ProjectTestUpdateParamsPayloadsThreshold] `json:"thresholds"`
}
func (ProjectTestUpdateParamsPayload) MarshalJSON ¶
func (r ProjectTestUpdateParamsPayload) MarshalJSON() (data []byte, err error)
type ProjectTestUpdateParamsPayloadsSuggested ¶
type ProjectTestUpdateParamsPayloadsSuggested bool
const (
ProjectTestUpdateParamsPayloadsSuggestedFalse ProjectTestUpdateParamsPayloadsSuggested = false
)
func (ProjectTestUpdateParamsPayloadsSuggested) IsKnown ¶
func (r ProjectTestUpdateParamsPayloadsSuggested) IsKnown() bool
type ProjectTestUpdateParamsPayloadsThreshold ¶
type ProjectTestUpdateParamsPayloadsThreshold struct {
// The insight name to be evaluated.
InsightName param.Field[ProjectTestUpdateParamsPayloadsThresholdsInsightName] `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters param.Field[[]ProjectTestUpdateParamsPayloadsThresholdsInsightParameter] `json:"insightParameters"`
// The measurement to be evaluated.
Measurement param.Field[string] `json:"measurement"`
// The operator to be used for the evaluation.
Operator param.Field[ProjectTestUpdateParamsPayloadsThresholdsOperator] `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode param.Field[ProjectTestUpdateParamsPayloadsThresholdsThresholdMode] `json:"thresholdMode"`
// The value to be compared.
Value param.Field[ProjectTestUpdateParamsPayloadsThresholdsValueUnion] `json:"value"`
}
func (ProjectTestUpdateParamsPayloadsThreshold) MarshalJSON ¶
func (r ProjectTestUpdateParamsPayloadsThreshold) MarshalJSON() (data []byte, err error)
type ProjectTestUpdateParamsPayloadsThresholdsInsightName ¶
type ProjectTestUpdateParamsPayloadsThresholdsInsightName string
The insight name to be evaluated.
const ( ProjectTestUpdateParamsPayloadsThresholdsInsightNameCharacterLength ProjectTestUpdateParamsPayloadsThresholdsInsightName = "characterLength" ProjectTestUpdateParamsPayloadsThresholdsInsightNameClassImbalance ProjectTestUpdateParamsPayloadsThresholdsInsightName = "classImbalance" ProjectTestUpdateParamsPayloadsThresholdsInsightNameExpectColumnAToBeInColumnB ProjectTestUpdateParamsPayloadsThresholdsInsightName = "expectColumnAToBeInColumnB" ProjectTestUpdateParamsPayloadsThresholdsInsightNameColumnAverage ProjectTestUpdateParamsPayloadsThresholdsInsightName = "columnAverage" ProjectTestUpdateParamsPayloadsThresholdsInsightNameColumnDrift ProjectTestUpdateParamsPayloadsThresholdsInsightName = "columnDrift" ProjectTestUpdateParamsPayloadsThresholdsInsightNameColumnValuesMatch ProjectTestUpdateParamsPayloadsThresholdsInsightName = "columnValuesMatch" ProjectTestUpdateParamsPayloadsThresholdsInsightNameConfidenceDistribution ProjectTestUpdateParamsPayloadsThresholdsInsightName = "confidenceDistribution" ProjectTestUpdateParamsPayloadsThresholdsInsightNameConflictingLabelRowCount ProjectTestUpdateParamsPayloadsThresholdsInsightName = "conflictingLabelRowCount" ProjectTestUpdateParamsPayloadsThresholdsInsightNameContainsPii ProjectTestUpdateParamsPayloadsThresholdsInsightName = "containsPii" ProjectTestUpdateParamsPayloadsThresholdsInsightNameContainsValidURL ProjectTestUpdateParamsPayloadsThresholdsInsightName = "containsValidUrl" ProjectTestUpdateParamsPayloadsThresholdsInsightNameCustomMetric ProjectTestUpdateParamsPayloadsThresholdsInsightName = "customMetric" ProjectTestUpdateParamsPayloadsThresholdsInsightNameDuplicateRowCount ProjectTestUpdateParamsPayloadsThresholdsInsightName = "duplicateRowCount" ProjectTestUpdateParamsPayloadsThresholdsInsightNameEmptyFeatures ProjectTestUpdateParamsPayloadsThresholdsInsightName = "emptyFeatures" ProjectTestUpdateParamsPayloadsThresholdsInsightNameFeatureDrift ProjectTestUpdateParamsPayloadsThresholdsInsightName = "featureDrift" ProjectTestUpdateParamsPayloadsThresholdsInsightNameFeatureProfile ProjectTestUpdateParamsPayloadsThresholdsInsightName = "featureProfile" ProjectTestUpdateParamsPayloadsThresholdsInsightNameGreatExpectations ProjectTestUpdateParamsPayloadsThresholdsInsightName = "greatExpectations" ProjectTestUpdateParamsPayloadsThresholdsInsightNameGroupByColumnStatsCheck ProjectTestUpdateParamsPayloadsThresholdsInsightName = "groupByColumnStatsCheck" ProjectTestUpdateParamsPayloadsThresholdsInsightNameIllFormedRowCount ProjectTestUpdateParamsPayloadsThresholdsInsightName = "illFormedRowCount" ProjectTestUpdateParamsPayloadsThresholdsInsightNameIsCode ProjectTestUpdateParamsPayloadsThresholdsInsightName = "isCode" ProjectTestUpdateParamsPayloadsThresholdsInsightNameIsJson ProjectTestUpdateParamsPayloadsThresholdsInsightName = "isJson" ProjectTestUpdateParamsPayloadsThresholdsInsightNameLlmRubricV2 ProjectTestUpdateParamsPayloadsThresholdsInsightName = "llmRubricV2" ProjectTestUpdateParamsPayloadsThresholdsInsightNameLabelDrift ProjectTestUpdateParamsPayloadsThresholdsInsightName = "labelDrift" ProjectTestUpdateParamsPayloadsThresholdsInsightNameMetrics ProjectTestUpdateParamsPayloadsThresholdsInsightName = "metrics" ProjectTestUpdateParamsPayloadsThresholdsInsightNameNewCategories ProjectTestUpdateParamsPayloadsThresholdsInsightName = "newCategories" ProjectTestUpdateParamsPayloadsThresholdsInsightNameNewLabels ProjectTestUpdateParamsPayloadsThresholdsInsightName = "newLabels" ProjectTestUpdateParamsPayloadsThresholdsInsightNameNullRowCount ProjectTestUpdateParamsPayloadsThresholdsInsightName = "nullRowCount" ProjectTestUpdateParamsPayloadsThresholdsInsightNamePpScore ProjectTestUpdateParamsPayloadsThresholdsInsightName = "ppScore" ProjectTestUpdateParamsPayloadsThresholdsInsightNameQuasiConstantFeatures ProjectTestUpdateParamsPayloadsThresholdsInsightName = "quasiConstantFeatures" ProjectTestUpdateParamsPayloadsThresholdsInsightNameSentenceLength ProjectTestUpdateParamsPayloadsThresholdsInsightName = "sentenceLength" ProjectTestUpdateParamsPayloadsThresholdsInsightNameSizeRatio ProjectTestUpdateParamsPayloadsThresholdsInsightName = "sizeRatio" ProjectTestUpdateParamsPayloadsThresholdsInsightNameSpecialCharacters ProjectTestUpdateParamsPayloadsThresholdsInsightName = "specialCharacters" ProjectTestUpdateParamsPayloadsThresholdsInsightNameStringValidation ProjectTestUpdateParamsPayloadsThresholdsInsightName = "stringValidation" ProjectTestUpdateParamsPayloadsThresholdsInsightNameTrainValLeakageRowCount ProjectTestUpdateParamsPayloadsThresholdsInsightName = "trainValLeakageRowCount" )
func (ProjectTestUpdateParamsPayloadsThresholdsInsightName) IsKnown ¶
func (r ProjectTestUpdateParamsPayloadsThresholdsInsightName) IsKnown() bool
type ProjectTestUpdateParamsPayloadsThresholdsInsightParameter ¶
type ProjectTestUpdateParamsPayloadsThresholdsInsightParameter struct {
// The name of the insight filter.
Name param.Field[string] `json:"name" api:"required"`
Value param.Field[interface{}] `json:"value" api:"required"`
}
func (ProjectTestUpdateParamsPayloadsThresholdsInsightParameter) MarshalJSON ¶
func (r ProjectTestUpdateParamsPayloadsThresholdsInsightParameter) MarshalJSON() (data []byte, err error)
type ProjectTestUpdateParamsPayloadsThresholdsOperator ¶
type ProjectTestUpdateParamsPayloadsThresholdsOperator string
The operator to be used for the evaluation.
const ( ProjectTestUpdateParamsPayloadsThresholdsOperatorIs ProjectTestUpdateParamsPayloadsThresholdsOperator = "is" ProjectTestUpdateParamsPayloadsThresholdsOperatorGreater ProjectTestUpdateParamsPayloadsThresholdsOperator = ">" ProjectTestUpdateParamsPayloadsThresholdsOperatorGreaterOrEquals ProjectTestUpdateParamsPayloadsThresholdsOperator = ">=" ProjectTestUpdateParamsPayloadsThresholdsOperatorLess ProjectTestUpdateParamsPayloadsThresholdsOperator = "<" ProjectTestUpdateParamsPayloadsThresholdsOperatorLessOrEquals ProjectTestUpdateParamsPayloadsThresholdsOperator = "<=" ProjectTestUpdateParamsPayloadsThresholdsOperatorNotEquals ProjectTestUpdateParamsPayloadsThresholdsOperator = "!=" )
func (ProjectTestUpdateParamsPayloadsThresholdsOperator) IsKnown ¶
func (r ProjectTestUpdateParamsPayloadsThresholdsOperator) IsKnown() bool
type ProjectTestUpdateParamsPayloadsThresholdsThresholdMode ¶
type ProjectTestUpdateParamsPayloadsThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( ProjectTestUpdateParamsPayloadsThresholdsThresholdModeAutomatic ProjectTestUpdateParamsPayloadsThresholdsThresholdMode = "automatic" ProjectTestUpdateParamsPayloadsThresholdsThresholdModeManual ProjectTestUpdateParamsPayloadsThresholdsThresholdMode = "manual" )
func (ProjectTestUpdateParamsPayloadsThresholdsThresholdMode) IsKnown ¶
func (r ProjectTestUpdateParamsPayloadsThresholdsThresholdMode) IsKnown() bool
type ProjectTestUpdateParamsPayloadsThresholdsValueArray ¶
type ProjectTestUpdateParamsPayloadsThresholdsValueArray []string
func (ProjectTestUpdateParamsPayloadsThresholdsValueArray) ImplementsProjectTestUpdateParamsPayloadsThresholdsValueUnion ¶
func (r ProjectTestUpdateParamsPayloadsThresholdsValueArray) ImplementsProjectTestUpdateParamsPayloadsThresholdsValueUnion()
type ProjectTestUpdateParamsPayloadsThresholdsValueUnion ¶
type ProjectTestUpdateParamsPayloadsThresholdsValueUnion interface {
ImplementsProjectTestUpdateParamsPayloadsThresholdsValueUnion()
}
The value to be compared.
Satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString, ProjectTestUpdateParamsPayloadsThresholdsValueArray.
type ProjectTestUpdateResponse ¶
type ProjectTestUpdateResponse struct {
TaskResultID string `json:"taskResultId"`
TaskResultURL string `json:"taskResultUrl"`
JSON projectTestUpdateResponseJSON `json:"-"`
}
func (*ProjectTestUpdateResponse) UnmarshalJSON ¶
func (r *ProjectTestUpdateResponse) UnmarshalJSON(data []byte) (err error)
type ProjectUpdateParams ¶ added in v0.9.0
type ProjectUpdateParams struct {
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays param.Field[int64] `json:"dataRetentionDays"`
// The project description.
Description param.Field[string] `json:"description"`
// Who developed the model used in this project.
ModelDeveloper param.Field[string] `json:"modelDeveloper"`
// The kinds of model used in this project.
ModelTypes param.Field[[]string] `json:"modelTypes"`
// The project name.
Name param.Field[string] `json:"name"`
// What the system in this project is intended to do.
Purpose param.Field[string] `json:"purpose"`
}
func (ProjectUpdateParams) MarshalJSON ¶ added in v0.9.0
func (r ProjectUpdateParams) MarshalJSON() (data []byte, err error)
type ProjectUpdateResponse ¶ added in v0.9.0
type ProjectUpdateResponse struct {
// The project id.
ID string `json:"id" api:"required" format:"uuid"`
// The project creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The project creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The project last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of tests in the development mode of the project.
DevelopmentGoalCount int64 `json:"developmentGoalCount" api:"required"`
// The total number of tests in the project.
GoalCount int64 `json:"goalCount" api:"required"`
// The number of inference pipelines in the project.
InferencePipelineCount int64 `json:"inferencePipelineCount" api:"required"`
// Links to the project.
Links ProjectUpdateResponseLinks `json:"links" api:"required"`
// The number of tests in the monitoring mode of the project.
MonitoringGoalCount int64 `json:"monitoringGoalCount" api:"required"`
// The project name.
Name string `json:"name" api:"required"`
// The source of the project.
Source ProjectUpdateResponseSource `json:"source" api:"required,nullable"`
// The task type of the project.
TaskType ProjectUpdateResponseTaskType `json:"taskType" api:"required"`
// The number of versions (commits) in the project.
VersionCount int64 `json:"versionCount" api:"required"`
// The workspace id.
WorkspaceID string `json:"workspaceId" api:"required,nullable" format:"uuid"`
// Number of days to retain monitoring data for this project. Null means data is
// retained indefinitely.
DataRetentionDays int64 `json:"dataRetentionDays" api:"nullable"`
// The project description.
Description string `json:"description" api:"nullable"`
GitRepo ProjectUpdateResponseGitRepo `json:"gitRepo" api:"nullable"`
// Who developed the model used in this project.
ModelDeveloper string `json:"modelDeveloper" api:"nullable"`
// The kinds of model used in this project.
ModelTypes []string `json:"modelTypes" api:"nullable"`
// What the system in this project is intended to do.
Purpose string `json:"purpose" api:"nullable"`
JSON projectUpdateResponseJSON `json:"-"`
}
func (*ProjectUpdateResponse) UnmarshalJSON ¶ added in v0.9.0
func (r *ProjectUpdateResponse) UnmarshalJSON(data []byte) (err error)
type ProjectUpdateResponseGitRepo ¶ added in v0.9.0
type ProjectUpdateResponseGitRepo struct {
ID string `json:"id" api:"required" format:"uuid"`
DateConnected time.Time `json:"dateConnected" api:"required" format:"date-time"`
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
GitAccountID string `json:"gitAccountId" api:"required" format:"uuid"`
GitID int64 `json:"gitId" api:"required"`
Name string `json:"name" api:"required"`
Private bool `json:"private" api:"required"`
ProjectID string `json:"projectId" api:"required" format:"uuid"`
Slug string `json:"slug" api:"required"`
URL string `json:"url" api:"required" format:"url"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
JSON projectUpdateResponseGitRepoJSON `json:"-"`
}
func (*ProjectUpdateResponseGitRepo) UnmarshalJSON ¶ added in v0.9.0
func (r *ProjectUpdateResponseGitRepo) UnmarshalJSON(data []byte) (err error)
type ProjectUpdateResponseLinks ¶ added in v0.9.0
type ProjectUpdateResponseLinks struct {
App string `json:"app" api:"required"`
JSON projectUpdateResponseLinksJSON `json:"-"`
}
Links to the project.
func (*ProjectUpdateResponseLinks) UnmarshalJSON ¶ added in v0.9.0
func (r *ProjectUpdateResponseLinks) UnmarshalJSON(data []byte) (err error)
type ProjectUpdateResponseSource ¶ added in v0.9.0
type ProjectUpdateResponseSource string
The source of the project.
const ( ProjectUpdateResponseSourceWeb ProjectUpdateResponseSource = "web" ProjectUpdateResponseSourceAPI ProjectUpdateResponseSource = "api" )
func (ProjectUpdateResponseSource) IsKnown ¶ added in v0.9.0
func (r ProjectUpdateResponseSource) IsKnown() bool
type ProjectUpdateResponseTaskType ¶ added in v0.9.0
type ProjectUpdateResponseTaskType string
The task type of the project.
const ( ProjectUpdateResponseTaskTypeLlmBase ProjectUpdateResponseTaskType = "llm-base" ProjectUpdateResponseTaskTypeTabularClassification ProjectUpdateResponseTaskType = "tabular-classification" ProjectUpdateResponseTaskTypeTabularRegression ProjectUpdateResponseTaskType = "tabular-regression" ProjectUpdateResponseTaskTypeTextClassification ProjectUpdateResponseTaskType = "text-classification" )
func (ProjectUpdateResponseTaskType) IsKnown ¶ added in v0.9.0
func (r ProjectUpdateResponseTaskType) IsKnown() bool
type StoragePresignedURLGetParams ¶ added in v0.10.0
type StoragePresignedURLGetParams struct {
// The object's storage uri.
StorageUri param.Field[string] `query:"storageUri" api:"required"`
}
func (StoragePresignedURLGetParams) URLQuery ¶ added in v0.10.0
func (r StoragePresignedURLGetParams) URLQuery() (v url.Values)
URLQuery serializes StoragePresignedURLGetParams's query parameters as `url.Values`.
type StoragePresignedURLGetResponse ¶ added in v0.10.0
type StoragePresignedURLGetResponse struct {
// The presigned url. Short-lived -- download promptly.
URL string `json:"url" api:"required" format:"url"`
JSON storagePresignedURLGetResponseJSON `json:"-"`
}
func (*StoragePresignedURLGetResponse) UnmarshalJSON ¶ added in v0.10.0
func (r *StoragePresignedURLGetResponse) UnmarshalJSON(data []byte) (err error)
type StoragePresignedURLNewParams ¶
type StoragePresignedURLNewParams struct {
// The name of the object.
ObjectName param.Field[string] `query:"objectName" api:"required"`
}
func (StoragePresignedURLNewParams) URLQuery ¶
func (r StoragePresignedURLNewParams) URLQuery() (v url.Values)
URLQuery serializes StoragePresignedURLNewParams's query parameters as `url.Values`.
type StoragePresignedURLNewResponse ¶
type StoragePresignedURLNewResponse struct {
// The storage URI to send back to the backend after the upload was completed.
StorageUri string `json:"storageUri" api:"required"`
// The presigned url.
URL string `json:"url" api:"required" format:"url"`
// Fields to include in the body of the upload. Only needed by s3
Fields interface{} `json:"fields"`
JSON storagePresignedURLNewResponseJSON `json:"-"`
}
func (*StoragePresignedURLNewResponse) UnmarshalJSON ¶
func (r *StoragePresignedURLNewResponse) UnmarshalJSON(data []byte) (err error)
type StoragePresignedURLService ¶
type StoragePresignedURLService struct {
Options []option.RequestOption
}
StoragePresignedURLService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewStoragePresignedURLService method instead.
func NewStoragePresignedURLService ¶
func NewStoragePresignedURLService(opts ...option.RequestOption) (r *StoragePresignedURLService)
NewStoragePresignedURLService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*StoragePresignedURLService) Get ¶ added in v0.10.0
func (r *StoragePresignedURLService) Get(ctx context.Context, query StoragePresignedURLGetParams, opts ...option.RequestOption) (res *StoragePresignedURLGetResponse, err error)
Exchange a `storageUri` for a short-lived presigned url you can download the object from.
Use it to collect anything the platform stored on your behalf -- for example the archive a framework export leaves behind, whose `storageUri` comes back in the background task's `outputs`.
The workspace is taken from the API key, so there is nothing else to send. The url is only issued for objects your workspace owns, and `404` covers both "no such object" and "not yours".
func (*StoragePresignedURLService) New ¶
func (r *StoragePresignedURLService) New(ctx context.Context, body StoragePresignedURLNewParams, opts ...option.RequestOption) (res *StoragePresignedURLNewResponse, err error)
Retrieve a presigned url to post storage artifacts.
type StorageService ¶
type StorageService struct {
Options []option.RequestOption
PresignedURL *StoragePresignedURLService
}
StorageService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewStorageService method instead.
func NewStorageService ¶
func NewStorageService(opts ...option.RequestOption) (r *StorageService)
NewStorageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type TestEvaluateParams ¶ added in v0.2.0
type TestEvaluateParams struct {
// End timestamp in seconds (Unix epoch)
EndTimestamp param.Field[int64] `json:"endTimestamp" api:"required"`
// Start timestamp in seconds (Unix epoch)
StartTimestamp param.Field[int64] `json:"startTimestamp" api:"required"`
// ID of the inference pipeline to evaluate. If not provided, all inference
// pipelines the test applies to will be evaluated.
InferencePipelineID param.Field[string] `json:"inferencePipelineId" format:"uuid"`
// Whether to overwrite existing test results
OverwriteResults param.Field[bool] `json:"overwriteResults"`
}
func (TestEvaluateParams) MarshalJSON ¶ added in v0.2.0
func (r TestEvaluateParams) MarshalJSON() (data []byte, err error)
type TestEvaluateResponse ¶ added in v0.2.0
type TestEvaluateResponse struct {
Message string `json:"message" api:"required"`
// Number of inference pipelines the test was queued for evaluation on
PipelineCount int64 `json:"pipelineCount" api:"required"`
// The end timestamp you requested (in seconds)
RequestedEndTimestamp int64 `json:"requestedEndTimestamp" api:"required"`
// The start timestamp you requested (in seconds)
RequestedStartTimestamp int64 `json:"requestedStartTimestamp" api:"required"`
// Array of background task information for each pipeline evaluation
Tasks []TestEvaluateResponseTask `json:"tasks" api:"required"`
JSON testEvaluateResponseJSON `json:"-"`
}
func (*TestEvaluateResponse) UnmarshalJSON ¶ added in v0.2.0
func (r *TestEvaluateResponse) UnmarshalJSON(data []byte) (err error)
type TestEvaluateResponseTask ¶ added in v0.2.0
type TestEvaluateResponseTask struct {
// ID of the inference pipeline this task is for
PipelineID string `json:"pipelineId" api:"required" format:"uuid"`
// ID of the background task
TaskResultID string `json:"taskResultId" api:"required" format:"uuid"`
// URL to check the status of this background task
TaskResultURL string `json:"taskResultUrl" api:"required"`
JSON testEvaluateResponseTaskJSON `json:"-"`
}
func (*TestEvaluateResponseTask) UnmarshalJSON ¶ added in v0.2.0
func (r *TestEvaluateResponseTask) UnmarshalJSON(data []byte) (err error)
type TestListResultsParams ¶ added in v0.4.0
type TestListResultsParams struct {
// Filter for results that use data starting before the end timestamp.
EndTimestamp param.Field[float64] `query:"endTimestamp" format:"integer"`
// Include the insights linked to each test result
IncludeInsights param.Field[bool] `query:"includeInsights"`
// Retrive test results for a specific inference pipeline.
InferencePipelineID param.Field[string] `query:"inferencePipelineId" format:"uuid"`
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
// Retrive test results for a specific project version.
ProjectVersionID param.Field[string] `query:"projectVersionId" format:"uuid"`
// Filter for results that use data ending after the start timestamp.
StartTimestamp param.Field[float64] `query:"startTimestamp" format:"integer"`
// Filter by status(es).
Status param.Field[[]string] `query:"status"`
}
func (TestListResultsParams) URLQuery ¶ added in v0.4.0
func (r TestListResultsParams) URLQuery() (v url.Values)
URLQuery serializes TestListResultsParams's query parameters as `url.Values`.
type TestListResultsResponse ¶ added in v0.4.0
type TestListResultsResponse struct {
Items []TestListResultsResponseItem `json:"items" api:"required"`
LastUnskippedResult TestListResultsResponseLastUnskippedResult `json:"lastUnskippedResult" api:"nullable"`
JSON testListResultsResponseJSON `json:"-"`
}
func (*TestListResultsResponse) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponse) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItem ¶ added in v0.4.0
type TestListResultsResponseItem struct {
// Project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The data end date.
DateDataEnds time.Time `json:"dateDataEnds" api:"required,nullable" format:"date-time"`
// The data start date.
DateDataStarts time.Time `json:"dateDataStarts" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline id.
InferencePipelineID string `json:"inferencePipelineId" api:"required,nullable" format:"uuid"`
// The project version (commit) id.
ProjectVersionID string `json:"projectVersionId" api:"required,nullable" format:"uuid"`
// The status of the test.
Status TestListResultsResponseItemsStatus `json:"status" api:"required"`
// The status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
ExpectedValues []TestListResultsResponseItemsExpectedValue `json:"expectedValues"`
Goal TestListResultsResponseItemsGoal `json:"goal"`
// The test id.
GoalID string `json:"goalId" api:"nullable" format:"uuid"`
// The URL to the rows of the test result.
Rows string `json:"rows"`
// The body of the rows request.
RowsBody TestListResultsResponseItemsRowsBody `json:"rowsBody" api:"nullable"`
JSON testListResultsResponseItemJSON `json:"-"`
}
func (*TestListResultsResponseItem) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItem) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsExpectedValue ¶ added in v0.4.0
type TestListResultsResponseItemsExpectedValue struct {
// the lower threshold for the expected value
LowerThreshold float64 `json:"lowerThreshold" api:"nullable"`
// One of the `measurement` values in the test's thresholds
Measurement string `json:"measurement"`
// The upper threshold for the expected value
UpperThreshold float64 `json:"upperThreshold" api:"nullable"`
JSON testListResultsResponseItemsExpectedValueJSON `json:"-"`
}
func (*TestListResultsResponseItemsExpectedValue) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsExpectedValue) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsGoal ¶ added in v0.4.0
type TestListResultsResponseItemsGoal struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype TestListResultsResponseItemsGoalSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []TestListResultsResponseItemsGoalThreshold `json:"thresholds" api:"required"`
// The test type.
Type TestListResultsResponseItemsGoalType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON testListResultsResponseItemsGoalJSON `json:"-"`
}
func (*TestListResultsResponseItemsGoal) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsGoal) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsGoalSubtype ¶ added in v0.4.0
type TestListResultsResponseItemsGoalSubtype string
The test subtype.
const ( TestListResultsResponseItemsGoalSubtypeAnomalousColumnCount TestListResultsResponseItemsGoalSubtype = "anomalousColumnCount" TestListResultsResponseItemsGoalSubtypeCharacterLength TestListResultsResponseItemsGoalSubtype = "characterLength" TestListResultsResponseItemsGoalSubtypeClassImbalanceRatio TestListResultsResponseItemsGoalSubtype = "classImbalanceRatio" TestListResultsResponseItemsGoalSubtypeExpectColumnAToBeInColumnB TestListResultsResponseItemsGoalSubtype = "expectColumnAToBeInColumnB" TestListResultsResponseItemsGoalSubtypeColumnAverage TestListResultsResponseItemsGoalSubtype = "columnAverage" TestListResultsResponseItemsGoalSubtypeColumnDrift TestListResultsResponseItemsGoalSubtype = "columnDrift" TestListResultsResponseItemsGoalSubtypeColumnStatistic TestListResultsResponseItemsGoalSubtype = "columnStatistic" TestListResultsResponseItemsGoalSubtypeColumnValuesMatch TestListResultsResponseItemsGoalSubtype = "columnValuesMatch" TestListResultsResponseItemsGoalSubtypeConflictingLabelRowCount TestListResultsResponseItemsGoalSubtype = "conflictingLabelRowCount" TestListResultsResponseItemsGoalSubtypeContainsPii TestListResultsResponseItemsGoalSubtype = "containsPii" TestListResultsResponseItemsGoalSubtypeContainsValidURL TestListResultsResponseItemsGoalSubtype = "containsValidUrl" TestListResultsResponseItemsGoalSubtypeCustomMetricThreshold TestListResultsResponseItemsGoalSubtype = "customMetricThreshold" TestListResultsResponseItemsGoalSubtypeDuplicateRowCount TestListResultsResponseItemsGoalSubtype = "duplicateRowCount" TestListResultsResponseItemsGoalSubtypeEmptyFeature TestListResultsResponseItemsGoalSubtype = "emptyFeature" TestListResultsResponseItemsGoalSubtypeEmptyFeatureCount TestListResultsResponseItemsGoalSubtype = "emptyFeatureCount" TestListResultsResponseItemsGoalSubtypeDriftedFeatureCount TestListResultsResponseItemsGoalSubtype = "driftedFeatureCount" TestListResultsResponseItemsGoalSubtypeFeatureMissingValues TestListResultsResponseItemsGoalSubtype = "featureMissingValues" TestListResultsResponseItemsGoalSubtypeFeatureValueValidation TestListResultsResponseItemsGoalSubtype = "featureValueValidation" TestListResultsResponseItemsGoalSubtypeGreatExpectations TestListResultsResponseItemsGoalSubtype = "greatExpectations" TestListResultsResponseItemsGoalSubtypeGroupByColumnStatsCheck TestListResultsResponseItemsGoalSubtype = "groupByColumnStatsCheck" TestListResultsResponseItemsGoalSubtypeIllFormedRowCount TestListResultsResponseItemsGoalSubtype = "illFormedRowCount" TestListResultsResponseItemsGoalSubtypeIsCode TestListResultsResponseItemsGoalSubtype = "isCode" TestListResultsResponseItemsGoalSubtypeIsJson TestListResultsResponseItemsGoalSubtype = "isJson" TestListResultsResponseItemsGoalSubtypeLlmRubricThresholdV2 TestListResultsResponseItemsGoalSubtype = "llmRubricThresholdV2" TestListResultsResponseItemsGoalSubtypeLabelDrift TestListResultsResponseItemsGoalSubtype = "labelDrift" TestListResultsResponseItemsGoalSubtypeMetricThreshold TestListResultsResponseItemsGoalSubtype = "metricThreshold" TestListResultsResponseItemsGoalSubtypeNewCategoryCount TestListResultsResponseItemsGoalSubtype = "newCategoryCount" TestListResultsResponseItemsGoalSubtypeNewLabelCount TestListResultsResponseItemsGoalSubtype = "newLabelCount" TestListResultsResponseItemsGoalSubtypeNullRowCount TestListResultsResponseItemsGoalSubtype = "nullRowCount" TestListResultsResponseItemsGoalSubtypeRowCount TestListResultsResponseItemsGoalSubtype = "rowCount" TestListResultsResponseItemsGoalSubtypePpScoreValueValidation TestListResultsResponseItemsGoalSubtype = "ppScoreValueValidation" TestListResultsResponseItemsGoalSubtypeQuasiConstantFeature TestListResultsResponseItemsGoalSubtype = "quasiConstantFeature" TestListResultsResponseItemsGoalSubtypeQuasiConstantFeatureCount TestListResultsResponseItemsGoalSubtype = "quasiConstantFeatureCount" TestListResultsResponseItemsGoalSubtypeSqlQuery TestListResultsResponseItemsGoalSubtype = "sqlQuery" TestListResultsResponseItemsGoalSubtypeDtypeValidation TestListResultsResponseItemsGoalSubtype = "dtypeValidation" TestListResultsResponseItemsGoalSubtypeSentenceLength TestListResultsResponseItemsGoalSubtype = "sentenceLength" TestListResultsResponseItemsGoalSubtypeSizeRatio TestListResultsResponseItemsGoalSubtype = "sizeRatio" TestListResultsResponseItemsGoalSubtypeSpecialCharactersRatio TestListResultsResponseItemsGoalSubtype = "specialCharactersRatio" TestListResultsResponseItemsGoalSubtypeStringValidation TestListResultsResponseItemsGoalSubtype = "stringValidation" TestListResultsResponseItemsGoalSubtypeTrainValLeakageRowCount TestListResultsResponseItemsGoalSubtype = "trainValLeakageRowCount" )
func (TestListResultsResponseItemsGoalSubtype) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalSubtype) IsKnown() bool
type TestListResultsResponseItemsGoalThreshold ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThreshold struct {
// The insight name to be evaluated.
InsightName TestListResultsResponseItemsGoalThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []TestListResultsResponseItemsGoalThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator TestListResultsResponseItemsGoalThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode TestListResultsResponseItemsGoalThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value TestListResultsResponseItemsGoalThresholdsValueUnion `json:"value"`
JSON testListResultsResponseItemsGoalThresholdJSON `json:"-"`
}
func (*TestListResultsResponseItemsGoalThreshold) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsGoalThreshold) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsGoalThresholdsInsightName ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsInsightName string
The insight name to be evaluated.
const ( TestListResultsResponseItemsGoalThresholdsInsightNameCharacterLength TestListResultsResponseItemsGoalThresholdsInsightName = "characterLength" TestListResultsResponseItemsGoalThresholdsInsightNameClassImbalance TestListResultsResponseItemsGoalThresholdsInsightName = "classImbalance" TestListResultsResponseItemsGoalThresholdsInsightNameExpectColumnAToBeInColumnB TestListResultsResponseItemsGoalThresholdsInsightName = "expectColumnAToBeInColumnB" TestListResultsResponseItemsGoalThresholdsInsightNameColumnAverage TestListResultsResponseItemsGoalThresholdsInsightName = "columnAverage" TestListResultsResponseItemsGoalThresholdsInsightNameColumnDrift TestListResultsResponseItemsGoalThresholdsInsightName = "columnDrift" TestListResultsResponseItemsGoalThresholdsInsightNameColumnValuesMatch TestListResultsResponseItemsGoalThresholdsInsightName = "columnValuesMatch" TestListResultsResponseItemsGoalThresholdsInsightNameConfidenceDistribution TestListResultsResponseItemsGoalThresholdsInsightName = "confidenceDistribution" TestListResultsResponseItemsGoalThresholdsInsightNameConflictingLabelRowCount TestListResultsResponseItemsGoalThresholdsInsightName = "conflictingLabelRowCount" TestListResultsResponseItemsGoalThresholdsInsightNameContainsPii TestListResultsResponseItemsGoalThresholdsInsightName = "containsPii" TestListResultsResponseItemsGoalThresholdsInsightNameContainsValidURL TestListResultsResponseItemsGoalThresholdsInsightName = "containsValidUrl" TestListResultsResponseItemsGoalThresholdsInsightNameCustomMetric TestListResultsResponseItemsGoalThresholdsInsightName = "customMetric" TestListResultsResponseItemsGoalThresholdsInsightNameDuplicateRowCount TestListResultsResponseItemsGoalThresholdsInsightName = "duplicateRowCount" TestListResultsResponseItemsGoalThresholdsInsightNameEmptyFeatures TestListResultsResponseItemsGoalThresholdsInsightName = "emptyFeatures" TestListResultsResponseItemsGoalThresholdsInsightNameFeatureDrift TestListResultsResponseItemsGoalThresholdsInsightName = "featureDrift" TestListResultsResponseItemsGoalThresholdsInsightNameFeatureProfile TestListResultsResponseItemsGoalThresholdsInsightName = "featureProfile" TestListResultsResponseItemsGoalThresholdsInsightNameGreatExpectations TestListResultsResponseItemsGoalThresholdsInsightName = "greatExpectations" TestListResultsResponseItemsGoalThresholdsInsightNameGroupByColumnStatsCheck TestListResultsResponseItemsGoalThresholdsInsightName = "groupByColumnStatsCheck" TestListResultsResponseItemsGoalThresholdsInsightNameIllFormedRowCount TestListResultsResponseItemsGoalThresholdsInsightName = "illFormedRowCount" TestListResultsResponseItemsGoalThresholdsInsightNameIsCode TestListResultsResponseItemsGoalThresholdsInsightName = "isCode" TestListResultsResponseItemsGoalThresholdsInsightNameIsJson TestListResultsResponseItemsGoalThresholdsInsightName = "isJson" TestListResultsResponseItemsGoalThresholdsInsightNameLlmRubricV2 TestListResultsResponseItemsGoalThresholdsInsightName = "llmRubricV2" TestListResultsResponseItemsGoalThresholdsInsightNameLabelDrift TestListResultsResponseItemsGoalThresholdsInsightName = "labelDrift" TestListResultsResponseItemsGoalThresholdsInsightNameMetrics TestListResultsResponseItemsGoalThresholdsInsightName = "metrics" TestListResultsResponseItemsGoalThresholdsInsightNameNewCategories TestListResultsResponseItemsGoalThresholdsInsightName = "newCategories" TestListResultsResponseItemsGoalThresholdsInsightNameNewLabels TestListResultsResponseItemsGoalThresholdsInsightName = "newLabels" TestListResultsResponseItemsGoalThresholdsInsightNameNullRowCount TestListResultsResponseItemsGoalThresholdsInsightName = "nullRowCount" TestListResultsResponseItemsGoalThresholdsInsightNamePpScore TestListResultsResponseItemsGoalThresholdsInsightName = "ppScore" TestListResultsResponseItemsGoalThresholdsInsightNameQuasiConstantFeatures TestListResultsResponseItemsGoalThresholdsInsightName = "quasiConstantFeatures" TestListResultsResponseItemsGoalThresholdsInsightNameSentenceLength TestListResultsResponseItemsGoalThresholdsInsightName = "sentenceLength" TestListResultsResponseItemsGoalThresholdsInsightNameSizeRatio TestListResultsResponseItemsGoalThresholdsInsightName = "sizeRatio" TestListResultsResponseItemsGoalThresholdsInsightNameSpecialCharacters TestListResultsResponseItemsGoalThresholdsInsightName = "specialCharacters" TestListResultsResponseItemsGoalThresholdsInsightNameStringValidation TestListResultsResponseItemsGoalThresholdsInsightName = "stringValidation" TestListResultsResponseItemsGoalThresholdsInsightNameTrainValLeakageRowCount TestListResultsResponseItemsGoalThresholdsInsightName = "trainValLeakageRowCount" )
func (TestListResultsResponseItemsGoalThresholdsInsightName) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalThresholdsInsightName) IsKnown() bool
type TestListResultsResponseItemsGoalThresholdsInsightParameter ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON testListResultsResponseItemsGoalThresholdsInsightParameterJSON `json:"-"`
}
func (*TestListResultsResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsGoalThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsGoalThresholdsOperator ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsOperator string
The operator to be used for the evaluation.
const ( TestListResultsResponseItemsGoalThresholdsOperatorIs TestListResultsResponseItemsGoalThresholdsOperator = "is" TestListResultsResponseItemsGoalThresholdsOperatorGreater TestListResultsResponseItemsGoalThresholdsOperator = ">" TestListResultsResponseItemsGoalThresholdsOperatorGreaterOrEquals TestListResultsResponseItemsGoalThresholdsOperator = ">=" TestListResultsResponseItemsGoalThresholdsOperatorLess TestListResultsResponseItemsGoalThresholdsOperator = "<" TestListResultsResponseItemsGoalThresholdsOperatorLessOrEquals TestListResultsResponseItemsGoalThresholdsOperator = "<=" TestListResultsResponseItemsGoalThresholdsOperatorNotEquals TestListResultsResponseItemsGoalThresholdsOperator = "!=" )
func (TestListResultsResponseItemsGoalThresholdsOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalThresholdsOperator) IsKnown() bool
type TestListResultsResponseItemsGoalThresholdsThresholdMode ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( TestListResultsResponseItemsGoalThresholdsThresholdModeAutomatic TestListResultsResponseItemsGoalThresholdsThresholdMode = "automatic" TestListResultsResponseItemsGoalThresholdsThresholdModeManual TestListResultsResponseItemsGoalThresholdsThresholdMode = "manual" )
func (TestListResultsResponseItemsGoalThresholdsThresholdMode) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalThresholdsThresholdMode) IsKnown() bool
type TestListResultsResponseItemsGoalThresholdsValueArray ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsValueArray []string
func (TestListResultsResponseItemsGoalThresholdsValueArray) ImplementsTestListResultsResponseItemsGoalThresholdsValueUnion ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalThresholdsValueArray) ImplementsTestListResultsResponseItemsGoalThresholdsValueUnion()
type TestListResultsResponseItemsGoalThresholdsValueUnion ¶ added in v0.4.0
type TestListResultsResponseItemsGoalThresholdsValueUnion interface {
ImplementsTestListResultsResponseItemsGoalThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or TestListResultsResponseItemsGoalThresholdsValueArray.
type TestListResultsResponseItemsGoalType ¶ added in v0.4.0
type TestListResultsResponseItemsGoalType string
The test type.
const ( TestListResultsResponseItemsGoalTypeIntegrity TestListResultsResponseItemsGoalType = "integrity" TestListResultsResponseItemsGoalTypeConsistency TestListResultsResponseItemsGoalType = "consistency" TestListResultsResponseItemsGoalTypePerformance TestListResultsResponseItemsGoalType = "performance" )
func (TestListResultsResponseItemsGoalType) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsGoalType) IsKnown() bool
type TestListResultsResponseItemsRowsBody ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBody struct {
ColumnFilters []TestListResultsResponseItemsRowsBodyColumnFilter `json:"columnFilters" api:"nullable"`
ExcludeRowIDList []int64 `json:"excludeRowIdList" api:"nullable"`
NotSearchQueryAnd []string `json:"notSearchQueryAnd" api:"nullable"`
NotSearchQueryOr []string `json:"notSearchQueryOr" api:"nullable"`
RowIDList []int64 `json:"rowIdList" api:"nullable"`
SearchQueryAnd []string `json:"searchQueryAnd" api:"nullable"`
SearchQueryOr []string `json:"searchQueryOr" api:"nullable"`
JSON testListResultsResponseItemsRowsBodyJSON `json:"-"`
}
The body of the rows request.
func (*TestListResultsResponseItemsRowsBody) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsRowsBody) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsRowsBodyColumnFilter ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseItemsRowsBodyColumnFiltersOperator `json:"operator" api:"required"`
// This field can have the runtime type of
// [[]TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion],
// [float64],
// [TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion].
Value interface{} `json:"value" api:"required"`
JSON testListResultsResponseItemsRowsBodyColumnFilterJSON `json:"-"`
// contains filtered or unexported fields
}
func (TestListResultsResponseItemsRowsBodyColumnFilter) AsUnion ¶ added in v0.4.0
func (r TestListResultsResponseItemsRowsBodyColumnFilter) AsUnion() TestListResultsResponseItemsRowsBodyColumnFiltersUnion
AsUnion returns a TestListResultsResponseItemsRowsBodyColumnFiltersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter, TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter, TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter.
func (*TestListResultsResponseItemsRowsBodyColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsRowsBodyColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator `json:"operator" api:"required"`
Value float64 `json:"value" api:"required,nullable"`
JSON testListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator string
const ( TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreater TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">" TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorGreaterOrEquals TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = ">=" TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorIs TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "is" TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLess TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<" TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorLessOrEquals TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "<=" TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperatorNotEquals TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator = "!=" )
func (TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilterOperator) IsKnown() bool
type TestListResultsResponseItemsRowsBodyColumnFiltersOperator ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersOperator string
const ( TestListResultsResponseItemsRowsBodyColumnFiltersOperatorContainsNone TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "contains_none" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorContainsAny TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "contains_any" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorContainsAll TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "contains_all" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorOneOf TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "one_of" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorNoneOf TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "none_of" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorGreater TestListResultsResponseItemsRowsBodyColumnFiltersOperator = ">" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorGreaterOrEquals TestListResultsResponseItemsRowsBodyColumnFiltersOperator = ">=" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorIs TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "is" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorLess TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "<" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorLessOrEquals TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "<=" TestListResultsResponseItemsRowsBodyColumnFiltersOperatorNotEquals TestListResultsResponseItemsRowsBodyColumnFiltersOperator = "!=" )
func (TestListResultsResponseItemsRowsBodyColumnFiltersOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsRowsBodyColumnFiltersOperator) IsKnown() bool
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator `json:"operator" api:"required"`
Value []TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion `json:"value" api:"required"`
JSON testListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator string
const ( TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsNone TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_none" TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAny TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_any" TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorContainsAll TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "contains_all" TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorOneOf TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "one_of" TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperatorNoneOf TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator = "none_of" )
func (TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterOperator) IsKnown() bool
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion interface {
ImplementsTestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionFloat.
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator `json:"operator" api:"required"`
Value TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion `json:"value" api:"required"`
JSON testListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator string
const ( TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorIs TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "is" TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperatorNotEquals TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator = "!=" )
func (TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterOperator) IsKnown() bool
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion interface {
ImplementsTestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionBool.
type TestListResultsResponseItemsRowsBodyColumnFiltersUnion ¶ added in v0.4.0
type TestListResultsResponseItemsRowsBodyColumnFiltersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TestListResultsResponseItemsRowsBodyColumnFiltersSetColumnFilter, TestListResultsResponseItemsRowsBodyColumnFiltersNumericColumnFilter or TestListResultsResponseItemsRowsBodyColumnFiltersStringColumnFilter.
type TestListResultsResponseItemsStatus ¶ added in v0.4.0
type TestListResultsResponseItemsStatus string
The status of the test.
const ( TestListResultsResponseItemsStatusRunning TestListResultsResponseItemsStatus = "running" TestListResultsResponseItemsStatusPassing TestListResultsResponseItemsStatus = "passing" TestListResultsResponseItemsStatusFailing TestListResultsResponseItemsStatus = "failing" TestListResultsResponseItemsStatusSkipped TestListResultsResponseItemsStatus = "skipped" TestListResultsResponseItemsStatusError TestListResultsResponseItemsStatus = "error" )
func (TestListResultsResponseItemsStatus) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseItemsStatus) IsKnown() bool
type TestListResultsResponseLastUnskippedResult ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResult struct {
// Project version (commit) id.
ID string `json:"id" api:"required" format:"uuid"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The data end date.
DateDataEnds time.Time `json:"dateDataEnds" api:"required,nullable" format:"date-time"`
// The data start date.
DateDataStarts time.Time `json:"dateDataStarts" api:"required,nullable" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The inference pipeline id.
InferencePipelineID string `json:"inferencePipelineId" api:"required,nullable" format:"uuid"`
// The project version (commit) id.
ProjectVersionID string `json:"projectVersionId" api:"required,nullable" format:"uuid"`
// The status of the test.
Status TestListResultsResponseLastUnskippedResultStatus `json:"status" api:"required"`
// The status message.
StatusMessage string `json:"statusMessage" api:"required,nullable"`
ExpectedValues []TestListResultsResponseLastUnskippedResultExpectedValue `json:"expectedValues"`
Goal TestListResultsResponseLastUnskippedResultGoal `json:"goal"`
// The test id.
GoalID string `json:"goalId" api:"nullable" format:"uuid"`
// The URL to the rows of the test result.
Rows string `json:"rows"`
// The body of the rows request.
RowsBody TestListResultsResponseLastUnskippedResultRowsBody `json:"rowsBody" api:"nullable"`
JSON testListResultsResponseLastUnskippedResultJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResult) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResult) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultExpectedValue ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultExpectedValue struct {
// the lower threshold for the expected value
LowerThreshold float64 `json:"lowerThreshold" api:"nullable"`
// One of the `measurement` values in the test's thresholds
Measurement string `json:"measurement"`
// The upper threshold for the expected value
UpperThreshold float64 `json:"upperThreshold" api:"nullable"`
JSON testListResultsResponseLastUnskippedResultExpectedValueJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultExpectedValue) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultExpectedValue) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultGoal ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoal struct {
// The test id.
ID string `json:"id" api:"required" format:"uuid"`
// The number of comments on the test.
CommentCount int64 `json:"commentCount" api:"required"`
// The test creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The date the test was archived.
DateArchived time.Time `json:"dateArchived" api:"required,nullable" format:"date-time"`
// The creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The test description.
Description interface{} `json:"description" api:"required,nullable"`
// The test name.
Name string `json:"name" api:"required"`
// The test number.
Number int64 `json:"number" api:"required"`
// The project version (commit) id where the test was created.
OriginProjectVersionID string `json:"originProjectVersionId" api:"required,nullable" format:"uuid"`
// The test subtype.
Subtype TestListResultsResponseLastUnskippedResultGoalSubtype `json:"subtype" api:"required"`
// Whether the test is suggested or user-created.
Suggested bool `json:"suggested" api:"required"`
Thresholds []TestListResultsResponseLastUnskippedResultGoalThreshold `json:"thresholds" api:"required"`
// The test type.
Type TestListResultsResponseLastUnskippedResultGoalType `json:"type" api:"required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow" api:"nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow" api:"nullable"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
UsesProductionData bool `json:"usesProductionData"`
// Whether the test uses a reference dataset (monitoring mode only).
UsesReferenceDataset bool `json:"usesReferenceDataset"`
// Whether the test uses a training dataset.
UsesTrainingDataset bool `json:"usesTrainingDataset"`
// Whether the test uses a validation dataset.
UsesValidationDataset bool `json:"usesValidationDataset"`
JSON testListResultsResponseLastUnskippedResultGoalJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultGoal) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultGoal) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultGoalSubtype ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalSubtype string
The test subtype.
const ( TestListResultsResponseLastUnskippedResultGoalSubtypeAnomalousColumnCount TestListResultsResponseLastUnskippedResultGoalSubtype = "anomalousColumnCount" TestListResultsResponseLastUnskippedResultGoalSubtypeCharacterLength TestListResultsResponseLastUnskippedResultGoalSubtype = "characterLength" TestListResultsResponseLastUnskippedResultGoalSubtypeClassImbalanceRatio TestListResultsResponseLastUnskippedResultGoalSubtype = "classImbalanceRatio" TestListResultsResponseLastUnskippedResultGoalSubtypeExpectColumnAToBeInColumnB TestListResultsResponseLastUnskippedResultGoalSubtype = "expectColumnAToBeInColumnB" TestListResultsResponseLastUnskippedResultGoalSubtypeColumnAverage TestListResultsResponseLastUnskippedResultGoalSubtype = "columnAverage" TestListResultsResponseLastUnskippedResultGoalSubtypeColumnDrift TestListResultsResponseLastUnskippedResultGoalSubtype = "columnDrift" TestListResultsResponseLastUnskippedResultGoalSubtypeColumnStatistic TestListResultsResponseLastUnskippedResultGoalSubtype = "columnStatistic" TestListResultsResponseLastUnskippedResultGoalSubtypeColumnValuesMatch TestListResultsResponseLastUnskippedResultGoalSubtype = "columnValuesMatch" TestListResultsResponseLastUnskippedResultGoalSubtypeConflictingLabelRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "conflictingLabelRowCount" TestListResultsResponseLastUnskippedResultGoalSubtypeContainsPii TestListResultsResponseLastUnskippedResultGoalSubtype = "containsPii" TestListResultsResponseLastUnskippedResultGoalSubtypeContainsValidURL TestListResultsResponseLastUnskippedResultGoalSubtype = "containsValidUrl" TestListResultsResponseLastUnskippedResultGoalSubtypeCustomMetricThreshold TestListResultsResponseLastUnskippedResultGoalSubtype = "customMetricThreshold" TestListResultsResponseLastUnskippedResultGoalSubtypeDuplicateRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "duplicateRowCount" TestListResultsResponseLastUnskippedResultGoalSubtypeEmptyFeature TestListResultsResponseLastUnskippedResultGoalSubtype = "emptyFeature" TestListResultsResponseLastUnskippedResultGoalSubtypeEmptyFeatureCount TestListResultsResponseLastUnskippedResultGoalSubtype = "emptyFeatureCount" TestListResultsResponseLastUnskippedResultGoalSubtypeDriftedFeatureCount TestListResultsResponseLastUnskippedResultGoalSubtype = "driftedFeatureCount" TestListResultsResponseLastUnskippedResultGoalSubtypeFeatureMissingValues TestListResultsResponseLastUnskippedResultGoalSubtype = "featureMissingValues" TestListResultsResponseLastUnskippedResultGoalSubtypeFeatureValueValidation TestListResultsResponseLastUnskippedResultGoalSubtype = "featureValueValidation" TestListResultsResponseLastUnskippedResultGoalSubtypeGreatExpectations TestListResultsResponseLastUnskippedResultGoalSubtype = "greatExpectations" TestListResultsResponseLastUnskippedResultGoalSubtypeGroupByColumnStatsCheck TestListResultsResponseLastUnskippedResultGoalSubtype = "groupByColumnStatsCheck" TestListResultsResponseLastUnskippedResultGoalSubtypeIllFormedRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "illFormedRowCount" TestListResultsResponseLastUnskippedResultGoalSubtypeIsCode TestListResultsResponseLastUnskippedResultGoalSubtype = "isCode" TestListResultsResponseLastUnskippedResultGoalSubtypeIsJson TestListResultsResponseLastUnskippedResultGoalSubtype = "isJson" TestListResultsResponseLastUnskippedResultGoalSubtypeLlmRubricThresholdV2 TestListResultsResponseLastUnskippedResultGoalSubtype = "llmRubricThresholdV2" TestListResultsResponseLastUnskippedResultGoalSubtypeLabelDrift TestListResultsResponseLastUnskippedResultGoalSubtype = "labelDrift" TestListResultsResponseLastUnskippedResultGoalSubtypeMetricThreshold TestListResultsResponseLastUnskippedResultGoalSubtype = "metricThreshold" TestListResultsResponseLastUnskippedResultGoalSubtypeNewCategoryCount TestListResultsResponseLastUnskippedResultGoalSubtype = "newCategoryCount" TestListResultsResponseLastUnskippedResultGoalSubtypeNewLabelCount TestListResultsResponseLastUnskippedResultGoalSubtype = "newLabelCount" TestListResultsResponseLastUnskippedResultGoalSubtypeNullRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "nullRowCount" TestListResultsResponseLastUnskippedResultGoalSubtypeRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "rowCount" TestListResultsResponseLastUnskippedResultGoalSubtypePpScoreValueValidation TestListResultsResponseLastUnskippedResultGoalSubtype = "ppScoreValueValidation" TestListResultsResponseLastUnskippedResultGoalSubtypeQuasiConstantFeature TestListResultsResponseLastUnskippedResultGoalSubtype = "quasiConstantFeature" TestListResultsResponseLastUnskippedResultGoalSubtypeQuasiConstantFeatureCount TestListResultsResponseLastUnskippedResultGoalSubtype = "quasiConstantFeatureCount" TestListResultsResponseLastUnskippedResultGoalSubtypeSqlQuery TestListResultsResponseLastUnskippedResultGoalSubtype = "sqlQuery" TestListResultsResponseLastUnskippedResultGoalSubtypeDtypeValidation TestListResultsResponseLastUnskippedResultGoalSubtype = "dtypeValidation" TestListResultsResponseLastUnskippedResultGoalSubtypeSentenceLength TestListResultsResponseLastUnskippedResultGoalSubtype = "sentenceLength" TestListResultsResponseLastUnskippedResultGoalSubtypeSizeRatio TestListResultsResponseLastUnskippedResultGoalSubtype = "sizeRatio" TestListResultsResponseLastUnskippedResultGoalSubtypeSpecialCharactersRatio TestListResultsResponseLastUnskippedResultGoalSubtype = "specialCharactersRatio" TestListResultsResponseLastUnskippedResultGoalSubtypeStringValidation TestListResultsResponseLastUnskippedResultGoalSubtype = "stringValidation" TestListResultsResponseLastUnskippedResultGoalSubtypeTrainValLeakageRowCount TestListResultsResponseLastUnskippedResultGoalSubtype = "trainValLeakageRowCount" )
func (TestListResultsResponseLastUnskippedResultGoalSubtype) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalSubtype) IsKnown() bool
type TestListResultsResponseLastUnskippedResultGoalThreshold ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThreshold struct {
// The insight name to be evaluated.
InsightName TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName `json:"insightName"`
// The insight parameters. Required only for some test subtypes. For example, for
// tests that require a column name, the insight parameters will be [{'name':
// 'column_name', 'value': 'Age'}]
InsightParameters []TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter `json:"insightParameters" api:"nullable"`
// The measurement to be evaluated.
Measurement string `json:"measurement"`
// The operator to be used for the evaluation.
Operator TestListResultsResponseLastUnskippedResultGoalThresholdsOperator `json:"operator"`
// Whether to use automatic anomaly detection or manual thresholds
ThresholdMode TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode `json:"thresholdMode"`
// The value to be compared.
Value TestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion `json:"value"`
JSON testListResultsResponseLastUnskippedResultGoalThresholdJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultGoalThreshold) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultGoalThreshold) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName string
The insight name to be evaluated.
const ( TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameCharacterLength TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "characterLength" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameClassImbalance TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "classImbalance" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameExpectColumnAToBeInColumnB TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "expectColumnAToBeInColumnB" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameColumnAverage TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "columnAverage" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameColumnDrift TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "columnDrift" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameColumnValuesMatch TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "columnValuesMatch" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameConfidenceDistribution TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "confidenceDistribution" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameConflictingLabelRowCount TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "conflictingLabelRowCount" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameContainsPii TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "containsPii" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameContainsValidURL TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "containsValidUrl" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameCustomMetric TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "customMetric" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameDuplicateRowCount TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "duplicateRowCount" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameEmptyFeatures TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "emptyFeatures" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameFeatureDrift TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "featureDrift" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameFeatureProfile TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "featureProfile" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameGreatExpectations TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "greatExpectations" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameGroupByColumnStatsCheck TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "groupByColumnStatsCheck" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameIllFormedRowCount TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "illFormedRowCount" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameIsCode TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "isCode" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameIsJson TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "isJson" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameLlmRubricV2 TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "llmRubricV2" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameLabelDrift TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "labelDrift" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameMetrics TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "metrics" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameNewCategories TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "newCategories" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameNewLabels TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "newLabels" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameNullRowCount TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "nullRowCount" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNamePpScore TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "ppScore" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameQuasiConstantFeatures TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "quasiConstantFeatures" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameSentenceLength TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "sentenceLength" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameSizeRatio TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "sizeRatio" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameSpecialCharacters TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "specialCharacters" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameStringValidation TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "stringValidation" TestListResultsResponseLastUnskippedResultGoalThresholdsInsightNameTrainValLeakageRowCount TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName = "trainValLeakageRowCount" )
func (TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalThresholdsInsightName) IsKnown() bool
type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter struct {
// The name of the insight filter.
Name string `json:"name" api:"required"`
Value interface{} `json:"value" api:"required"`
JSON testListResultsResponseLastUnskippedResultGoalThresholdsInsightParameterJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultGoalThresholdsInsightParameter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultGoalThresholdsOperator ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsOperator string
The operator to be used for the evaluation.
const ( TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorIs TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = "is" TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorGreater TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = ">" TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorGreaterOrEquals TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = ">=" TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorLess TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = "<" TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorLessOrEquals TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = "<=" TestListResultsResponseLastUnskippedResultGoalThresholdsOperatorNotEquals TestListResultsResponseLastUnskippedResultGoalThresholdsOperator = "!=" )
func (TestListResultsResponseLastUnskippedResultGoalThresholdsOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalThresholdsOperator) IsKnown() bool
type TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode string
Whether to use automatic anomaly detection or manual thresholds
const ( TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdModeAutomatic TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode = "automatic" TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdModeManual TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode = "manual" )
func (TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalThresholdsThresholdMode) IsKnown() bool
type TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray []string
func (TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray) ImplementsTestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray) ImplementsTestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion()
type TestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion interface {
ImplementsTestListResultsResponseLastUnskippedResultGoalThresholdsValueUnion()
}
The value to be compared.
Union satisfied by shared.UnionFloat, shared.UnionBool, shared.UnionString or TestListResultsResponseLastUnskippedResultGoalThresholdsValueArray.
type TestListResultsResponseLastUnskippedResultGoalType ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultGoalType string
The test type.
const ( TestListResultsResponseLastUnskippedResultGoalTypeIntegrity TestListResultsResponseLastUnskippedResultGoalType = "integrity" TestListResultsResponseLastUnskippedResultGoalTypeConsistency TestListResultsResponseLastUnskippedResultGoalType = "consistency" TestListResultsResponseLastUnskippedResultGoalTypePerformance TestListResultsResponseLastUnskippedResultGoalType = "performance" )
func (TestListResultsResponseLastUnskippedResultGoalType) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultGoalType) IsKnown() bool
type TestListResultsResponseLastUnskippedResultRowsBody ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBody struct {
ColumnFilters []TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter `json:"columnFilters" api:"nullable"`
ExcludeRowIDList []int64 `json:"excludeRowIdList" api:"nullable"`
NotSearchQueryAnd []string `json:"notSearchQueryAnd" api:"nullable"`
NotSearchQueryOr []string `json:"notSearchQueryOr" api:"nullable"`
RowIDList []int64 `json:"rowIdList" api:"nullable"`
SearchQueryAnd []string `json:"searchQueryAnd" api:"nullable"`
SearchQueryOr []string `json:"searchQueryOr" api:"nullable"`
JSON testListResultsResponseLastUnskippedResultRowsBodyJSON `json:"-"`
}
The body of the rows request.
func (*TestListResultsResponseLastUnskippedResultRowsBody) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultRowsBody) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator `json:"operator" api:"required"`
// This field can have the runtime type of
// [[]TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion],
// [float64],
// [TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion].
Value interface{} `json:"value" api:"required"`
JSON testListResultsResponseLastUnskippedResultRowsBodyColumnFilterJSON `json:"-"`
// contains filtered or unexported fields
}
func (TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter) AsUnion ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter) AsUnion() TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersUnion
AsUnion returns a TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter, TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter, TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter.
func (*TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultRowsBodyColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator `json:"operator" api:"required"`
Value float64 `json:"value" api:"required,nullable"`
JSON testListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator string
const ( TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorGreater TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = ">" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorGreaterOrEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = ">=" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorIs TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = "is" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorLess TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = "<" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorLessOrEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = "<=" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperatorNotEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilterOperator = "!=" )
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator string
const ( TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorContainsNone TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "contains_none" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorContainsAny TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "contains_any" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorContainsAll TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "contains_all" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorOneOf TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "one_of" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorNoneOf TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "none_of" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorGreater TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = ">" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorGreaterOrEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = ">=" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorIs TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "is" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorLess TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "<" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorLessOrEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "<=" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperatorNotEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator = "!=" )
func (TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersOperator) IsKnown() bool
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator `json:"operator" api:"required"`
Value []TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion `json:"value" api:"required"`
JSON testListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator string
const ( TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperatorContainsNone TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator = "contains_none" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperatorContainsAny TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator = "contains_any" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperatorContainsAll TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator = "contains_all" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperatorOneOf TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator = "one_of" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperatorNoneOf TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterOperator = "none_of" )
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion interface {
ImplementsTestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionFloat.
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter struct {
// The name of the column.
Measurement string `json:"measurement" api:"required"`
Operator TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator `json:"operator" api:"required"`
Value TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion `json:"value" api:"required"`
JSON testListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterJSON `json:"-"`
}
func (*TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON ¶ added in v0.4.0
func (r *TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter) UnmarshalJSON(data []byte) (err error)
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator string
const ( TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperatorIs TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator = "is" TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperatorNotEquals TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterOperator = "!=" )
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion interface {
ImplementsTestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilterValueUnion()
}
Union satisfied by shared.UnionString or shared.UnionBool.
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersUnion ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersSetColumnFilter, TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersNumericColumnFilter or TestListResultsResponseLastUnskippedResultRowsBodyColumnFiltersStringColumnFilter.
type TestListResultsResponseLastUnskippedResultStatus ¶ added in v0.4.0
type TestListResultsResponseLastUnskippedResultStatus string
The status of the test.
const ( TestListResultsResponseLastUnskippedResultStatusRunning TestListResultsResponseLastUnskippedResultStatus = "running" TestListResultsResponseLastUnskippedResultStatusPassing TestListResultsResponseLastUnskippedResultStatus = "passing" TestListResultsResponseLastUnskippedResultStatusFailing TestListResultsResponseLastUnskippedResultStatus = "failing" TestListResultsResponseLastUnskippedResultStatusSkipped TestListResultsResponseLastUnskippedResultStatus = "skipped" TestListResultsResponseLastUnskippedResultStatusError TestListResultsResponseLastUnskippedResultStatus = "error" )
func (TestListResultsResponseLastUnskippedResultStatus) IsKnown ¶ added in v0.4.0
func (r TestListResultsResponseLastUnskippedResultStatus) IsKnown() bool
type TestService ¶ added in v0.2.0
type TestService struct {
Options []option.RequestOption
}
TestService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewTestService method instead.
func NewTestService ¶ added in v0.2.0
func NewTestService(opts ...option.RequestOption) (r *TestService)
NewTestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*TestService) Evaluate ¶ added in v0.2.0
func (r *TestService) Evaluate(ctx context.Context, testID string, body TestEvaluateParams, opts ...option.RequestOption) (res *TestEvaluateResponse, err error)
Triggers one-off evaluation of a specific monitoring test for a custom timestamp range. This allows evaluating tests for historical data or custom time periods outside the regular evaluation window schedule. It also allows overwriting the existing test results.
func (*TestService) ListResults ¶ added in v0.4.0
func (r *TestService) ListResults(ctx context.Context, testID string, query TestListResultsParams, opts ...option.RequestOption) (res *TestListResultsResponse, err error)
List the test results for a test.
type WorkspaceAPIKeyGetResponse ¶ added in v0.11.0
type WorkspaceAPIKeyGetResponse struct {
// The API key id.
ID string `json:"id" api:"required" format:"uuid"`
// The API key creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The API key last use date.
DateLastUsed time.Time `json:"dateLastUsed" api:"required,nullable" format:"date-time"`
// The API key last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// An obfuscated hint of the API key value. When a key is created or rotated this
// also holds the full secret, for backward compatibility; prefer `secret`.
SecureKey string `json:"secureKey" api:"required"`
// The key's lifecycle state. `active`: the current secret authenticates.
// `rotating`: the key was rotated and the previous secret still authenticates
// until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret
// authenticates.
Status WorkspaceAPIKeyGetResponseStatus `json:"status" api:"required"`
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt time.Time `json:"expiresAt" api:"nullable" format:"date-time"`
// When the key was last rotated.
LastRotatedAt time.Time `json:"lastRotatedAt" api:"nullable" format:"date-time"`
// The API key name.
Name string `json:"name" api:"nullable"`
// While `status` is `rotating`, when the previous secret stops authenticating.
PreviousKeyExpiresAt time.Time `json:"previousKeyExpiresAt" api:"nullable" format:"date-time"`
// The full API key. Only present in the response that creates or rotates the key,
// and never shown again.
Secret string `json:"secret"`
JSON workspaceAPIKeyGetResponseJSON `json:"-"`
}
func (*WorkspaceAPIKeyGetResponse) UnmarshalJSON ¶ added in v0.11.0
func (r *WorkspaceAPIKeyGetResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceAPIKeyGetResponseStatus ¶ added in v0.11.0
type WorkspaceAPIKeyGetResponseStatus string
The key's lifecycle state. `active`: the current secret authenticates. `rotating`: the key was rotated and the previous secret still authenticates until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret authenticates.
const ( WorkspaceAPIKeyGetResponseStatusActive WorkspaceAPIKeyGetResponseStatus = "active" WorkspaceAPIKeyGetResponseStatusRotating WorkspaceAPIKeyGetResponseStatus = "rotating" WorkspaceAPIKeyGetResponseStatusExpired WorkspaceAPIKeyGetResponseStatus = "expired" )
func (WorkspaceAPIKeyGetResponseStatus) IsKnown ¶ added in v0.11.0
func (r WorkspaceAPIKeyGetResponseStatus) IsKnown() bool
type WorkspaceAPIKeyListResponse ¶ added in v0.11.0
type WorkspaceAPIKeyListResponse struct {
// The API key id.
ID string `json:"id" api:"required" format:"uuid"`
// The API key creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The API key last use date.
DateLastUsed time.Time `json:"dateLastUsed" api:"required,nullable" format:"date-time"`
// The API key last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// An obfuscated hint of the API key value. When a key is created or rotated this
// also holds the full secret, for backward compatibility; prefer `secret`.
SecureKey string `json:"secureKey" api:"required"`
// The key's lifecycle state. `active`: the current secret authenticates.
// `rotating`: the key was rotated and the previous secret still authenticates
// until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret
// authenticates.
Status WorkspaceAPIKeyListResponseStatus `json:"status" api:"required"`
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt time.Time `json:"expiresAt" api:"nullable" format:"date-time"`
// When the key was last rotated.
LastRotatedAt time.Time `json:"lastRotatedAt" api:"nullable" format:"date-time"`
// The API key name.
Name string `json:"name" api:"nullable"`
// While `status` is `rotating`, when the previous secret stops authenticating.
PreviousKeyExpiresAt time.Time `json:"previousKeyExpiresAt" api:"nullable" format:"date-time"`
// The full API key. Only present in the response that creates or rotates the key,
// and never shown again.
Secret string `json:"secret"`
JSON workspaceAPIKeyListResponseJSON `json:"-"`
}
func (*WorkspaceAPIKeyListResponse) UnmarshalJSON ¶ added in v0.11.0
func (r *WorkspaceAPIKeyListResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceAPIKeyListResponseStatus ¶ added in v0.11.0
type WorkspaceAPIKeyListResponseStatus string
The key's lifecycle state. `active`: the current secret authenticates. `rotating`: the key was rotated and the previous secret still authenticates until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret authenticates.
const ( WorkspaceAPIKeyListResponseStatusActive WorkspaceAPIKeyListResponseStatus = "active" WorkspaceAPIKeyListResponseStatusRotating WorkspaceAPIKeyListResponseStatus = "rotating" WorkspaceAPIKeyListResponseStatusExpired WorkspaceAPIKeyListResponseStatus = "expired" )
func (WorkspaceAPIKeyListResponseStatus) IsKnown ¶ added in v0.11.0
func (r WorkspaceAPIKeyListResponseStatus) IsKnown() bool
type WorkspaceAPIKeyNewParams ¶ added in v0.3.0
type WorkspaceAPIKeyNewParams struct {
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt param.Field[time.Time] `json:"expiresAt" format:"date-time"`
// The API key name.
Name param.Field[string] `json:"name"`
}
func (WorkspaceAPIKeyNewParams) MarshalJSON ¶ added in v0.3.0
func (r WorkspaceAPIKeyNewParams) MarshalJSON() (data []byte, err error)
type WorkspaceAPIKeyNewResponse ¶ added in v0.3.0
type WorkspaceAPIKeyNewResponse struct {
// The API key id.
ID string `json:"id" api:"required" format:"uuid"`
// The API key creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The API key last use date.
DateLastUsed time.Time `json:"dateLastUsed" api:"required,nullable" format:"date-time"`
// The API key last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// An obfuscated hint of the API key value. When a key is created or rotated this
// also holds the full secret, for backward compatibility; prefer `secret`.
SecureKey string `json:"secureKey" api:"required"`
// The key's lifecycle state. `active`: the current secret authenticates.
// `rotating`: the key was rotated and the previous secret still authenticates
// until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret
// authenticates.
Status WorkspaceAPIKeyNewResponseStatus `json:"status" api:"required"`
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt time.Time `json:"expiresAt" api:"nullable" format:"date-time"`
// When the key was last rotated.
LastRotatedAt time.Time `json:"lastRotatedAt" api:"nullable" format:"date-time"`
// The API key name.
Name string `json:"name" api:"nullable"`
// While `status` is `rotating`, when the previous secret stops authenticating.
PreviousKeyExpiresAt time.Time `json:"previousKeyExpiresAt" api:"nullable" format:"date-time"`
// The full API key. Only present in the response that creates or rotates the key,
// and never shown again.
Secret string `json:"secret"`
JSON workspaceAPIKeyNewResponseJSON `json:"-"`
}
func (*WorkspaceAPIKeyNewResponse) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceAPIKeyNewResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceAPIKeyNewResponseStatus ¶ added in v0.11.0
type WorkspaceAPIKeyNewResponseStatus string
The key's lifecycle state. `active`: the current secret authenticates. `rotating`: the key was rotated and the previous secret still authenticates until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret authenticates.
const ( WorkspaceAPIKeyNewResponseStatusActive WorkspaceAPIKeyNewResponseStatus = "active" WorkspaceAPIKeyNewResponseStatusRotating WorkspaceAPIKeyNewResponseStatus = "rotating" WorkspaceAPIKeyNewResponseStatusExpired WorkspaceAPIKeyNewResponseStatus = "expired" )
func (WorkspaceAPIKeyNewResponseStatus) IsKnown ¶ added in v0.11.0
func (r WorkspaceAPIKeyNewResponseStatus) IsKnown() bool
type WorkspaceAPIKeyRotateParams ¶ added in v0.11.0
type WorkspaceAPIKeyRotateParams struct {
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt param.Field[time.Time] `json:"expiresAt" format:"date-time"`
// Hours the previous secret keeps authenticating.
GracePeriodHours param.Field[int64] `json:"gracePeriodHours"`
}
func (WorkspaceAPIKeyRotateParams) MarshalJSON ¶ added in v0.11.0
func (r WorkspaceAPIKeyRotateParams) MarshalJSON() (data []byte, err error)
type WorkspaceAPIKeyRotateResponse ¶ added in v0.11.0
type WorkspaceAPIKeyRotateResponse struct {
// The API key id.
ID string `json:"id" api:"required" format:"uuid"`
// The API key creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The API key last use date.
DateLastUsed time.Time `json:"dateLastUsed" api:"required,nullable" format:"date-time"`
// The API key last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// An obfuscated hint of the API key value. When a key is created or rotated this
// also holds the full secret, for backward compatibility; prefer `secret`.
SecureKey string `json:"secureKey" api:"required"`
// The key's lifecycle state. `active`: the current secret authenticates.
// `rotating`: the key was rotated and the previous secret still authenticates
// until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret
// authenticates.
Status WorkspaceAPIKeyRotateResponseStatus `json:"status" api:"required"`
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt time.Time `json:"expiresAt" api:"nullable" format:"date-time"`
// When the key was last rotated.
LastRotatedAt time.Time `json:"lastRotatedAt" api:"nullable" format:"date-time"`
// The API key name.
Name string `json:"name" api:"nullable"`
// While `status` is `rotating`, when the previous secret stops authenticating.
PreviousKeyExpiresAt time.Time `json:"previousKeyExpiresAt" api:"nullable" format:"date-time"`
// The full API key. Only present in the response that creates or rotates the key,
// and never shown again.
Secret string `json:"secret"`
JSON workspaceAPIKeyRotateResponseJSON `json:"-"`
}
func (*WorkspaceAPIKeyRotateResponse) UnmarshalJSON ¶ added in v0.11.0
func (r *WorkspaceAPIKeyRotateResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceAPIKeyRotateResponseStatus ¶ added in v0.11.0
type WorkspaceAPIKeyRotateResponseStatus string
The key's lifecycle state. `active`: the current secret authenticates. `rotating`: the key was rotated and the previous secret still authenticates until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret authenticates.
const ( WorkspaceAPIKeyRotateResponseStatusActive WorkspaceAPIKeyRotateResponseStatus = "active" WorkspaceAPIKeyRotateResponseStatusRotating WorkspaceAPIKeyRotateResponseStatus = "rotating" WorkspaceAPIKeyRotateResponseStatusExpired WorkspaceAPIKeyRotateResponseStatus = "expired" )
func (WorkspaceAPIKeyRotateResponseStatus) IsKnown ¶ added in v0.11.0
func (r WorkspaceAPIKeyRotateResponseStatus) IsKnown() bool
type WorkspaceAPIKeyService ¶ added in v0.3.0
type WorkspaceAPIKeyService struct {
Options []option.RequestOption
}
WorkspaceAPIKeyService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewWorkspaceAPIKeyService method instead.
func NewWorkspaceAPIKeyService ¶ added in v0.3.0
func NewWorkspaceAPIKeyService(opts ...option.RequestOption) (r *WorkspaceAPIKeyService)
NewWorkspaceAPIKeyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*WorkspaceAPIKeyService) Delete ¶ added in v0.11.0
func (r *WorkspaceAPIKeyService) Delete(ctx context.Context, workspaceID string, apiKeyID string, opts ...option.RequestOption) (err error)
Delete one of your API keys. Every secret for the key stops working immediately, including a previous secret still in its rotation grace period.
func (*WorkspaceAPIKeyService) Get ¶ added in v0.11.0
func (r *WorkspaceAPIKeyService) Get(ctx context.Context, workspaceID string, apiKeyID string, opts ...option.RequestOption) (res *WorkspaceAPIKeyGetResponse, err error)
Retrieve one of your API keys, with its lifecycle status. The secret is never returned; `secureKey` is an obfuscated hint.
func (*WorkspaceAPIKeyService) List ¶ added in v0.11.0
func (r *WorkspaceAPIKeyService) List(ctx context.Context, workspaceID string, opts ...option.RequestOption) (res *[]WorkspaceAPIKeyListResponse, err error)
List the API keys you own in a workspace, with their lifecycle status. Secrets are never returned; `secureKey` is an obfuscated hint.
func (*WorkspaceAPIKeyService) New ¶ added in v0.3.0
func (r *WorkspaceAPIKeyService) New(ctx context.Context, workspaceID string, body WorkspaceAPIKeyNewParams, opts ...option.RequestOption) (res *WorkspaceAPIKeyNewResponse, err error)
Create a new API key in a workspace. The full secret is returned in `secret`, only in this response. Optionally set `expiresAt`. When you authenticate with an API key that expires, the new key can't outlive it: omit `expiresAt` to inherit that expiry, and a later expiry (or `null`) is rejected with 400.
func (*WorkspaceAPIKeyService) Rotate ¶ added in v0.11.0
func (r *WorkspaceAPIKeyService) Rotate(ctx context.Context, workspaceID string, apiKeyID string, body WorkspaceAPIKeyRotateParams, opts ...option.RequestOption) (res *WorkspaceAPIKeyRotateResponse, err error)
Replace an API key's secret now. The new secret is returned in `secret`, only in this response. Send `expiresAt` to change the key's expiry (`null` for never); omit it to keep the current one. The previous secret keeps authenticating for `gracePeriodHours` (default 0, so it stops working immediately), and never past `expiresAt`. The key keeps its id and name. Expired keys cannot be rotated. Only one previous secret is kept, so rotating again during a grace period retires the older one immediately.
func (*WorkspaceAPIKeyService) Update ¶ added in v0.11.0
func (r *WorkspaceAPIKeyService) Update(ctx context.Context, workspaceID string, apiKeyID string, body WorkspaceAPIKeyUpdateParams, opts ...option.RequestOption) (res *WorkspaceAPIKeyUpdateResponse, err error)
Rename one of your API keys. A key's expiry can't be updated; rotate the key with a new `expiresAt` instead, so extending a key's life always issues a new secret.
type WorkspaceAPIKeyUpdateParams ¶ added in v0.11.0
type WorkspaceAPIKeyUpdateParams struct {
// The API key name.
Name param.Field[string] `json:"name"`
}
func (WorkspaceAPIKeyUpdateParams) MarshalJSON ¶ added in v0.11.0
func (r WorkspaceAPIKeyUpdateParams) MarshalJSON() (data []byte, err error)
type WorkspaceAPIKeyUpdateResponse ¶ added in v0.11.0
type WorkspaceAPIKeyUpdateResponse struct {
// The API key id.
ID string `json:"id" api:"required" format:"uuid"`
// The API key creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The API key last use date.
DateLastUsed time.Time `json:"dateLastUsed" api:"required,nullable" format:"date-time"`
// The API key last update date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// An obfuscated hint of the API key value. When a key is created or rotated this
// also holds the full secret, for backward compatibility; prefer `secret`.
SecureKey string `json:"secureKey" api:"required"`
// The key's lifecycle state. `active`: the current secret authenticates.
// `rotating`: the key was rotated and the previous secret still authenticates
// until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret
// authenticates.
Status WorkspaceAPIKeyUpdateResponseStatus `json:"status" api:"required"`
// When the key stops authenticating. `null` means the key never expires. Set when
// the key is created or rotated, and must be in the future. When the request is
// authenticated with an API key that expires, the result can't be later than that
// key's expiry.
ExpiresAt time.Time `json:"expiresAt" api:"nullable" format:"date-time"`
// When the key was last rotated.
LastRotatedAt time.Time `json:"lastRotatedAt" api:"nullable" format:"date-time"`
// The API key name.
Name string `json:"name" api:"nullable"`
// While `status` is `rotating`, when the previous secret stops authenticating.
PreviousKeyExpiresAt time.Time `json:"previousKeyExpiresAt" api:"nullable" format:"date-time"`
// The full API key. Only present in the response that creates or rotates the key,
// and never shown again.
Secret string `json:"secret"`
JSON workspaceAPIKeyUpdateResponseJSON `json:"-"`
}
func (*WorkspaceAPIKeyUpdateResponse) UnmarshalJSON ¶ added in v0.11.0
func (r *WorkspaceAPIKeyUpdateResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceAPIKeyUpdateResponseStatus ¶ added in v0.11.0
type WorkspaceAPIKeyUpdateResponseStatus string
The key's lifecycle state. `active`: the current secret authenticates. `rotating`: the key was rotated and the previous secret still authenticates until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed and no secret authenticates.
const ( WorkspaceAPIKeyUpdateResponseStatusActive WorkspaceAPIKeyUpdateResponseStatus = "active" WorkspaceAPIKeyUpdateResponseStatusRotating WorkspaceAPIKeyUpdateResponseStatus = "rotating" WorkspaceAPIKeyUpdateResponseStatusExpired WorkspaceAPIKeyUpdateResponseStatus = "expired" )
func (WorkspaceAPIKeyUpdateResponseStatus) IsKnown ¶ added in v0.11.0
func (r WorkspaceAPIKeyUpdateResponseStatus) IsKnown() bool
type WorkspaceGetResponse ¶ added in v0.3.0
type WorkspaceGetResponse struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status WorkspaceGetResponseStatus `json:"status" api:"required"`
MonthlyUsage []WorkspaceGetResponseMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON workspaceGetResponseJSON `json:"-"`
}
func (*WorkspaceGetResponse) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceGetResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceGetResponseMonthlyUsage ¶ added in v0.3.0
type WorkspaceGetResponseMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON workspaceGetResponseMonthlyUsageJSON `json:"-"`
}
func (*WorkspaceGetResponseMonthlyUsage) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceGetResponseMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type WorkspaceGetResponseStatus ¶ added in v0.3.0
type WorkspaceGetResponseStatus string
const ( WorkspaceGetResponseStatusActive WorkspaceGetResponseStatus = "active" WorkspaceGetResponseStatusPastDue WorkspaceGetResponseStatus = "past_due" WorkspaceGetResponseStatusUnpaid WorkspaceGetResponseStatus = "unpaid" WorkspaceGetResponseStatusCanceled WorkspaceGetResponseStatus = "canceled" WorkspaceGetResponseStatusIncomplete WorkspaceGetResponseStatus = "incomplete" WorkspaceGetResponseStatusIncompleteExpired WorkspaceGetResponseStatus = "incomplete_expired" WorkspaceGetResponseStatusTrialing WorkspaceGetResponseStatus = "trialing" WorkspaceGetResponseStatusPaused WorkspaceGetResponseStatus = "paused" )
func (WorkspaceGetResponseStatus) IsKnown ¶ added in v0.3.0
func (r WorkspaceGetResponseStatus) IsKnown() bool
type WorkspaceInviteListParams ¶ added in v0.3.0
type WorkspaceInviteListParams struct {
// The page to return in a paginated query.
Page param.Field[int64] `query:"page"`
// Maximum number of items to return per page.
PerPage param.Field[int64] `query:"perPage"`
}
func (WorkspaceInviteListParams) URLQuery ¶ added in v0.3.0
func (r WorkspaceInviteListParams) URLQuery() (v url.Values)
URLQuery serializes WorkspaceInviteListParams's query parameters as `url.Values`.
type WorkspaceInviteListResponse ¶ added in v0.3.0
type WorkspaceInviteListResponse struct {
Items []WorkspaceInviteListResponseItem `json:"items" api:"required"`
JSON workspaceInviteListResponseJSON `json:"-"`
}
func (*WorkspaceInviteListResponse) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteListResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteListResponseItem ¶ added in v0.3.0
type WorkspaceInviteListResponseItem struct {
// The invite id.
ID string `json:"id" api:"required" format:"uuid"`
Creator WorkspaceInviteListResponseItemsCreator `json:"creator" api:"required"`
// The invite creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The invite email.
Email string `json:"email" api:"required" format:"email"`
// The invite role.
Role WorkspaceInviteListResponseItemsRole `json:"role" api:"required"`
// The invite status.
Status WorkspaceInviteListResponseItemsStatus `json:"status" api:"required"`
Workspace WorkspaceInviteListResponseItemsWorkspace `json:"workspace" api:"required"`
JSON workspaceInviteListResponseItemJSON `json:"-"`
}
func (*WorkspaceInviteListResponseItem) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteListResponseItem) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteListResponseItemsCreator ¶ added in v0.3.0
type WorkspaceInviteListResponseItemsCreator struct {
// The invite creator id.
ID string `json:"id" format:"uuid"`
// The invite creator name.
Name string `json:"name" api:"nullable"`
// The invite creator username.
Username string `json:"username" api:"nullable"`
JSON workspaceInviteListResponseItemsCreatorJSON `json:"-"`
}
func (*WorkspaceInviteListResponseItemsCreator) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteListResponseItemsCreator) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteListResponseItemsRole ¶ added in v0.3.0
type WorkspaceInviteListResponseItemsRole string
The invite role.
const ( WorkspaceInviteListResponseItemsRoleAdmin WorkspaceInviteListResponseItemsRole = "ADMIN" WorkspaceInviteListResponseItemsRoleMember WorkspaceInviteListResponseItemsRole = "MEMBER" WorkspaceInviteListResponseItemsRoleViewer WorkspaceInviteListResponseItemsRole = "VIEWER" )
func (WorkspaceInviteListResponseItemsRole) IsKnown ¶ added in v0.3.0
func (r WorkspaceInviteListResponseItemsRole) IsKnown() bool
type WorkspaceInviteListResponseItemsStatus ¶ added in v0.3.0
type WorkspaceInviteListResponseItemsStatus string
The invite status.
const ( WorkspaceInviteListResponseItemsStatusAccepted WorkspaceInviteListResponseItemsStatus = "accepted" WorkspaceInviteListResponseItemsStatusPending WorkspaceInviteListResponseItemsStatus = "pending" )
func (WorkspaceInviteListResponseItemsStatus) IsKnown ¶ added in v0.3.0
func (r WorkspaceInviteListResponseItemsStatus) IsKnown() bool
type WorkspaceInviteListResponseItemsWorkspace ¶ added in v0.3.0
type WorkspaceInviteListResponseItemsWorkspace struct {
ID string `json:"id" api:"required" format:"uuid"`
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
MemberCount int64 `json:"memberCount" api:"required"`
Name string `json:"name" api:"required"`
Slug string `json:"slug" api:"required"`
JSON workspaceInviteListResponseItemsWorkspaceJSON `json:"-"`
}
func (*WorkspaceInviteListResponseItemsWorkspace) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteListResponseItemsWorkspace) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteNewParams ¶ added in v0.3.0
type WorkspaceInviteNewParams struct {
Emails param.Field[[]string] `json:"emails" format:"email"`
// The member role.
Role param.Field[WorkspaceInviteNewParamsRole] `json:"role"`
}
func (WorkspaceInviteNewParams) MarshalJSON ¶ added in v0.3.0
func (r WorkspaceInviteNewParams) MarshalJSON() (data []byte, err error)
type WorkspaceInviteNewParamsRole ¶ added in v0.3.0
type WorkspaceInviteNewParamsRole string
The member role.
const ( WorkspaceInviteNewParamsRoleAdmin WorkspaceInviteNewParamsRole = "ADMIN" WorkspaceInviteNewParamsRoleMember WorkspaceInviteNewParamsRole = "MEMBER" WorkspaceInviteNewParamsRoleViewer WorkspaceInviteNewParamsRole = "VIEWER" )
func (WorkspaceInviteNewParamsRole) IsKnown ¶ added in v0.3.0
func (r WorkspaceInviteNewParamsRole) IsKnown() bool
type WorkspaceInviteNewResponse ¶ added in v0.3.0
type WorkspaceInviteNewResponse struct {
Items []WorkspaceInviteNewResponseItem `json:"items" api:"required"`
JSON workspaceInviteNewResponseJSON `json:"-"`
}
func (*WorkspaceInviteNewResponse) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteNewResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteNewResponseItem ¶ added in v0.3.0
type WorkspaceInviteNewResponseItem struct {
// The invite id.
ID string `json:"id" api:"required" format:"uuid"`
Creator WorkspaceInviteNewResponseItemsCreator `json:"creator" api:"required"`
// The invite creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The invite email.
Email string `json:"email" api:"required" format:"email"`
// The invite role.
Role WorkspaceInviteNewResponseItemsRole `json:"role" api:"required"`
// The invite status.
Status WorkspaceInviteNewResponseItemsStatus `json:"status" api:"required"`
Workspace WorkspaceInviteNewResponseItemsWorkspace `json:"workspace" api:"required"`
JSON workspaceInviteNewResponseItemJSON `json:"-"`
}
func (*WorkspaceInviteNewResponseItem) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteNewResponseItem) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteNewResponseItemsCreator ¶ added in v0.3.0
type WorkspaceInviteNewResponseItemsCreator struct {
// The invite creator id.
ID string `json:"id" format:"uuid"`
// The invite creator name.
Name string `json:"name" api:"nullable"`
// The invite creator username.
Username string `json:"username" api:"nullable"`
JSON workspaceInviteNewResponseItemsCreatorJSON `json:"-"`
}
func (*WorkspaceInviteNewResponseItemsCreator) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteNewResponseItemsCreator) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteNewResponseItemsRole ¶ added in v0.3.0
type WorkspaceInviteNewResponseItemsRole string
The invite role.
const ( WorkspaceInviteNewResponseItemsRoleAdmin WorkspaceInviteNewResponseItemsRole = "ADMIN" WorkspaceInviteNewResponseItemsRoleMember WorkspaceInviteNewResponseItemsRole = "MEMBER" WorkspaceInviteNewResponseItemsRoleViewer WorkspaceInviteNewResponseItemsRole = "VIEWER" )
func (WorkspaceInviteNewResponseItemsRole) IsKnown ¶ added in v0.3.0
func (r WorkspaceInviteNewResponseItemsRole) IsKnown() bool
type WorkspaceInviteNewResponseItemsStatus ¶ added in v0.3.0
type WorkspaceInviteNewResponseItemsStatus string
The invite status.
const ( WorkspaceInviteNewResponseItemsStatusAccepted WorkspaceInviteNewResponseItemsStatus = "accepted" WorkspaceInviteNewResponseItemsStatusPending WorkspaceInviteNewResponseItemsStatus = "pending" )
func (WorkspaceInviteNewResponseItemsStatus) IsKnown ¶ added in v0.3.0
func (r WorkspaceInviteNewResponseItemsStatus) IsKnown() bool
type WorkspaceInviteNewResponseItemsWorkspace ¶ added in v0.3.0
type WorkspaceInviteNewResponseItemsWorkspace struct {
ID string `json:"id" api:"required" format:"uuid"`
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
MemberCount int64 `json:"memberCount" api:"required"`
Name string `json:"name" api:"required"`
Slug string `json:"slug" api:"required"`
JSON workspaceInviteNewResponseItemsWorkspaceJSON `json:"-"`
}
func (*WorkspaceInviteNewResponseItemsWorkspace) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceInviteNewResponseItemsWorkspace) UnmarshalJSON(data []byte) (err error)
type WorkspaceInviteService ¶ added in v0.3.0
type WorkspaceInviteService struct {
Options []option.RequestOption
}
WorkspaceInviteService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewWorkspaceInviteService method instead.
func NewWorkspaceInviteService ¶ added in v0.3.0
func NewWorkspaceInviteService(opts ...option.RequestOption) (r *WorkspaceInviteService)
NewWorkspaceInviteService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*WorkspaceInviteService) List ¶ added in v0.3.0
func (r *WorkspaceInviteService) List(ctx context.Context, workspaceID string, query WorkspaceInviteListParams, opts ...option.RequestOption) (res *WorkspaceInviteListResponse, err error)
Retrieve a list of invites in a workspace.
func (*WorkspaceInviteService) New ¶ added in v0.3.0
func (r *WorkspaceInviteService) New(ctx context.Context, workspaceID string, body WorkspaceInviteNewParams, opts ...option.RequestOption) (res *WorkspaceInviteNewResponse, err error)
Invite users to a workspace.
type WorkspaceService ¶ added in v0.3.0
type WorkspaceService struct {
Options []option.RequestOption
Invites *WorkspaceInviteService
APIKeys *WorkspaceAPIKeyService
}
WorkspaceService contains methods and other services that help with interacting with the openlayer API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewWorkspaceService method instead.
func NewWorkspaceService ¶ added in v0.3.0
func NewWorkspaceService(opts ...option.RequestOption) (r *WorkspaceService)
NewWorkspaceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*WorkspaceService) Get ¶ added in v0.3.0
func (r *WorkspaceService) Get(ctx context.Context, workspaceID string, opts ...option.RequestOption) (res *WorkspaceGetResponse, err error)
Retrieve a workspace by its ID.
func (*WorkspaceService) Update ¶ added in v0.3.0
func (r *WorkspaceService) Update(ctx context.Context, workspaceID string, body WorkspaceUpdateParams, opts ...option.RequestOption) (res *WorkspaceUpdateResponse, err error)
Update a workspace.
type WorkspaceUpdateParams ¶ added in v0.3.0
type WorkspaceUpdateParams struct {
// The workspace invite code.
InviteCode param.Field[string] `json:"inviteCode"`
// The workspace name.
Name param.Field[string] `json:"name"`
// The workspace slug.
Slug param.Field[string] `json:"slug"`
}
func (WorkspaceUpdateParams) MarshalJSON ¶ added in v0.3.0
func (r WorkspaceUpdateParams) MarshalJSON() (data []byte, err error)
type WorkspaceUpdateResponse ¶ added in v0.3.0
type WorkspaceUpdateResponse struct {
// The workspace id.
ID string `json:"id" api:"required" format:"uuid"`
// The workspace creator id.
CreatorID string `json:"creatorId" api:"required,nullable" format:"uuid"`
// The workspace creation date.
DateCreated time.Time `json:"dateCreated" api:"required" format:"date-time"`
// The workspace last updated date.
DateUpdated time.Time `json:"dateUpdated" api:"required" format:"date-time"`
// The number of invites in the workspace.
InviteCount int64 `json:"inviteCount" api:"required"`
// The number of members in the workspace.
MemberCount int64 `json:"memberCount" api:"required"`
// The workspace name.
Name string `json:"name" api:"required"`
// The end date of the current billing period.
PeriodEndDate time.Time `json:"periodEndDate" api:"required,nullable" format:"date-time"`
// The start date of the current billing period.
PeriodStartDate time.Time `json:"periodStartDate" api:"required,nullable" format:"date-time"`
// The number of projects in the workspace.
ProjectCount int64 `json:"projectCount" api:"required"`
// The workspace slug.
Slug string `json:"slug" api:"required"`
Status WorkspaceUpdateResponseStatus `json:"status" api:"required"`
MonthlyUsage []WorkspaceUpdateResponseMonthlyUsage `json:"monthlyUsage"`
// Whether the workspace only allows SAML authentication.
SAMLOnlyAccess bool `json:"samlOnlyAccess"`
WildcardDomains []string `json:"wildcardDomains"`
JSON workspaceUpdateResponseJSON `json:"-"`
}
func (*WorkspaceUpdateResponse) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceUpdateResponse) UnmarshalJSON(data []byte) (err error)
type WorkspaceUpdateResponseMonthlyUsage ¶ added in v0.3.0
type WorkspaceUpdateResponseMonthlyUsage struct {
ExecutionTimeMs int64 `json:"executionTimeMs" api:"nullable"`
MonthYear time.Time `json:"monthYear" format:"date"`
PredictionCount int64 `json:"predictionCount"`
JSON workspaceUpdateResponseMonthlyUsageJSON `json:"-"`
}
func (*WorkspaceUpdateResponseMonthlyUsage) UnmarshalJSON ¶ added in v0.3.0
func (r *WorkspaceUpdateResponseMonthlyUsage) UnmarshalJSON(data []byte) (err error)
type WorkspaceUpdateResponseStatus ¶ added in v0.3.0
type WorkspaceUpdateResponseStatus string
const ( WorkspaceUpdateResponseStatusActive WorkspaceUpdateResponseStatus = "active" WorkspaceUpdateResponseStatusPastDue WorkspaceUpdateResponseStatus = "past_due" WorkspaceUpdateResponseStatusUnpaid WorkspaceUpdateResponseStatus = "unpaid" WorkspaceUpdateResponseStatusCanceled WorkspaceUpdateResponseStatus = "canceled" WorkspaceUpdateResponseStatusIncomplete WorkspaceUpdateResponseStatus = "incomplete" WorkspaceUpdateResponseStatusIncompleteExpired WorkspaceUpdateResponseStatus = "incomplete_expired" WorkspaceUpdateResponseStatusTrialing WorkspaceUpdateResponseStatus = "trialing" WorkspaceUpdateResponseStatusPaused WorkspaceUpdateResponseStatus = "paused" )
func (WorkspaceUpdateResponseStatus) IsKnown ¶ added in v0.3.0
func (r WorkspaceUpdateResponseStatus) IsKnown() bool
Source Files
¶
- aliases.go
- backgroundtask.go
- client.go
- commit.go
- committestresult.go
- default_http_client.go
- field.go
- governance.go
- governanceframework.go
- governanceframeworkdocument.go
- governanceframeworksection.go
- governanceframeworksubsection.go
- governancerule.go
- governanceruleresult.go
- governancerulestat.go
- governanceruletag.go
- inferencepipeline.go
- inferencepipelinedata.go
- inferencepipelinerow.go
- inferencepipelinetestresult.go
- project.go
- projectcommit.go
- projectinferencepipeline.go
- projecttest.go
- storage.go
- storagepresignedurl.go
- test.go
- workspace.go
- workspaceapikey.go
- workspaceinvite.go