Documentation ¶
Overview ¶
Package model contains types as defined by the http api.
Index ¶
- Constants
- func SortVersions(stringVersions []string) []string
- type AccessKey
- type AccountingProject
- type AccountingUser
- type ActiveModelSummary
- type ActiveUserSummary
- type AlertsList
- type AlertsListType
- type DataProcessedSummary
- type DataProcessingRecent
- type EmbeddedInput
- type EmbeddedInputItem
- type Entitlement
- type JDBCInput
- type JobDetails
- type JobFeatures
- type JobInputIdentifier
- type JobResult
- type JobResults
- type License
- type MinimumEngines
- type ModelContainerImage
- type ModelDetails
- type ModelDetailsTimeout
- type ModelFeature
- type ModelIdentifier
- type ModelImage
- type ModelLoadStatus
- type ModelMetdata
- type ModelNamedIdentifier
- type ModelRunStatus
- type ModelRunStatusResult
- type ModelTag
- type ModelVersion
- type ModelVersionDetails
- type ModelVersionDetailsInput
- type ModelVersionDetailsOutput
- type ModelVersionDetailsProcessing
- type ModelVersionDetailsStatistic
- type ModelVersionSummary
- type ModelVisibility
- type ModelWithTags
- type ModzyDate
- type ModzyTime
- type PredictionsMadeRecent
- type PredictionsMadeSummary
- type PrometheusData
- type PrometheusResponse
- type PrometheusResult
- type RelatedModel
- type ResourcesProcessingModel
- type ResourcesProcessingModelDeploymentState
- type ResourcesProcessingModelEngine
- type ResourcesProcessingModelEngineCondition
- type ResourcesProcessingModelInputs
- type ResourcesProcessingModelJobs
- type S3Input
- type S3InputItem
- type S3InputItemKey
- type SortedVersions
- type SubmitChunkedJob
- type SubmitEmbeddedJob
- type SubmitJDBCJob
- type SubmitJobModelInfo
- type SubmitJobResponse
- type SubmitJobResponseInputs
- type SubmitS3Job
- type SubmitTextJob
- type Team
- type TextInput
- type TextInputItem
- type User
- type UserSummary
Constants ¶
View Source
const ( // 2021-07-20T01:40:11.187+0000 TimeFormat = "2006-01-02T15:04:05.999-0700" // 2021-07-20T01:40:09.560+00:00 TimeFormat2 = "2006-01-02T15:04:05.999-07:00" )
There are multiple time formats coming back from the API
View Source
const (
DateFormat = "2006-01-02"
)
Variables ¶
This section is empty.
Functions ¶
func SortVersions ¶
Types ¶
type AccountingProject ¶
type AccountingProject struct { Identifier string `json:"identifier"` Name string `json:"name"` Description string `json:"description"` Status string `json:"status"` Visibility string `json:"visibility"` AccessKeys []AccessKey `json:"accessKeys"` User UserSummary `json:"user"` CreatedAt ModzyTime `json:"createdAt"` UpdatedAt ModzyTime `json:"updatedAt"` }
type AccountingUser ¶
type AccountingUser struct { Identifier string `json:"identifier"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Status string `json:"status"` LastActiveDateTime ModzyTime `json:"lastActiveDateTime"` Visited bool `json:"visited"` Onboarded bool `json:"onboarded"` }
type ActiveModelSummary ¶
type ActiveUserSummary ¶
type AlertsList ¶
type AlertsList []AlertsListType
type AlertsListType ¶
type DataProcessedSummary ¶
type DataProcessingRecent ¶
type EmbeddedInput ¶
type EmbeddedInput struct { Type string `json:"type"` Sources map[string]EmbeddedInputItem `json:"sources"` }
type EmbeddedInputItem ¶
type Entitlement ¶
type JobDetails ¶
type JobDetails struct { JobIdentifier string `json:"jobIdentifier"` SubmittedBy string `json:"submittedBy"` AccountIdentifier string `json:"accountIdentifier"` Model ModelNamedIdentifier `json:"model"` Status string `json:"status"` CreatedAt ModzyTime `json:"createdAt"` UpdatedAt ModzyTime `json:"updatedAt"` SubmittedAt ModzyTime `json:"submittedAt"` Total int `json:"total"` Pending int `json:"pending"` Completed int `json:"completed"` Failed int `json:"failed"` ElapsedTime int `json:"elapsedTime"` QueueTime int `json:"queueTime"` User User `json:"user"` JobInputs []JobInputIdentifier `json:"jobInputs"` Explain bool `json:"explain"` HoursDeleteInput int `json:"hoursDeleteInput"` Team Team `json:"team"` ImageClassificationModel bool `json:"imageClassificationModel"` }
type JobFeatures ¶
type JobInputIdentifier ¶
type JobInputIdentifier struct {
Identifier string `json:"identifier"`
}
type JobResult ¶
type JobResult struct { Status string `json:"status"` Engine string `json:"engine"` Error string `json:"error"` StartTime ModzyTime `json:"startTime"` UpdateTime ModzyTime `json:"updateTime"` EndTime ModzyTime `json:"endTime"` ElapsedTime int `json:"elapsedTime"` Data map[string]interface{} `json:"data"` }
func (*JobResult) UnmarshalJSON ¶
UnmarshalJSON custom unmarshal in order to fill in ResultData with extra fields
type JobResults ¶
type JobResults struct { JobIdentifier string `json:"jobIdentifier"` Total int `json:"total"` Completed int `json:"completed"` Failed int `json:"failed"` Finished bool `json:"finished"` SubmittedBy string `json:"submittedByKey"` Explained bool `json:"explained"` SubmittedAt ModzyTime `json:"submittedAt"` JobQueueTime int `json:"jobQueueTime"` JobProcessedTime int `json:"jobProcessedTime"` JobElapsedTime int `json:"jobElapsedTime"` Results map[string]JobResult `json:"results"` Failures map[string]JobResult `json:"failures"` }
type MinimumEngines ¶
type MinimumEngines struct {
MinimumProcessingEnginesSum int `json:"minimumProcessingEnginesSum"`
}
type ModelContainerImage ¶
type ModelDetails ¶
type ModelDetails struct { ModelID string `json:"modelID"` LatestVersion string `json:"latestVersion"` LatestActiveVersion string `json:"latestActiveVersion"` Versions SortedVersions `json:"versions"` Author string `json:"author"` Name string `json:"name"` Description string `json:"description"` Permalink string `json:"permalink"` Features []ModelFeature `json:"features"` IsActive bool `json:"isActive"` IsRecommended bool `json:"isRecommended"` IsCommercial bool `json:"isCommercial"` Tags []ModelTag `json:"tags"` Images []ModelImage `json:"images"` SnapshotImages []ModelImage `json:"snapshotImages"` LastActiveDateTime ModzyTime `json:"lastActiveDateTime"` Visibility ModelVisibility `json:"visibility"` }
type ModelDetailsTimeout ¶
type ModelFeature ¶
type ModelIdentifier ¶
type ModelImage ¶
type ModelLoadStatus ¶
type ModelMetdata ¶
type ModelMetdata struct { ModelID string `json:"modelId"` LatestVersion string `json:"latestVersion"` Versions SortedVersions `json:"versions"` Author string `json:"author"` Name string `json:"name"` Description string `json:"description"` Permalink string `json:"permalink"` Features []ModelFeature `json:"features"` IsActive bool `json:"isActive"` IsRecommended bool `json:"isRecommended"` IsCommercial bool `json:"isCommercial"` Tags []ModelTag `json:"tags"` Images []ModelImage `json:"images"` LastActiveDateTime ModzyTime `json:"lastActiveDateTime"` CreatedByEmail string `json:"createdByEmail"` Visibility ModelVisibility `json:"visibility"` }
type ModelNamedIdentifier ¶
type ModelRunStatus ¶
type ModelRunStatus struct { Step int `json:"step"` StepName string `json:"stepName"` Percentage int `json:"percentage"` Result ModelRunStatusResult `json:"result"` }
type ModelRunStatusResult ¶
type ModelTag ¶
type ModelTag struct { Identifier string `json:"identifier"` Name string `json:"name"` DataType string `json:"dataType"` IsCategorical bool `json:"isCategorical"` Images []ModelImage `json:"images"` }
type ModelVersion ¶
type ModelVersion struct {
Version string `json:"version"`
}
type ModelVersionDetails ¶
type ModelVersionDetails struct { ModelID string `json:"-"` Version string `json:"version"` CreatedAt ModzyTime `json:"createdAt"` UpdatedAt ModzyTime `json:"updatedAt"` InputValidationSchema json.RawMessage `json:"inputValidationSchema"` Timeout ModelDetailsTimeout `json:"timeout"` Requirement json.RawMessage `json:"requirement"` ContainerImage ModelContainerImage `json:"containerImage"` LoadStatus ModelLoadStatus `json:"loadStatus"` RunStatus ModelRunStatus `json:"runStatus"` Inputs []ModelVersionDetailsInput `json:"inputs"` SampleInput string `json:"sampleInput"` Outputs []ModelVersionDetailsOutput `json:"outputs"` SampleOutput string `json:"sampleOutput"` Statistics []ModelVersionDetailsStatistic `json:"statistics"` IsActive bool `json:"isActive"` LongDescription string `json:"longDescription"` TechnicalDetails string `json:"technicalDetails"` ImagePrefix string `json:"imagePrefix"` IsAvailable bool `json:"isAvailable"` SourceType string `json:"sourceType"` VersionHistory string `json:"versionHistory"` Status string `json:"status"` PerformanceSummary string `json:"performanceSummary"` Model ModelMetdata `json:"model"` Processing ModelVersionDetailsProcessing `json:"processing"` }
type ModelVersionSummary ¶
type ModelVersionSummary struct { ID string `json:"modelId"` LatestVersion string `json:"latestVersion"` Versions SortedVersions `json:"versions"` }
type ModelVisibility ¶
type ModelWithTags ¶
type PredictionsMadeRecent ¶
type PredictionsMadeSummary ¶
type PrometheusData ¶
type PrometheusData struct { ResultType string `json:"resultType"` Results []PrometheusResult `json:"result"` }
type PrometheusResponse ¶
type PrometheusResponse struct {
Data PrometheusData `json:"data"`
}
type PrometheusResult ¶
type PrometheusResult struct { Metric interface{} `json:"metric"` Values []json.RawMessage `json:"values"` }
type RelatedModel ¶
type RelatedModel struct { ModelID string `json:"identifier"` LatestVersion string `json:"latestVersion"` Versions SortedVersions `json:"versions"` Author string `json:"author"` Name string `json:"name"` Description string `json:"description"` Permalink string `json:"permalink"` Features []ModelFeature `json:"features"` IsActive bool `json:"isActive"` IsRecommended bool `json:"isRecommended"` Tags []ModelTag `json:"tags"` Images []ModelImage `json:"images"` }
type ResourcesProcessingModel ¶
type ResourcesProcessingModel struct { Identifier string `json:"identifier"` Version string `json:"version"` DeployedAt ModzyTime `json:"deployedAt"` Engines []ResourcesProcessingModelEngine `json:"engines"` Inputs ResourcesProcessingModelInputs `json:"inputs"` Jobs ResourcesProcessingModelJobs `json:"jobs"` Situations []string `json:"situations"` ModelDeploymentState ResourcesProcessingModelDeploymentState `json:"modelDeploymentState"` }
type ResourcesProcessingModelEngine ¶
type ResourcesProcessingModelEngine struct { Name string `json:"name"` CreatedAt ModzyTime `json:"createdAt"` Ready bool `json:"ready"` Conditions []ResourcesProcessingModelEngineCondition `json:"conditions"` }
type ResourcesProcessingModelInputs ¶
type ResourcesProcessingModelInputs struct {
Queued int `json:"queued"`
}
type ResourcesProcessingModelJobs ¶
type ResourcesProcessingModelJobs struct {
Queued int `json:"queued"`
}
type S3InputItem ¶
type S3InputItem map[string]S3InputItemKey
type S3InputItemKey ¶
type SortedVersions ¶
type SortedVersions []string
func (*SortedVersions) UnmarshalJSON ¶
func (sv *SortedVersions) UnmarshalJSON(data []byte) error
type SubmitChunkedJob ¶
type SubmitChunkedJob struct { Model SubmitJobModelInfo `json:"model"` Explain bool `json:"explain,omitempty"` Timeout int `json:"timeout,omitempty"` }
type SubmitEmbeddedJob ¶
type SubmitEmbeddedJob struct { Model SubmitJobModelInfo `json:"model"` Explain bool `json:"explain,omitempty"` Timeout int `json:"timeout,omitempty"` Input EmbeddedInput `json:"input,omitempty"` }
type SubmitJDBCJob ¶
type SubmitJDBCJob struct { Model SubmitJobModelInfo `json:"model"` Explain bool `json:"explain,omitempty"` Timeout int `json:"timeout,omitempty"` Input JDBCInput `json:"input,omitempty"` }
type SubmitJobModelInfo ¶
type SubmitJobResponse ¶
type SubmitJobResponse struct { Model ModelIdentifier `json:"model"` Explain bool `json:"explain"` Timeout int `json:"timeout"` AccountIdentifier string `json:"accountIdentifier"` TotalInputs int `json:"totalInputs"` JobIdentifier string `json:"jobIdentifier"` JobType string `json:"jobType"` AccessKey string `json:"accessKey"` JobInputs SubmitJobResponseInputs `json:"jobInputs"` InputByteAmount int `json:"inputByteAmount"` SubmittedAt ModzyTime `json:"submittedAt"` ImageClassificationModel bool `json:"imageClassificationModel"` }
type SubmitJobResponseInputs ¶
type SubmitJobResponseInputs struct {
Identifier []string `json:"identifier"`
}
type SubmitS3Job ¶
type SubmitS3Job struct { Model SubmitJobModelInfo `json:"model"` Explain bool `json:"explain,omitempty"` Timeout int `json:"timeout,omitempty"` Input S3Input `json:"input,omitempty"` }
type SubmitTextJob ¶
type SubmitTextJob struct { Model SubmitJobModelInfo `json:"model"` Explain bool `json:"explain,omitempty"` Timeout int `json:"timeout,omitempty"` Input TextInput `json:"input,omitempty"` }
type TextInput ¶
type TextInput struct { Type string `json:"type"` Sources map[string]TextInputItem `json:"sources"` }
type TextInputItem ¶
type User ¶
type User struct { Identifier string `json:"identifier"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` ExternalIdentifier string `json:"externalIdentifier"` PictureURL string `json:"pictureURL"` Status string `json:"status"` Title string `json:"title"` // TODO: type this AccessKeys []interface{} `json:"accessKeys"` }
Click to show internal directories.
Click to hide internal directories.