Skip to content

Instantly share code, notes, and snippets.

@acomito
Created October 28, 2019 15:04
Show Gist options
  • Save acomito/7a40c7c0f43bcdf311ebf7d630f1eb3e to your computer and use it in GitHub Desktop.
Save acomito/7a40c7c0f43bcdf311ebf7d630f1eb3e to your computer and use it in GitHub Desktop.
// TOP LEVEL IMPORTS
import gql from 'graphql-tag';
export default gql`
query getcoffeecupreport($timestamp: Float, $shift: String, $count: Int, $skip: Int) {
getcoffeecupreport(timestamp: $timestamp, shift: $shift, count: $count, skip: $skip) {
total
machines {
id
name
uuid
manufacturer
model
state {
state
path
timeInState
}
displayName
currentProgram {
program
programBlockId
firstPartMade(startTime: $timestamp)
score
typicalScore
programStart
programStart
productionTime
partsProduced
notes {
id: documentId
message
title
timestamp
}
notifications {
id
content
shortContent
timestamp
}
notes {
documentId
message
title
timestamp
}
notifications {
id
content
shortContent
timestamp
}
programCharts {
rollingProgramScore
cycleTimeBaseline
cycleTimeComp
cycleTime {
timestamp
cycleTime
}
partsProduced {
timestamp
partsProduced
}
scoreBaseline
scoreComp
score {
timestamp
score
}
}
}
granularUtilization {
utilizationPercentage
granularUtilizationBuckets {
state
startTime
endTime
}
}
}
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment