github.com/Axway/agent-sdk@v1.1.101/pkg/apic/apiserver/models/api/v1/statusreason.go (about)

     1  package v1
     2  
     3  // ResourceStatus struct to represent status
     4  type ResourceStatus struct {
     5  	Level string `json:"level"`
     6  	// Details of the warning.
     7  	Reasons []ResourceStatusReason `json:"reasons,omitempty"`
     8  }
     9  
    10  // ResourceStatusReason struct for reason oneOfs
    11  type ResourceStatusReason struct {
    12  	Type string `json:"type"`
    13  	// Details of the warning.
    14  	Detail string `json:"detail"`
    15  	// Time when the update occurred.
    16  	Timestamp Time                   `json:"timestamp"`
    17  	Meta      map[string]interface{} `json:"meta,omitempty"`
    18  }