ServiceLanguagesResponse
A service's language breakdown, summed over the paths it owns.
Shape
excludedExcludedBytesWhat was left out, and why.
- The ExcludedBytes schema
- documentationinteger · int64Docs, licences, changelogs.
- generatedinteger · int64Lock files, minified bundles, source maps.
- unclassifiedinteger · int64Binaries, symlinks, submodules, data and prose languages, and anything the vocabulary could not settle.
- vendoredinteger · int64Third-party code the repository carries but did not write.
itemsarray of LanguageSliceLanguages, by bytes descending then name ascending.
- The LanguageSlice schema
- bytesinteger · int64Bytes attributed to this language. Authoritative;
shareis a convenience. - filesinteger · int64How many files contributed.
- languagestringThe language's name, as the vocabulary spells it.
- sharenumber · doublePercentage of
total_bytes, to two places. - typestring
programmingormarkup— the only two kinds that reach a breakdown. - colorstring or nulloptionalThe CSS colour upstream renders this language with, when it defines one.
sourcesarray of LanguageSourceOne entry per repository contributing to the totals that you can read, so two people can see different totals for the same service. An empty list means the service has no code you can see.
- The LanguageSource schema
- repository_idRepositoryId (string · uuid)The repository whose paths this service binds.
- truncatedbooleanWhether that repository's index is truncated.
- indexed_atstring or nulloptionalWhen that index was written.
- indexed_shastring or nulloptionalThe commit its index describes.
- total_bytesinteger · int64Total counted bytes across every contributing repository.
- total_filesinteger · int64Total counted files.
Example
Synthesized example{
"excluded": {
"documentation": 61,
"generated": 12,
"unclassified": 86,
"vendored": 53
},
"items": [
{
"bytes": 73,
"files": 26,
"language": "language-8407",
"share": 24,
"type": "type-9a47"
},
{
"bytes": 12,
"files": 63,
"language": "language-c8fc",
"share": 28,
"type": "type-69c0"
}
],
"sources": [
{
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"truncated": false
},
{
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"truncated": false
}
],
"total_bytes": 5,
"total_files": 4
}
Graph
Used inside
No schema contains this one.
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation