model

package
v1.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (C) 2022 NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Aggregate

type Aggregate string
const (
	AggregateUser    Aggregate = "USER"
	AggregateProject Aggregate = "PROJECT"
	AggregateCluster Aggregate = "CLUSTER"
)

func (Aggregate) IsValid

func (e Aggregate) IsValid() bool

func (Aggregate) MarshalGQL

func (e Aggregate) MarshalGQL(w io.Writer)

func (Aggregate) String

func (e Aggregate) String() string

func (*Aggregate) UnmarshalGQL

func (e *Aggregate) UnmarshalGQL(v interface{}) error

type Count

type Count struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

type FloatRange

type FloatRange struct {
	From float64 `json:"from"`
	To   float64 `json:"to"`
}

type Footprints

type Footprints struct {
	Nodehours []schema.Float      `json:"nodehours"`
	Metrics   []*MetricFootprints `json:"metrics"`
}

type HistoPoint

type HistoPoint struct {
	Count int `json:"count"`
	Value int `json:"value"`
}

type IntRangeOutput

type IntRangeOutput struct {
	From int `json:"from"`
	To   int `json:"to"`
}

type JobFilter

type JobFilter struct {
	Tags            []string          `json:"tags"`
	JobID           *StringInput      `json:"jobId"`
	ArrayJobID      *int              `json:"arrayJobId"`
	User            *StringInput      `json:"user"`
	Project         *StringInput      `json:"project"`
	JobName         *StringInput      `json:"jobName"`
	Cluster         *StringInput      `json:"cluster"`
	Partition       *StringInput      `json:"partition"`
	Duration        *schema.IntRange  `json:"duration"`
	MinRunningFor   *int              `json:"minRunningFor"`
	NumNodes        *schema.IntRange  `json:"numNodes"`
	NumAccelerators *schema.IntRange  `json:"numAccelerators"`
	NumHWThreads    *schema.IntRange  `json:"numHWThreads"`
	StartTime       *schema.TimeRange `json:"startTime"`
	State           []schema.JobState `json:"state"`
	FlopsAnyAvg     *FloatRange       `json:"flopsAnyAvg"`
	MemBwAvg        *FloatRange       `json:"memBwAvg"`
	LoadAvg         *FloatRange       `json:"loadAvg"`
	MemUsedMax      *FloatRange       `json:"memUsedMax"`
	Exclusive       *int              `json:"exclusive"`
	SharedNode      *StringInput      `json:"sharedNode"`
	SelfJobID       *StringInput      `json:"selfJobId"`
	SelfStartTime   *time.Time        `json:"selfStartTime"`
	SelfDuration    *int              `json:"selfDuration"`
}
type JobLink struct {
	ID    string `json:"id"`
	JobID int    `json:"jobId"`
}

type JobLinkResultList

type JobLinkResultList struct {
	Items []*JobLink `json:"items"`
	Count *int       `json:"count"`
}

type JobMetricWithName

type JobMetricWithName struct {
	Name   string             `json:"name"`
	Scope  schema.MetricScope `json:"scope"`
	Metric *schema.JobMetric  `json:"metric"`
}

type JobResultList

type JobResultList struct {
	Items  []*schema.Job `json:"items"`
	Offset *int          `json:"offset"`
	Limit  *int          `json:"limit"`
	Count  *int          `json:"count"`
}

type JobsStatistics

type JobsStatistics struct {
	ID             string        `json:"id"`
	Name           string        `json:"name"`
	TotalJobs      int           `json:"totalJobs"`
	RunningJobs    int           `json:"runningJobs"`
	ShortJobs      int           `json:"shortJobs"`
	TotalWalltime  int           `json:"totalWalltime"`
	TotalNodeHours int           `json:"totalNodeHours"`
	TotalCoreHours int           `json:"totalCoreHours"`
	TotalAccHours  int           `json:"totalAccHours"`
	HistDuration   []*HistoPoint `json:"histDuration"`
	HistNumNodes   []*HistoPoint `json:"histNumNodes"`
}

type MetricFootprints

type MetricFootprints struct {
	Metric string         `json:"metric"`
	Data   []schema.Float `json:"data"`
}

type NodeMetrics

type NodeMetrics struct {
	Host       string               `json:"host"`
	SubCluster string               `json:"subCluster"`
	Metrics    []*JobMetricWithName `json:"metrics"`
}

type OrderByInput

type OrderByInput struct {
	Field string            `json:"field"`
	Order SortDirectionEnum `json:"order"`
}

type PageRequest

type PageRequest struct {
	ItemsPerPage int `json:"itemsPerPage"`
	Page         int `json:"page"`
}

type SortDirectionEnum

type SortDirectionEnum string
const (
	SortDirectionEnumDesc SortDirectionEnum = "DESC"
	SortDirectionEnumAsc  SortDirectionEnum = "ASC"
)

func (SortDirectionEnum) IsValid

func (e SortDirectionEnum) IsValid() bool

func (SortDirectionEnum) MarshalGQL

func (e SortDirectionEnum) MarshalGQL(w io.Writer)

func (SortDirectionEnum) String

func (e SortDirectionEnum) String() string

func (*SortDirectionEnum) UnmarshalGQL

func (e *SortDirectionEnum) UnmarshalGQL(v interface{}) error

type StringInput

type StringInput struct {
	Eq         *string  `json:"eq"`
	Neq        *string  `json:"neq"`
	Contains   *string  `json:"contains"`
	StartsWith *string  `json:"startsWith"`
	EndsWith   *string  `json:"endsWith"`
	In         []string `json:"in"`
}

type TimeRangeOutput

type TimeRangeOutput struct {
	From time.Time `json:"from"`
	To   time.Time `json:"to"`
}

type User

type User struct {
	Username string `json:"username"`
	Name     string `json:"name"`
	Email    string `json:"email"`
}

type Weights

type Weights string
const (
	WeightsNodeCount Weights = "NODE_COUNT"
	WeightsNodeHours Weights = "NODE_HOURS"
)

func (Weights) IsValid

func (e Weights) IsValid() bool

func (Weights) MarshalGQL

func (e Weights) MarshalGQL(w io.Writer)

func (Weights) String

func (e Weights) String() string

func (*Weights) UnmarshalGQL

func (e *Weights) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL