Skip to content

Commit

Permalink
cmd: rename fields in azure snaphot payload for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
arstanaly committed Dec 12, 2023
1 parent 9877716 commit c281356
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/azure/azure_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ type AzureClient struct {

// AppData represents the harvested Azure service app and function app data
type AppData struct {
AppName string `json:"appName"`
AppKind string `json:"appKind"`
FingerprintSource string `json:"fingerprintSource"`
Digests map[string]string `json:"digests"`
StartedAt int64 `json:"creationTimestamp"`
AppName string `json:"appName"`
AppKind string `json:"appKind"`
DigestsSource string `json:"digestsSource"`
Digests map[string]string `json:"digests"`
StartedAt int64 `json:"creationTimestamp"`
}

// AzureAppsRequest represents the PUT request body to be sent to Kosli from CLI
Expand Down Expand Up @@ -145,7 +145,7 @@ func (azureClient *AzureClient) NewAppData(app *armappservice.Site, logger *logg
return AppData{}, err
}
} else {
fingerprintSource = "DockerLogs"
fingerprintSource = "logs"
logs, err := azureClient.GetDockerLogsForApp(*app.Name, logger)
if err != nil {
return AppData{}, err
Expand Down

0 comments on commit c281356

Please sign in to comment.